Core Java Quizzes, Questions & Answers
Top Trending Quizzes
Questions: 30 | Attempts: 3811 | 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?{
Questions: 35 | Attempts: 136 | Last updated: Apr 23, 2024
-
Sample QuestionWhich statement is true?
Questions: 40 | Attempts: 257 | 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());
INTRODUCTION TO OOPS
INTRODUCTION TO JAVA AND SDE
LANGUAGE FUNDAMENTALS AND OPERATORS
Questions: 45 | Attempts: 680 | 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?
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 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
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: 102 | Last updated: Feb 13, 2024
-
Sample QuestionIs it possible to have abstract static method for a class?
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: 219 | Last updated: Mar 22, 2023
-
Sample QuestionYou would use Java because?
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: 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)
Access Specifers, Constructors and method
Questions: 35 | Attempts: 140 | Last updated: Aug 6, 2024
-
Sample QuestionWhich access modifier have almost identical behaviour as that of default.?
Do you know the core Java language? Java is a classed based language that was made to have minimum implementation dependencies. It is a general-purpose programming language that allows application developers to run anywhere....
Questions: 40 | Attempts: 145 | Last updated: Mar 21, 2023
-
Sample QuestionChoose the possible constructor arguments of the Float wrapper class.
JAVA is everywhere, from your microwave oven to DVD player, TV remotes to music players, almost everywhere JAVA is used. Well, cut to short, Core Java focuses on the language basics such as data structures, data types, operators,...
Questions: 45 | Attempts: 746 | Last updated: Mar 21, 2023
-
Sample QuestionWhich of the following are uses of Object class?(Choose 3)
Pls do the correction if the answer is wrong in core java.
Questions: 25 | Attempts: 701 | 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)
Advertisement