Dive into the 'Ultimate Exam on Java' to test your knowledge on its history, development, and key features. This quiz covers Java's initial name, its developers, latest versions, and advanced concepts like JIT Compiler and Lambda expressions. Perfect for learners aiming to enhance their Java expertise.
Mike Sheridan & Guido van Rossum
Patrick Naughton & Guido van Rossum
Mike Sheridan & Patrick Naughton
Guido van Rossum & James Strachan
Rate this question:
Java 12
Java 11
Java 10
Java 9
Rate this question:
JIT Compiler
JVM
Java Interpreter
Operating Systems
Rate this question:
Java 8
Java 9
Java 7
Java 11
Rate this question:
At RunTime
At Compile Time
At Coding Time
None of the above
Rate this question:
Object
Class
Super
Parent
Rate this question:
Abstract
Implements
Public
Private
Rate this question:
Java.util
Java.net
Java.lang
Java.string
Rate this question:
DatagramPacket
URL
InetAddress
ContentHandler
Rate this question:
HttpRequest
HTTP
HttpResponse
Httpserver
Rate this question:
Statusrequest
Address
StatusResponse
statusCode
Rate this question:
Map
Array
LinkedList
Queue
Rate this question:
Map
Bitset
Hashtable
All of the mentioned
Rate this question:
Try
Finally
Thrown
Catch
Rate this question:
String
Catchable
Throwable
RuntimeExceptions
Rate this question:
Integer
Float
Double
Long
Rate this question:
get()
ThreadPriority()
GetPriority()
GetThreadPriority()
Rate this question:
Interfaces specifies what class must do but not how it does
Interfaces are specified public if they are to be accessed by any code in the program
All variables in interface are implicitly final and static
All variables are static and methods are public if interface is defined pubic
Rate this question:
Public static
Private final
Public final
Public static final
Rate this question:
The concrete class implementing that method need not provide implementation of that method
Runtime exception is thrown
Compilation failure
Method not found exception is thrown
Rate this question:
Nashorn
V8
Inscript
Narcissus
Rate this question:
DataInputStream data = new InputStream()
DataInputStream data = response.getInputStream()
DataInputStream data = request.getInputStream()
DataInputStream data = request.fetchInputStream()
Rate this question:
Java.io.NullPointerException
Java.lang.ClassNotFound
Java.lang.ClassFormatError
Java.lang.DuplicateClassError
Rate this question:
Jar
Both jar and war
War
Zip
Rate this question:
Multipurpose Internet Messaging Extension
Multipurpose Internet Mail Extension
Multipurpose Internet Media Extension
Multipurpose Internet Mass Extension
Rate this question:
Javax.servlet.Application
javax.servlet.HttpContext
Javax.servlet.Context
Javax.servlet.ServletContext
Rate this question:
Thread(Runnable r, String name), Thread()
Thread(), Thread(int priority)
Thread(int priority), Thread(Runnable r, int priority)
Thread(Runnable r, ThreadGroup g), Thread(Runnable r, String name)
Rate this question:
X.delete()
x.finalize()
Runtime.getRuntime().gc()
Only the garbage collection system can destroy an object
Rate this question:
Thread returns to the ready state
Thread returns to the waiting state.
Thread starts running.
None of the above.
Rate this question:
Abstraction
Encapsulation
Data Hiding
Polymorphism
Rate this question:
Java.io package
java.lang package
Java.awt package
Java.net.package
Rate this question:
The finalize( ) method must be declared with protected accessibility
The finalize( ) method can be overloaded
The compiler will fail to compile the code that explicitly tries to call the finalize( ) method
The body of the finalize( ) method can only access other objects that are eligible for garbage collection
Rate this question:
Subclasses of a class must reside in the same package as the class they extend
Local variables can be declared static
You cannot specify accessibility of local variables.
None of the above.
Rate this question:
Finally()
finalizer()
finalize()
Finalized()
Rate this question:
Java threads don’t allow parts of a program to be executed in parallel
Java is a single-threaded language
Java’s garbage collector runs as a high priority thread
Ready, running and sleeping are three states that a thread can be in during its life cycle
Rate this question:
HTTP
HTTPS
FTP
HTTP Tunneling
Rate this question:
Socket
Server
ServerSocket
ServerReader
Rate this question:
HostReachable()
Ping()
IsReachable()
PortBusy()
Rate this question:
URL rewriting
Hidden form fields
SSL sessions
Cookies
Rate this question:
AnonymousHolder
SecurityHolder
ContextHolder
SecurityContextHolder
Rate this question:
Files.delete(path)
Files.deleteDir()
Directory.delete()
Directory.delete(path)
Rate this question:
Apache commons
File
File commons
Dir
Rate this question:
Java.applet
Java.awt
java.awt.image
java.io
Rate this question:
Java.lang.reflect
Java.applet
java.awt
java.io
Rate this question:
RandomBoolean()
NextBoolean()
PreviousBoolean()
generateBoolean()
Rate this question:
TimeZone
Simple TimeZone
Date
Locale
Rate this question:
All Window Tools
Abstract Writing Toolkit
Abstract Window Toolkit
All Writing Tools
Rate this question:
Byte stream
Integer stream
Short stream
Long stream
Rate this question:
Quiz Review Timeline (Updated): Mar 20, 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.