-
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.
-
-
-
The number of subscripts(indexes) in 2D array is two(2).Both row and column size must be __________________.
Integer constantsExample: int a[2][3]; Here a is an array consisting of two rows with each row with each row consists of 3 integer elements
-
-
What is the public static void main(String args[]) & System.out.println()
public: public keyword is an access speciferstatic :allows main to be call without any instance of a timevoid: does not return any valuemain: main() is the method where java Applications beginSting args[] recives command line argumentsSystem: System is predefined class that provides access to the systemout : out is o/p streamprintln():displays the output
-
-
-
-
-
-
-
-
Java Interview Questions
Ans