

MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your General Awareness knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which of these statements is incorrect about Thread? |
A. | start() method is used to begin execution of the thread |
B. | run() method is used to begin execution of a thread before start() method in special cases |
C. | A thread can be formed by implementing Runnable interface only |
D. | A thread can be formed by a class that extends Thread class |
Answer» C. A thread can be formed by implementing Runnable interface only | |
2. |
Which of the following is a superclass of every class in Java? |
A. | ArrayList |
B. | Abstract class |
C. | Object class |
D. | String |
Answer» D. String | |
3. |
What is Truncation in Java? |
A. | Floating-point value assigned to a Floating type |
B. | Floating-point value assigned to an integer type |
C. | Integer value assigned to floating type |
D. | Integer value assigned to floating type |
Answer» C. Integer value assigned to floating type | |
4. |
Which of the following is a type of polymorphism in Java Programming? |
A. | Multiple polymorphism |
B. | Compile time polymorphism |
C. | Multilevel polymorphism |
D. | Execution time polymorphism |
Answer» C. Multilevel polymorphism | |
5. |
Which of the following is not an OOPS concept in Java? |
A. | Polymorphism |
B. | Inheritance |
C. | Compilation |
D. | Encapsulation |
Answer» D. Encapsulation | |
6. |
Which environment variable is used to set the java path? |
A. | MAVEN_Path |
B. | JavaPATH |
C. | JAVA |
D. | JAVA_HOME |
Answer» E. | |
7. |
Which of these cannot be used for a variable name in Java? |
A. | identifier & keyword |
B. | identifier |
C. | keyword |
D. | none of the mentioned |
Answer» D. none of the mentioned | |
8. |
Which one of the following is not a Java feature? |
A. | Object-oriented |
B. | Use of pointers |
C. | Portable |
D. | Dynamic and Extensible |
Answer» C. Portable | |
9. |
Which component is used to compile, debug and execute the java programs? |
A. | JRE |
B. | JIT |
C. | JDK |
D. | JVM |
Answer» D. JVM | |
10. |
Who invented Java Programming? |
A. | Guido van Rossum |
B. | James Gosling |
C. | Dennis Ritchie |
D. | Bjarne Stroustrup |
Answer» C. Dennis Ritchie | |