Given the code fragment:<>
Correct Answer:
A
Variable b is set to 4.
Variableb is decreased to 3.
Variable b is decreased to 2 and then printed. Output: 2 Variable b is printed. Output: 2
Which two actions will improve the encapsulation of a class?
Correct Answer:
AD
Reference: http://www.tutorialspoint.com/java/java_access_modifiers.htm
Given:<>>
Correct Answer:
BCD