Question: Please explain why the output is Kitty and Joseph. THis is JAVA program. (c) What is the output of the following program segment? String name1

 Please explain why the output is Kitty and Joseph. THis is

Please explain why the output is Kitty and Joseph.

THis is JAVA program.

(c) What is the output of the following program segment? String name1 "Kitty"; String name2 = name1; Employee employeeA = new Employee(name2); Employee employeeB employeeA; name1 = "Joseph"; employeeB.setName(namel); System.out.println(name2 + + employeeA.getName()); = 11

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!