Advertisement
Advertisement
Advertisement

Core Java Quizzes, Questions & Answers

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!

Sort By Grade

10th Grade 11th Grade

Top Trending Quizzes




Questions: 30  |  Attempts: 3811   |  Last updated: May 15, 2024
  • 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



Questions: 35  |  Attempts: 136   |  Last updated: Apr 23, 2024
  • Sample Question
    Which statement is true?
    Radio Button
    Radio Button
    Radio Button
    Radio Button


Questions: 40  |  Attempts: 257   |  Last updated: Mar 21, 2023
  • Sample Question
    What happens when this code is compiled and executed? String name = null; File file = new File("/folder", name); System.out.print(file.exists());
    Radio Button
    Radio Button
    Radio Button
    Radio Button

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

Questions: 45  |  Attempts: 680   |  Last updated: Sep 5, 2023
  • 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

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: 600   |  Last updated: Mar 22, 2023
  • 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