Correct Answer: 1 and 2
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Core Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Core Java MCQ Questions
I would implement a LRU cache using only JDK classes by...
What is the output of the following program? import java.lang.reflect.Method; class TestImpl { public void method() {} public static void main(String[] args) { Method method = TestImpl.class.getMethod("method", null); System.out.println(method.getName()); } }
Which code fragments correctly create and initialize a static array of int elements?
True or false: Lambdas allow you to change single instance's method logic
Which of the following are not a valid declarations?
What will below method return? public foo(){ int x = 5; return x; }
How can we use the class or jar files kept on the network path, within our projects?
What will be the output of the program? public class Foo { public static void main(String[] args) { try { return; } finally { System.out.println( "Finally" ); } } }
package test; class Test { } ---------------- package test; class SubTest extends Test{ } Does this code compile without errors if the classes are in separate files?
Reflection mechanism allows to: