QuestionQ106
Working with Methods and EncapsulationGiven the following code fragment:

Test.java:

What is the result?
- A

- D Compilation fails in the Test class.
- E Both the Employee class and the Test class fail to compile.
Given the following code fragment:

Test.java:

What is the result?

Community Discussion