-
-
-
-
Java is Case ________
A) InsensitiveB) Sensitive
-
-
-
Java compiler is an executable code
A) TrueB) FalseExplanation: It is NOT an Execuatable Code. It is a Bytecode
-
-
When does the compiler supply a default constructor for a class
The compiler supplies a default constructor for a class if no other constructors areprovided.
-
You do not need to follow any special indentation rules in Java
A) TrueB) FalseExplanation: Java is a free-form language
-
A constant value in Java is created by using a literal representation of it
A) TrueB) FalseExplanation: A constant value in Java is created by using a literal representation of it. For example, here are some literals:100 98.6 'X' "This is a test"Left to right, the first literal specifies an integer, the next is a floating-point value, the third is a character constant, and the last is a string. A literal can be used anywhere a value of its type is allowed
-
State true or false :- Is the procedure to own the moniter by many threads?
A) TrueB) FalseExplanation: It is not possible.
-
-
-
-
-
-
Which of the following are true about the File class? (Select multiple)
A) File objects can be garbage collected.B) A File object can be used to access the files in the current directory.C) When a File object is created, a corresponding directory or file is created in the local file system.D) File objects are used to access files and directories on the local file system.
-
-
Java Interview Questions
Ans