Search Placementyogi.com
 

Core Java Multiple Choice Questions and Answers

  :: Topics ::

11

JVM is platform independent

A. True
B. False
See Answer & Explanation Lets Discuss
Correct answer is : B
Explanation

Do not make this Mistake Ever!!!!!

JVM is NOT platform independent.

The most popular JVM is called HotSpot by Oracle which is written in C++ and thus, is Platform Dependent. Different JVMs are needed for different environments like Windows specific JVM, Unix Specific JVM etc.

 
12

JAR stands for?

A.

Java Archive

B.

Java Archive Runner

C.

Java Application Runner

D.

None of the above

See Answer & Explanation Lets Discuss
Correct answer is : A
Explanation

JAR (Java Archive) is an archive file which are used to group together java class files, metadata, and other resources like images which are used in the application into one compact file that can be used to distribute the application.

Ref: http://en.wikipedia.org/wiki/JAR_(file_format)

 
13

Is the following way of commenting correct in Java?

/*My Comment 1

       /*My Comment 2*/

*/

A. True
B. False
See Answer & Explanation Lets Discuss
Correct answer is : B
Explanation

No! Nesting of Multi-line comments is not allowed in java

 
14

What are the pillars of OOPS concept?

A.

Abstraction,Inheritance, Encapsulation, Polymorphism

B.

Atomicity, Inheritance, Encapsulation, Polymorphism

C.

Abstraction, Inheritance, Polymorphism

D.

None of the Above

See Answer & Explanation Lets Discuss
Correct answer is : A
Explanation

Abstraction: Hiding unnecessary details from the user.

Inheritance: Maintaining a hierarchy and reuse of code.

Encapsulation: Protecting the data of a class , by providing access only through methods.

Polymorphism: Using same name for performing different functions, ex: Function overloading.

 
15

___________ is a name given to a variable, class or method

A.

Constant

B.

Reference

C.

Identifier

D.

Modifier

See Answer & Explanation Lets Discuss
Correct answer is : C
Explanation

An identifier is a name given to a variable, class or method. It uniquely identifies a memory space inside a java code block.

 
 

Crackbill Ad
Hide Page Information

Core Java Multiple Choice Questions and Answers for Written Round Interview

Here you can find Core Java Multiple Choice Questions with answers and explanation. We have a vast collection of Multiple Choice Questions on Core Java that will help you a lot!

Why learn Core Java?

Java are an integral part of Java and many Multiple Choice Questions in the written round are asked from this topic.In this section you can learn and practice Core Java (Multiple Choice Questions with Answers) to improve your skills in order to face the interview and clear campus and off-campus selection of TCS, Infosys, Wipro etc.

Where can I get Core Java Multiple Choice Questions and Answers with Explanation?

PlacementYogi provides you lots of fully solved Core Java Multiple Choice Questions and answers with explanation. Fully solved examples with detailed answer description, explanation are given and it would be easy to understand. Though we do not have pdf file for Core Java, We have quiz Multiple Choice Questions with answers to help you test yourself..

\n

Where can I get Core Java Interview Multiple Choice Questions and Answers (objective type, multiple choice)?

Here you can find objective type Core Java Multiple Choice Questions and answers for interview and entrance examination.Multiple Answers and true or false type Multiple Choice Questions are also provided.

How to solve Core Java problems?

You can easily solve all kind of Multiple Choice Questions based on Core Java by practicing the exercises (including shortcut Java to solve problems) given below.