-
-
-
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
-
-
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
-
-
-
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.
-
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
-
-
-
Swing's text components display text and optionally allow the user to edit the text
Skill/Topic: AWT & AppletsA) TrueB) False
-
Thread class is defined in the package ______
Skill/Topic: AWT & AppletsA) java.lang
Java Interview Questions
Ans