Given the code fragment:
What is the result?
Options:
Element 0Element 1
Null element 0Null element 1
NullNull
A NullPointerException is thrown at runtime.
Answer:
Compilation fails.
0 Found
1 Found
3 Found
Given the definitions of the MyString class and the Test class:
Option A
Option B
Option C
Option D
Option E
Which one of the following code examples uses valid Java syntax?
Explanation:
References:
Site Secure
TESTED 22 Dec 2024
Copyright © 2014-2024 CramKey. All Rights Reserved