What is the output of the following code? Be sure to draw a…

What is the output of the following code? Be sure to draw a picture to help you with this (you don’t need to turn the picture in).  Kitty k1 = new Kitty (“Pixel”);Kitty k2 = new Kitty (“Tigerlilly”);Kitty k3 = k2;k2 = k1;k2.setName(“Angel”);System.out.println(k3.getName()); Output: ________________

What is the output of the following code? Be sure to draw a…

What is the output of the following code? Be sure to draw a picture to help you with this (you don’t need to turn the picture in).  Kitty k1 = new Kitty (“Miss Peach”);Kitty k2 = new Kitty (“Gizmo”);Kitty k3 = k2;k2 = k1;k1.setName(“Abigail”);System.out.println(k2.getName()); Output: ________________

What is the output of the following code? Be sure to draw a…

What is the output of the following code? Be sure to draw a picture to help you with this (you don’t need to turn the picture in).  Kitty k1 = new Kitty (“Gizmo”);Kitty k2 = new Kitty (“Abigail”);Kitty k3 = k2;k2 = k1;k1.setName(“Miss Peach”);System.out.println(k2.getName()); Output: ________________