Question No. 1
The keyword "this" is used to
invoke constructor of super class from sub class
invoke alternate constructor of the same class
invoke constructor of the another class
invoke constructor of sub class from super class
Question No. 2
Which of the following feature does Java provide?
Multiple Inheritance
Overriding
Pointers
Operator Overloading
Question No. 3
If we want to call toString() method of parent class in JAVA. Which of the following statement will be used
super.toString();
sub. toString();
new. toString();
this. toString();
Question No. 4
Overloading is _______ whereas overriding is _____
Run time binding, compile time binding
Late binding, compile time binding
Compile time binding, run time binding
Question No. 5
Which of the following command is used to compile Java code?
javac filename.java
javac filename
java filename.java
java filename
Question No. 6
Which of the following is true about primitive data types and reference data types?
Primitive data types are created on heap whereas references are created on stack
Both primitive data types and references are created on stack
Primitive data types are created on stack whereas references are created on heap
Both primitive data types and references are created on heap
Question No. 7
To develop and execute a java program, it goes through _______ phases?
2
3
4
5
Question No. 8
Which of the following statement regarding Java is false?
The Java program can run on any CPU or operating system.
Its object-oriented model enables programmers to benefit from its large set of existing classes.
Java needs to be compiled only once.
Java can run only on a Windows operating system. ok
Question No. 9
Which of the following operator is used to concatenate strings?
Select correct option:
+=
+-
++
+
Question No. 10
If there is a class "Student", then the java file must be saved with ______ name.
Select correct option:
Student_File.java
student.java
Any name
Student.java
The keyword "this" is used to
invoke constructor of super class from sub class
invoke alternate constructor of the same class
invoke constructor of the another class
invoke constructor of sub class from super class
Question No. 2
Which of the following feature does Java provide?
Multiple Inheritance
Overriding
Pointers
Operator Overloading
Question No. 3
If we want to call toString() method of parent class in JAVA. Which of the following statement will be used
super.toString();
sub. toString();
new. toString();
this. toString();
Question No. 4
Overloading is _______ whereas overriding is _____
Run time binding, compile time binding
Late binding, compile time binding
Compile time binding, run time binding
Question No. 5
Which of the following command is used to compile Java code?
javac filename.java
javac filename
java filename.java
java filename
Question No. 6
Which of the following is true about primitive data types and reference data types?
Primitive data types are created on heap whereas references are created on stack
Both primitive data types and references are created on stack
Primitive data types are created on stack whereas references are created on heap
Both primitive data types and references are created on heap
Question No. 7
To develop and execute a java program, it goes through _______ phases?
2
3
4
5
Question No. 8
Which of the following statement regarding Java is false?
The Java program can run on any CPU or operating system.
Its object-oriented model enables programmers to benefit from its large set of existing classes.
Java needs to be compiled only once.
Java can run only on a Windows operating system. ok
Question No. 9
Which of the following operator is used to concatenate strings?
Select correct option:
+=
+-
++
+
Question No. 10
If there is a class "Student", then the java file must be saved with ______ name.
Select correct option:
Student_File.java
student.java
Any name
Student.java
Comments
Post a Comment
Please give us your feedback & help us to improve this site.