This test will measure the applicants knowledge and competency in the technical field of Java development and programming
4 bits
7 bits
8 bits
16 bits
Static
Private
Default
Compilation error
Runtime error
A being 3.5
A being 3
Compilation error
Runtime error
No errors
Compilation error: Divisions must be in a try block
Compilation error: DivideByZeroException
Runtime Exception
No Error: a is NaN
Compilation error: Divisions must be in a try block
Compilation error: DivideByZeroException
Runtime Exception
No Error: a is NaN
True
False
Compilation error
Runtime Error
Runtime Exception
Output of b is 1
Compile error
Runtime Exception
No error
Compiler error
Runtime Exception
No errors
True
False
True
False
True
False
A methods in object
An operator and keyword
True
False
Yes
No
Yes, always
No, not when A is abstract
Compiler error
Runtime Exception
True
False
True
False
True
False
True
False
By marking it private
By marking it volatile
By marking it transient
You can not.
Integer
Boolean
Character
Long
Short
Flowlayout
Gridlayout
BorderLayout
When you construct an instance of File, if you do not use the filenaming semantics of the local machine, the constructor will throw an IOException.
When you construct an instance of File, if the corresponding file does not exist on the local file system, one will be created.
When an instance of File is garbage collected, the corresponding file on the local file system is deleted.
None of the above
A new directory called dirname is created in the current working directory
A new directory called dirname is created in the current working directory. A new file called filename is created in directory dirname
A new directory called dirname and a new file called filename are created, both in the current working directory
A new file called filename is created in the current working directory
No directory is created, and no file is created
Quiz Review Timeline +
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.