Java Foundations Questions and Answers
Question 1
Which statement is valid?
Question 2
Given the code fragment:
What is the result?
Question 3
Given the code fragment:
What is the result?
Question 4
Given:
What is the result?
Question 5
Given:
What is the result?
Question 6
Which statement is true about a mutator method?
Question 7
Given the code fragment:
What is the result?
Question 8
Given the code fragment:
Which code fragment, when inserted at line n1, enables the code to print Java Programming:1?
Question 9
Given the code fragment:
Which code fragment can be inserted at line n1 to enable the code to print 0.0?
Question 10
Given the code fragment:
What is the result?
Question 11
Which method identifier is correct according to Java naming conventions?