This 'java pool bit meerut' quiz assesses understanding of Java, covering basics, keywords, identifiers, versions, data types, and exception handling. It's ideal for learners aiming to enhance their Java programming skills.
Goto
Enum
Switch
Class
Critical
Rate this question:
Int __;
Int $_1;
Int 123;
Int a*g;
Int th_is;
Rate this question:
Java 5.0
Java 6.0
Java 1.1
Java 1.0
Java 2.0
Rate this question:
Int
Boolean
Short
Long
Float
Rate this question:
IllegalStateException
IllegalArgumentException
NumberFormatException
IllegalMonitorStateException
ArrayIndexOutOfBoundException
Rate this question:
Fa la
La fa
Fa fa
La la
Compilation fails
Rate this question:
Hello
No output is generated
An Exception is thrown at run time
Compilation fail
None of above
Rate this question:
221
321
233
333
Compilation fails
Rate this question:
01
012
Compilation fails at line 7
Compilation fails at line 8
Compilation fails at line 9
Rate this question:
2
3
4
5
Compilation fails
Rate this question:
A static method cannot be synchronized.
If a class has synchronized code,multiple threads can still access the non-synchronized code.
Variables can be marked synchronized
When a thread sleeps,it releases its locks
When a thread invockes wait(),it releases its locks
Rate this question:
Compilation fails
Exception
Hello world
Hello world Finally executing
Finally executing Hello world
Rate this question:
Private int doStuff(float y){return 4;}
Protected int doStuff(float y){return 4;}
Public Integer doStuff(float y){return 4;}
Final int doStuff(float y){return 4;}
Public long doStuff(float y){return 4;}
Rate this question:
A
B
Ab
Compilation fails
An exception is thrown at runtime
Rate this question:
Encapsulation limits the consequences of change.
Encapsulation makes it easier to reuse classes.
Encapsulation results in better testing and higher reliability.
Encapsulation means that methods are all public.
Encapsulation means that classes are members of packages.
Rate this question:
Xxx
Xxz
Zyy
Zyz
An exception is thrown at runtime
Rate this question:
Private long cat(int x){return 7;}
Public long cat(){return 7;}
Long cat(){return 7;}
Protected int cat(int x){return 7;}
None of these
Rate this question:
Static public interface Foo{}
Abstract public class Foo{}
Protected interface Foo{}
Final abstract class Foo{}
Final public class Foo{}
Rate this question:
120
121
122
123
Compilation fails
Rate this question:
Tree.add(3.14);
Tree.add("42");
Tree.add(Integer.valueOf("-1"));
Tree.add(null);
Tree.add(0xCAFE)
Rate this question:
ON
Bright
Compilation fails
No output is produced
Exception
Rate this question:
It is not good practice to place assertions where you think execution should never reach.
It is sometimes appropriate to call getters and setters from assertions.
Use assertions to verify the arguments of private methods.
Assertions can be disabled for a particular class
Never throw an AssertionError explicitly
Rate this question:
Try
Try fin
Exc fin
Fin then a runtime exception
Compilation fails
Rate this question:
Java.io.File
Java.io.FileWriter
Java.io.PrintWriter
Java.io.FileReader
Java.io.BufferedWriter
Rate this question:
Sa is instance variable .
Sa is object.
Sa is variable.
Sa is char type.
All of them.
Rate this question:
Init.
Float.
Object.
String.
None of them.
Rate this question:
Init type.
Float type.
String type.
Object type.
None of them.
Rate this question:
Multiple inheritance.
Single level.
Multi level.
Hibrid .
All of them.
Rate this question:
Plate form independent.
Roubust.
Secure.
Hierarical.
Structural.
Rate this question:
Quiz Review Timeline (Updated): Mar 15, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.