I have this piece of code. Why do I get "DOG" if the object is null? Is it not been, in this case given reference?
static void met1(Object ob) { ob = null; } public static void main(String[] args) { String a = new String("dog"); met1(a); System.out.println(a); }