Core Java Quizzes, Questions & Answers
Top Trending Quizzes
CORE JAVA TEST 6 assesses knowledge in Java file handling, exception management, and object serialization. It evaluates the ability to handle files, manage exceptions, and understand Java's I\/O system, crucial for Java...
Questions: 40 | Attempts: 264 | Last updated: Mar 21, 2023
-
Sample QuestionWhat 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: 704 | Last updated: Mar 22, 2023
-
Sample QuestionWhich 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)
Simple Quiz based on basics of Core Java covering almost all important aspects of programming language.Make sure to come out with flying colors.Passing: 80%Time: 30 Minuteswww.java-interviewer.blogspot.com
Questions: 50 | Attempts: 222 | Last updated: Mar 22, 2023
-
Sample QuestionYou would use Java because?
This Core Java Questions: Quiz! Exam assesses understanding of Java constructors, annotations, and their properties. It's designed for learners to test their knowledge on fundamental Java concepts, enhancing their ability to...
Questions: 30 | Attempts: 3813 | Last updated: May 15, 2024
-
Sample QuestionConsider 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?{
INTRODUCTION TO OOPS
INTRODUCTION TO JAVA AND SDE
LANGUAGE FUNDAMENTALS AND OPERATORS
Questions: 45 | Attempts: 681 | Last updated: Sep 5, 2023
-
Sample QuestionConsider 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?
Recent Quizzes
Quiz based on must know concepts of Core Java covering almost all essential aspects of programming language.
Make sure you come out with flying colors :)
Passing: 70%
Time: 30 Minutes
Questions: 35 | Attempts: 103 | Last updated: Feb 13, 2024
-
Sample QuestionIs it possible to have abstract static method for a class?
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: 601 | Last updated: Mar 22, 2023
-
Sample QuestionWhat 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
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: 478 | Last updated: Sep 7, 2023
-
Sample QuestionWhat 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: 5 | Attempts: 322 | Last updated: Oct 4, 2024
-
Sample QuestionWhich is the correct way to declare and store a character value to a variable?
Questions: 35 | Attempts: 137 | Last updated: Apr 23, 2024
-
Sample QuestionWhich statement is true?
Questions: 40 | Attempts: 92 | Last updated: Dec 7, 2023
-
Sample QuestionUnder which of the following scenarios a checked exception is thrown? (Choose 2)
COLLECTION
UTILITY PACKAGE
Questions: 40 | Attempts: 650 | Last updated: Sep 7, 2023
-
Sample QuestionWhich 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)
Advertisement