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



Questions: 30  |  Attempts: 840   |  Last updated: Oct 15, 2020
  • 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?{  

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: 124   |  Last updated: Feb 23, 2018
  • 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


Questions: 40  |  Attempts: 120   |  Last updated: Feb 11, 2013
  • 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());

Pls do the correction if the answer is wrong in core java.

Questions: 25  |  Attempts: 569   |  Last updated: Dec 8, 2017
  • Sample Question
    Which of the following may override a method whose signature is void xyz (float f)?1.void xyz(float f)2.public void xyz(float f3,private void xyz(float f)

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: 54   |  Last updated: Feb 23, 2018
  • 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
Advertisement

Advertisement

Core Java Questions & Answers


What statements are true about a static nested class?
A static nested class does not have any access to the non-static members of the enclosing class in order to instantiate it. A static nested class is not tied to an instance of the enclosing class. Therefore it cannot access the non-static members of
What is a Java method?
A Java method can be defined as the collection of several statements that are usually grouped together in order to perform a given operation when you call out the system out printing method. For instance, the system would actually execute different s
What will be the output of the code snippet below?
The output of the above code would be S-1. Java is a very popular computer programming language. It is usually designed to have as less implementations as possible. Usually, java applications are formed together to bytecode that can run on other java
What is core java?
Core Java is much more than the programming language itself. Core Java is basically an important platform with numerous sub-topics and ideas. Inside of the Core Java language, there is a modest concept of Core ideas that are important to comprehend.
More More core java Questions