JAVA Quiz

A vibrant and engaging image showcasing Java programming elements, such as a laptop with Java code on the screen, a coffee cup, and books about programming, in a techy workspace environment.

Java Mastery Quiz

Test your knowledge of Java with this engaging quiz designed for programmers of all levels! Dive into 20 carefully crafted questions that cover everything from fundamental concepts to advanced programming techniques.

Are you up for the challenge? Here are some features:

  • Multiple choice questions
  • Instant scoring
  • Learn and reinforce your Java skills
20 Questions5 MinutesCreated by CodingWhiz321
Which class can access all public and protected methods and fields of its super class?
Super Class
Inner Class
Sub Class
Outer Class
Is HashMap thread-safe ?
Yes
No
Can we use Class.forName() to create object in JAVA ?
Yes
No
Is Runnable a part of Thread LifeCycle in Java ?
Yes
No
When does method overloading is determined?
Run Time
Compile Time
Coding Time
Execution
What is the state if an object has its own lifecycle and there is no owner?
Aggregation
Association
Encapsulation
Composition
What is it called where object has its own lifecycle and child object cannot belong to another parent object?
Aggregation
Association
Encapsulation
Composition
What is the return type of Constructors?
Void
Int
Float
None
Which operator is used by Java run time implementations to free the memory of an object when it is no longer needed?
Delete
Free
New
None
Which of this method of class StringBuffer is used to reverse sequence of characters?
Reverse()
Reverseall()
Reverse()
reverseAll()
Which of these is a method to clear all the data present in output buffers?
Clear()
Flush()
Close()
Clean()
Which of the following keyword is used by calling function to handle exception thrown by called function?
Throws
Throw
Try
Catch
Which of the following handles the exception when a catch is not used?
Finally
Throw handler
Default handler
Java run time system
At runtime, error is recoverable.
True
False
Which of these are legacy classes?
Stack
Array
LinkedList
None of these
Which of these methods is used to add elements in vector at specific location?
Add
Set
AddElement
AddElement
Which of this method is given parameter via command line arguments?
Main()
Recursive()
Add()
System defined methods
Which of these is a method of ObjectInput interface used to deserialize an object from a stream?
Int read()
Void close()
Object readObject()
Object writeObject()
Which of these class extend InputStream class?
ObjectStream
ObjectInputStream
ObjectOutput
ObjectInput
Which of these is used to perform all input & output operations in Java?
Streams
Variables
Classes
Methods
{"name":"JAVA Quiz", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Java with this engaging quiz designed for programmers of all levels! Dive into 20 carefully crafted questions that cover everything from fundamental concepts to advanced programming techniques.Are you up for the challenge? Here are some features:Multiple choice questionsInstant scoringLearn and reinforce your Java skills","img":"https:/images/course1.png"}
Powered by: Quiz Maker