Java Programming Language 6

Java Programming Language 6

2 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is an instance of

  1. A methods in object
  2. An operator and keyword
  3. Both
  4. None
Question 2 Multiple Choice (Single Answer)

What happens when you do if (a==b)?

Integer a = new Integer(2);
 Integer b = new Integer(2); 
  1. Compiler error
  2. Runtime Exception
  3. FALSE