Skip to content

The variable and the object

java Student a = new Student("Asha"); Student b = a; b.setName("Ravi"); System.out.println(a.getName());

What is printed?