This Eclipse JAVA quiz assesses knowledge in Java programming, focusing on thread handling, operations, and concurrency. It tests understanding of thread behavior, output predictions, and Java's fundamental concepts, enhancing learners' debugging and Java development skills.
Prints 2, false
Prints: 1, true
Prints: 2, true
Prints: 1, true
Rate this question:
HelloolleH44
HelloolleH55
HelloHello55
HelloHello33
HelloHello44
Rate this question:
Compilation Error
Planet
Planet Welcome
Welcome Planet
Rate this question:
Calling the wait method on an object.
Callling the notifyAll method on an object.
Existing from a synchronized block.
Calling the noitify method on an object.
Rate this question:
Float f=1.3;
Char c="a";
Byte b=257;
Boolean b=null;
Int i=10;
Rate this question:
ResultSet.TYPE_SCROLLABLE
ResultSet.TYPE_FORWARD_ONLY
ResultSet.TYPE_SCROLL_SENSITIVE
ResultSet.TYPE_SCROLL_BIDIRECTIONAL
Rate this question:
Prints: "Value of z: 16"
A runtime ArithmeticException will be thrown.
Prints: "Value of z: 14"
Prints: "Value of z: 15"
Rate this question:
"a= abc"
"abc"
""abc"" e. "abc"
\"abc\"
Abc
Rate this question:
Compilation error
'Before start method' and 'After stop method'
Runtime exception
'Before start method' only
Rate this question:
Labeled goto
Labeled continue
Labeled throw
Labeled catch
Labeled break
Rate this question:
Annotations are not part of a program.
Annotations are static methods.
Annotations are predefined classes.
Annotations are data about program.
Rate this question:
Alpha is-a Gamma and has-a Beta.
Beta has-a Gamma and Gamma is-a Alpha.
Alpha has-a Beta and Alpha is-a Gamma
Gamma has-a Beta and Gamma is-a Alpha
Alpha is-a Gamma and has-a Beta.
10 10
10 10 20
Compilation Error
10 20
30
Rate this question:
List
Set
None of the listed options
Map
Rate this question:
Statement
Validate
Assertion
Exception
None of the listed options
Rate this question:
X[25] is 0
X[24] is 0
X[0] is null
X[24] is undefined
X.length is 25
Rate this question:
Prints: v w x y z
Prints: v w w x y y z d
Prints: v w x x y z z
Prints: d d d d d d
Prints: v w x y z d
Rate this question:
In an inheritance hierarchy, a superclass can also act as a sub class
Inheritance is a kind of Encapsulation
In an inheritance hierarchy, a subclass can also act as a super class
Inheritance does not allow sharing data and methods among multiple classes
Inheritance enables adding new features and functionality to an existing class without modifying the existing class
Rate this question:
A
Runtime error
B
Object
Anonymous
Rate this question:
Equals(Object)
HashCode()
ToString()
CompareTo(Object)
Run()
Rate this question:
Reads the text from keyboard and prints the same to the console on pressing Ctrl Z, flushes (erases) the same from the console.
Reads the text from keyboard line by line and prints the same to the console on pressing ENTER key at the end of every line, then the same is flushed (erased) from the console.
Reads the text from keyboard and prints the same to the console on pressing Ctrl Z
Reads the text from keyboard character by character and prints the same to the console on typing every character.
Reads the text from keyboard line by line and prints the same to the console on pressing ENTER key at the end of every line
Rate this question:
Float f = new Float("45.67d");
Character c = new Character("a");
Byte bite = new Byte("-128");
Integer integer = new Integer("false");
Boolean b = new Boolean("23.9");
All classes must define a constructor
A constructor can be declared as private
A constructor can declare a value
A constructor can access the non-static member of a class
Rate this question:
A class is a collection of objects
An object is a collection of properties and methods
A package is a collection of classes
A package is a collection of objects
An object is a collection of pacakges
Rate this question:
Compile-time error
Prints: AB
Prints: BA
Prints: A
Prints: B
Rate this question:
String s = new String[5];
String s = new String("");
String can be constructed from byte arrays
String s = new String(null);
String can be made from character arrays
Rate this question:
Start
Sleep
Run
Wait
Yield
Rate this question:
@Deprecated
@Target
@SuppressWarnings
@Override
@Retention
Rate this question:
Public void eatMe() throws Throwable
Public void eatMe() throws BadTasteException
Public void eatMe() throws RuntimeException
Public void eatMe() throws BitterException, SourException
Public void eatMe() throw BadTasteException
Rate this question:
Quiz Review Timeline (Updated): Jul 12, 2023 +
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.