Given the code fragment:
What is the output?
Given:
And the code fragment:
What is the result?
Given the code fragment:
What is the result?
Given:
At which line does a compilation error occur?
Given the contents of the Test.java file:
What is the result?
Given the code fragment:
What is the result?
Given the code:
Which code fragment, when inserted at line n1, enables the code to print sum is 30?
Given:
What is the result?
Given the code fragment:
What is the result?
Which package would you import to use the Random class?