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. Java works on different platforms such as Windows, Mac, Linux, and Raspberry Pi. It is relatively easy to learn and simple to use. This quiz is the most challenging core Java quiz, but you can do it. Go for it.
i = 2 j = 1
i = 1 j = 2
i = 2 j = 2
The program compilation fails because of line number 6.
Rate this question:
True
False
Rate this question:
1
2
4
The program compilation fails because of line number 5.
Rate this question:
100 200
Compilation error at line no-6.
Compilation error at line no-9.
Compilation error at line no-11.
Rate this question:
True
False
Rate this question:
Int double long int
Long int double int
Double int int long
Int int long double
Rate this question:
Primitive Wrapper
Wrapper
Primitive
Wrapper Primitive
Rate this question:
Private and protected
Public and protected
Protected
Default(blank)
Rate this question:
1
2
4
The program compilation fails because of line number 6.
Rate this question:
1
2
4
The program compilation fails because of line number 6.
Rate this question:
1
2
0
4
Rate this question:
Runs fine
Shows compile time error
Shows run time error
None of the above
Rate this question:
False false
True true
False true
True false
Rate this question:
1
0
4
The program compilation fails because of line number 2.
Rate this question:
Not equal
Equal
Compile time error at line 3
Compile time error at line 5
Rate this question:
Hello
Hello Hi
Runtime exception.
Compilation error at line no-4.
Rate this question:
1
4
6
8
Rate this question:
True
False
Rate this question:
1 2 3
1 1 2
Repeatedly print 123 and cause infinite loop.
The program compilation fails because of line number 2.
Rate this question:
0
5
Returns garbage value
Compiler error
Rate this question:
Compile error
30 29,.....untill 1
1 2 3.....untill 30
No output
Rate this question:
7
8
8 9 10
Compilation error at line no-4.
Rate this question:
1
Compile time error at line no 2.
Print nothing
Compile time error at line no 6.
Rate this question:
for( int a = 0 ; a< sum.length ; )
For( a= 0 ; a< sum.length ; )
For( a = 0 ; a< sum.length ; a++ )
for( a = 1 ; i
Rate this question:
If (trueInt)
If (trueInt == true)
If (1)
If (falseInt == false)
If (trueInt == 1)
If (falseInt == 0)
Rate this question:
Above program will throw exception & will not run
Inside check() method of class
Inside check() method of Subclass
Rate this question:
10
14
13
11
Rate this question:
A='A' output=1.
Compile error.
A='X' output=0.
A='D' output=0.
Rate this question:
5
Compile error
5 4
5 4 3
Rate this question:
Float
Double
String
Int
Byte
Rate this question:
While (x) { }
While (x = 5) { }
While (x == 5) { }
While (true) { }
Rate this question:
Start
End
Start end
Compilation error at line no-7.
Rate this question:
The program compilation fails because of line number 3.
1
3
The program compilation fails because of line number 5.
Rate this question:
It compiles and runs fine
It shows compile error
On run time it will show error
Nothing will happen
Rate this question:
An Exception is raised during compilation
An Exception is thrown at run time
Unresolved compilation problem
A=2 or a=1 or i >2.5 Value of i =null
Rate this question:
5 8
5
8
Compile error
Rate this question:
Long and Integer
Integer
Long
None of the above
Rate this question:
Int a = 3;
Short a = 4;
Char a = 'p';
Long a= 388;
Boolean a = true;
For(x2 : la) ;
For(int x2 : twoDee) ;
For(int x3 : la) ;
For(Dog d : animals) ;
None of the above
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Essentials Of Core Java
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:...
Questions:
35 |
Attempts:
106 |
Last updated:
Feb 13, 2024
|
Basics Of Core Java
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...
Questions:
50 |
Attempts:
237 |
Last updated:
Mar 22, 2023
|
Evaluate Your Knowledge Of Core Java
This quiz evaluates your understanding of Core Java, focusing on syntax, programming structures, and key concepts such as static methods and abstract classes. Ideal for learners...
Questions:
5 |
Attempts:
322 |
Last updated:
Oct 04, 2024
|
Core Java Quiz And Java Online Test Quiz
This Core Java Quiz assesses knowledge of Java programming fundamentals, including constructors, data types, operators, and control structures. It is designed for learners to test...
Questions:
31 |
Attempts:
267 |
Last updated:
Mar 22, 2023
|
The Ultimate Java Test For Beginners
This is the ultimate Java test for all those Java developer-wannabes who have just began practicing the programming language. It consists of over 93 questions of basically Core...
Questions:
93 |
Attempts:
32716 |
Last updated:
Mar 21, 2025
|
CORE JAVA MOCK TEST-3
INTRODUCTION TO OOPS
INTRODUCTION TO JAVA AND SDE
LANGUAGE FUNDAMENTALS AND OPERATORS
Questions:
45 |
Attempts:
683 |
Last updated:
Sep 05, 2023
|
|
Wait!
Here's an interesting quiz for you.