Question 1
Given the code fragment:

Which three lines fail to compile?

Which three lines fail to compile?
Question 2
Given:

What is the result?

What is the result?
Question 3
Given the code snippet from a compiled Java source file:

Which command-line arguments should you pass to the program to obtain the following output?
Arg is 2

Which command-line arguments should you pass to the program to obtain the following output?
Arg is 2
Question 4
Consider following interface.

Which of the following will create instance of Runnable type?

Which of the following will create instance of Runnable type?
Question 5
You are asked to create a method that accepts an array of integers and returns the highest value from that array.
Given the code fragment:

Which method signature do you use at line n1?
Given the code fragment:

Which method signature do you use at line n1?