Java Programming - Introduction To Java Questions and Answers

Java Programming : Introduction To Java

Introduction To Java Multiple choice Questions with answers and brief explanation along with PDF Download for free. These mcq are very useful for Java Developer Interviews asked in various companies.

1. Java was first developed in ?
[A] 1990
[B] 1991
[C] 1993
[D] 1996

Answer: B. 1991


The original and reference implementation Java compilers, virtual machines, and class libraries were developed by Sun from 1991 and first released in 1995.It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another.
2. The old name of Java was ?
[A] J language
[B] oak
[C] oct
[D] None of above

Answer: B. oak


The language was initially called Oak after an oak tree that stood outside Gosling's office; it went by the name Green later, and was later renamed Java, from Java coffee, said to be consumed in large quantities by the language's creators.
3. Which of the following feature is not supported by java ?
[A] Multithreading
[B] Reflection
[C] Operator Overloading
[D] Garbage Collection

Answer: C. Operator Overloading


We cannot overload the operators in java but we can overload functions in java.
4. Which of the following is not keyword in java ?
[A] null
[B] import
[C] volatile
[D] package

Answer: A. null


null is not a keyword in java. It is a literal value.
5. What is the full form of JDK ?
[A] Java Data Kit
[B] Java Defination Kit
[C] Java Development Kit
[D] Java Design Kit

Answer: C. Java Development Kit


it's the full featured Software Development Kit for Java, including JRE, and the compilers and tools (like Java Doc, and Java Debugger) to create and compile programs.
6. Which command is used to compile a java program ?
[A] javac
[B] java
[C] javad
[D] .javadoc

Answer: A. javac


The javac command in Java compiles a program from a command prompt. It reads a Java source program from a text file and creates a compiled Java class file. The basic form of the javac command is "javac filename "
7. What is the full form of JVM
[A] Java Virtual Machine
[B] Java Variable Machine
[C] Java Virtual Mechanism
[D] Java Variable Mechanism

Answer: A. Java Virtual Machine


A Java virtual machine (JVM) is a virtual machine that can execute Java bytecode. It is the code execution component of the Java platform.
8. What is the full form of ADT ?
[A] Abstract Data Type
[B] Abstract Development tool
[C] Abstract Design Tool
[D] Advance Development Tool

Answer: A. Abstract Data Type


In computer science, an abstract data type (ADT) is a mathematical model for a certain class of data structures that have similar behavior; or for certain data types of one or more programming languages that have similar semantics.
9. The expected signature of the main method is public static void main(). What happens if we make a mistake and forget to put the static keyword ?
[A] The JVM issues an error saying that main method should be declared static
[B] The compiler issues a warning saying that main method should be declared static and adds it automati
[C] The JVM successfully invokes the main method
[D] The JVM fails at runtime with NoSuchMethodError

Answer: D. The JVM fails at runtime with NoSuchMethodError


There is nothing special about the main method and the compiler compiles it like any other method, so it issues no warning or error. The JVM looks for the static main method with the expected signature, and since the static main method is missing, so it throws exception NoSuchMehodError and terminates.
10. What does the AWT stands for ?
[A] Abstract Windowing toolkit
[B] A web toolkit
[C] Application with types
[D] Absolutly wonderfull toolkit

Answer: A. Abstract Windowing toolkit


AWT is the original user interface provided in java.The AWT classes are provided in java.awt package.

Are these questions helpful for you?

Comments: (Your feedback is valuable to us)

Barani Janani 1 week ago Reply

How to download this pdf

sonali 3 weeks ago Reply

greate . it is helpful to my exam

Nitish Patil 1 month ago Reply

how to download?

LEONARD KANGWA MWANSA 2 months ago Reply


raju 3 months ago Reply

it is helpful

pratiksha 3 months ago Reply

It is very useful.

yagyaram 4 months ago Reply


divya 6 months ago Reply


henwall 9 months ago Reply


bhargav 11 months ago Reply

hlped me a lotzzz

kalaivani 1 year ago Reply

it's good

swati 1 year ago Reply

thank u very much

Basker S 1 year ago Reply

Great site...

Asim Paracha 1 year ago Reply

It's Great Site :)

Prasad tambe 1 year ago Reply

Very usefull for me..thnx

apk 1 year ago

oo yeah

Pandey 1 year ago Reply

Better to to recall the topics

sneha 1 year ago Reply

thanks u

bhushan 1 year ago Reply

thanku so much

Bikram 1 year ago Reply

Great work.

poornima 1 year ago Reply


yogesh 1 year ago

Ooo yeah......