Question 1
Consider the Java code given below.
class Customer{ private String name; public Customer(String n){ this.name = n; } public Customer(Customer c){ this.name = c.name; } public void setName(String n){ name = n; } public String getName(){ return name; }}public class Test{ public static void main(String[] args){ Customer c1 = new Customer("Latha"); Customer c2 = c1; Customer c3 = new Customer(c1); c1.setName("Geeta"); System.out.println("c2.name : " + c2.getName()); System.out.println("c3.name : " + c3.getName()); }}What will the output be?