Advertisement
Advertisement
Advertisement

Core Java Quizzes & Trivia

Calling all I.T. specialists! What programming language is your field of expertise? Are someone who's goal oriented? Hopefully, you're object oriented too! Nah... Just kidding! But we're not joking when we tell you we have quizzes about "Core Java"... You have a heap to choose from too! Ready to start out with some basics?

Say "Hello World!" to topics on syntax and semantics. Too easy for you? How about quizzes on some special classes? Applets and servlets; Let's give it a go? There are other quizzes on the Java Platform, libraries, and others too. Get ready to initialize! Do you think you are on a "class" of your own when it comes to knowledge in "Core Java"? Find out when you take on our quizzes... Good luck!
Top Trending Quizzes



Questions: 30  |  Attempts: 2185   |  Last updated: Mar 22, 2022
  • Sample Question
    Consider the following listed items: A. Employee() { } B. public Employee() { } C. private Employee() { } Consider the following statements: I.   no-argument constructor, that does not allow instantiation from within the package II.  no-argument constructor, that does not allow instantiation from outside the package III. no-argument constructor Which of the following option gives the exact matches of above listed items and statements?   Consider the following listed items: A. Employee() { } B. public Employee() { } C. private Employee() { } Consider the following statements: I.   no-argument constructor, that does not allow instantiation from within the package II.  no-argument constructor, that does not allow instantiation from outside the package III. no-argument constructor Which of the following option gives the exact matches of above listed items and statements?{  
    Radio Button
    Radio Button
    Radio Button
    Radio Button

INTRODUCTION TO OOPS INTRODUCTION TO JAVA AND SDE LANGUAGE FUNDAMENTALS AND OPERATORS

Questions: 45  |  Attempts: 446   |  Last updated: Mar 21, 2022
  • Sample Question
    Consider the following code: 1. class Test { 2. public static void main(String args[]) { 3. double d = 12.3; 4. Dec dec = new Dec(); 5. dec.dec(d); 6. System.out.println(d); 7. } 8. } 9. class Dec{ 10. public void dec(double d) { d = d - 2.0d; } 11. } Which of the following gives the correct value printed at line 6?
    Radio Button
    Radio Button
    Radio Button
    Radio Button

COLLECTION UTILITY PACKAGE

Questions: 40  |  Attempts: 520   |  Last updated: Mar 21, 2022
  • Sample Question
    Which statements are true about comparing two instances of the same class,given that the equals() and hashCode() methods have been properly overridden? (choose all that apply)
    Radio Button
    Radio Button
    Radio Button
    Radio Button
    Radio Button

Are you looking for ways to advance your Java MCQ knowledge? The quiz below is set and designed not only to test your Java MCQ knowledge but to also advance it. All the best and enjoy learning.

Questions: 25  |  Attempts: 458   |  Last updated: Mar 22, 2022
  • Sample Question
     What all gets printed when the following gets compiled and run? public class test {     public static void main(String args[]) {          int i=1, j=1;         try {             i++;              j--;             if(i/j > 1)                 i++;        }         catch(ArithmeticException e) {             System.out.println(0);         }         catch(ArrayIndexOutOfBoundsException e) {            System.out.println(1);         }         catch(Exception e) {             System.out.println(2);         }         finally {             System.out.println(3);         }         System.out.println(4);      } }   here
    Radio Button
    Radio Button
    Radio Button
    Radio Button

Java MCQ is one of the commonly used computer-programming tools used by programmers today. If you are a programmer seeking to become better in your line of duty, then this quiz will bring you closer to you goal.

Questions: 25  |  Attempts: 409   |  Last updated: Mar 22, 2022
  • Sample Question
     What all gets printed when the following gets compiled and run? public class test {     public static void main(String args[]) {          int i=1, j=1;         try {             i++;              j--;             if(i/j > 1)                 i++;        }         catch(ArithmeticException e) {             System.out.println(0);         }         catch(ArrayIndexOutOfBoundsException e) {            System.out.println(1);         }         catch(Exception e) {             System.out.println(2);         }         finally {             System.out.println(3);         }         System.out.println(4);      } }   here
    Radio Button
    Radio Button
    Radio Button
    Radio Button
Recent Quizzes
Advertisement
Advertisement