-
Is it true the JAVA is realy a plateform indepandent?
no, because Java does not support multiple inheritance directly.
-
-
-
-
-
-
Int and integer
What is the difference between int and integer?
-
-
What are the two types of multitasking?1. Process-based2. Thread-based
A) 1B) 2C) Both 1,2D) None of the above
-
The this reference is used in conjunction with ___methods.
A) staticB) non-staticC) privateD) protected.
-
-
The Java compiler requires that a source file use the ________ filename extension
A) .hB) . javaC) >javaD) .class
-
The Separator, Comma is Used to separate package names from subpackages and classes
A) TrueB) FalseExplanation: Comma Separates consecutive identifiers in a variable declaration while the Period . is Used to separate package names from subpackages and classes
-
-
-
What is a constructor ?
A constructor is a special member function which will construct an object with user defined values whenever object is created OR A constructor is a special member function which will be called automatically to initialize the data member of a class whenever object is instantiated.
-
-
Is the following Java program run? private static void main(String args[]) { class valan { //body of the class } }
No. Compilation error will occur.The error message is : main method should be public
-
-
Java Super Class
Which is the most super class of all the Java classes?
Java Interview Questions
Ans