-
The Separator [ ] is Used to declare array types
A) TrueB) False
-
State true or false :- Can we declare variable inside a method as final variables?
A) TrueB) FalseExplanation: because, local variable cannot be declared as final variables
-
Java 2 means Second Generation Java
A) TrueB) False
-
-
-
-
-
Which class should you use to obtain design information about an object
The Class class is used to obtain information about an object's design.
-
-
Are constructors inherited? Can a subclass call the parent's class constructor? When?
You cannot inherit a constructor. That is, you cannot create a instance of a subclass using a constructor of one of it's superclasses. One of the main reasons is because you probably don't want to overide the superclasses constructor, which would be possible if they were inherited. By giving the developer the ability to override a superclasses constructor you would erode the encapsulation abilities...
-
-
What is the data type for the method isAlive() and this method is available in which class/interface?
A) boolean, ThreadB) String, ThreadC) Boolean, Runnable interfaceD) String, Runnable Interface
-
-
What is the signature of the constructor of a thread class?
A) Thread(Runnable threadob,String threadName)B) Thread(String threadob, Runnable threadName)C) Thread(Runnable threadob,ArrayList threadName)D) Thread(ArrayList threadob,String threadName)
-
A single-line comment begins with a ________ and ends at the end of the line
Skill/Topic: AWT & AppletsA) /B) //C) /*D) **
-
-
-
-
In Java, a source file is officially called a compilation unit.
A) TrueB) False
-
AWT stands for Abstract Window Toolkit
Skill/Topic: AWT & AppletsA) TrueB) False
Java Interview Questions
Ans