Correct Answer: A class implements an interface but extends a class
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
Can an abstract class be a final class?
Keyword used to access members or methods of superclass?
What is auto boxing?
Reflection mechanism allows to:
package test; class Test { } ---------------- package test; class SubTest extends Test{ } Does this code compile without errors if the classes are in separate files?
What is the output of the below code ? int a = 0; int b = 0; if (a++ == 1 && b++ == 1); System.out.println(a + " " + b);
What is the output? public static void main(String[] args) { int x=10; if(x++ > 9 && x++ == 12){ ++x; } System.out.println(x); }
You need to keep a list of one million objects sorted at all times having 100 random inserts and delete per second. Reads from the list are always done in sorted order. You would:
Which of the following are not a valid declarations?
True or false: Lambdas allow you to change single instance's method logic