public class Exam { public static void main(String[] arg) { Object obj = null; String str = new String("str"); str = (String) obj; obj = new String("obj"); System.out.print(obj + ", " + str); } }
Login in to like
Login in to comment
or Read more about Java Quizzes
Login in to like
Login in to comment