Java MCQ Questions | Java MCQ Questions and Answers
In this article Java MCQ Questions we give the information about Java MCQ Questions and Answers in details also provide Java Objective Questions.
JAVA MCQ with Answer
(1) Which language is Java?
- object oriented programming language
- Hyper text markup language
- client side programming language
- Server side programming language
Answer:- a
(2) In which year was java created and where?
a.1991 and U.S
b.1990 and U.S.
c.1990 and Australia
d.1991 and China
Answer:- a
(3) What was the old name of java?
a.Olk
b.Oka
c.Oak
d.Okl
Answer:- c
(4) Is java compiled or interpreted or is java in both the stages?
- first Interpreted then Compiled
- Interpreted
- Compiled
- Both
Answer:-d
(5) Which of the following is an access keyword?
- Public
- Private
- Protected
- All of these
Answer:-d
(6) Which of the following is a type of polymorphism in Java?
- Compile time polymorphism
- Execution time polymorphism
- Multiple polymorphism
- Multilevel polymorphism
Answer: a
(7) When does method overloading is determined?
- At run time
- At compile time
- At coding time
- At execution time
Answer: b
(8) Which concept of Java is a way of converting real world objects into class references?
- Polymorphism
- Encapsulation
- Abstraction
- Inheritance
Answer: c
(9) Which of the following is a primitive type?
- float
- string
- integer
- byte
Answer:- d
JAVA MCQ with Answer
(10) Out of these, Java’s keyword is.
- NULL
- Sizeof
- Friend
- Extends
Answer:- d
(11) What are access modifiers?
- public
- private
- protected
- default
- All these
Answer:- e
(12) Who developed Java?
- Microsoft
- Sun Microsystems
- Amazon
- None of these
Answer:- c
(13) Java interpreter converts which of the following into machine code?
- User Code
- Bit Code
- Byte Code (Virtual Machine Code)
- Machine Code
Answer:- c
(14) Who among these are the inventors of Java?
- Fleming
- James Gosling
- Balaguru Swami
- Dennis Ritchie
Answer:- b
(15) What is the full name of JVM?
- Java Variable Machine
- Java Virtual Method
- Java Virtual Machine
- Java Versatile Machine
Answer:- c
(16) We cannot create a subclass of which of the following classes.
- final
- public
- static
- abstract
Answer:- a
(17) Which of the following errors are called all syntax errors?
- Exception
- Run-time
- Compile-time
- Logical
Answer:- c
(18) Which of the following package is used to create and implement applet?
- java.out
- java.util
- java.lang
- java.applet
Answer:- d
(19) JDBC was developed under whom.
- JPC
- JCP
- JBC
- ODBC
Answer:- b
JAVA MCQ with Answer
(20) What kind of language is Java?
- weakly typed
- moderate typed
- strongly typed
- None of these.
Answer:- c
(21) How many primitive data types are there in Java?
- 9
- 5
- 7
- 8
Answer:- c
(22) Whose collection is the package?
- of tools
- of keywords
- of the object
- Classes and interfaces
Answer:- d
(23) By whom is the life cycle of the thread controlled.
- JDK
- JRE
- JVM
- None of these
Answer:- a
(24) What is the full name of JDBC?
- Java Database Community
- Java Database Connectivity
- Java Database Concept
- Java Database Communication
Answer:- b
(25) What is the full name of JIT?
- java in time
- java in technology
- just in time
- None of these
Answer:- c
(26) Which keyword is used to define interface in Java?
- intf
- in
- interface
- None of these
Answer:- c
(27) Which of the following does not support oop?
- global variables
- abstraction
- polymorphism
- Encapsulation
Answer:- a
(28) What is the full name of jar?
- java archive
- java application runner
- java archive runner
- None of these
Answer:- a
Related Link:
- Object Oriented Programming Using C++ |BCA Semester II |History of C++
- Core Java Programming | BCA Part III | SEM-VI | What is Java
- Computer Fundamentals Notes | Computer Fundamentals Tutorial
- DOT NET Technology Tutorial | ASP.NET Tutorial for Beginners
Good article. I definitely appreciate this website. Stick with it!