Hello Diploma Students in this article we have provided 22412 Java Programming Mcq Questions and Answers pdf. In this Java Programming Multiple Choice Questions and Answers We have Selected 30 Important Questions from Previous Year Papers and Made A possible Set Of Questions which can Help Students in Preparation for Their Exams.

This Mcq on Java Programming with Answers Is Ideal for Candidates who are in 2nd Year of Diploma in Computer Engineering By Referring this Mcq of Java Programming Diploma in Computer Engineering Students Can Practice for their Upcoming Exams. We Have Also Provided java programming mcq pdf Link at the end of the Quiz You can Download it for Future Refrence.

For More Java Mock Test Questions (Start Test)

Java Programming Mcq Questions and Answers

1) The java interpreter uses ____________ method before any objects are created. 
a)Class
b) Main
c)Constructor
d) All of above

Correct!

Wrong!

2)  ____________ is used for naming classes, methods, variables etc in a program. 
a)Operator
b) Separator
b)Identifier
d) Constructor

Correct!

Wrong!

3)  ____________  is reserved keyword in java.
a)Abstract
b) Extends
b)Package
d) All of above

Correct!

Wrong!

4)  Java provides an extensive set of classes, arranged in ___________. 
a)Package
b) Library file
c)Template class
d) None

Correct!

Wrong!

5) The process of converting one date type to another is called__________ 
a)Translating
b) Casting
c)Compiling
d) Declaring

Correct!

Wrong!

6) Java does not support ______________.
a)Operator overloading
b) Global variable
c)Multiple inheritance
d) All of above

Correct!

Wrong!

7)  ………………… is one of the cornerstones of object-oriented programming because it allows the creation of hierarchical classifications. 
A) Mutual Exclusion
B) Inheritance
C) Package
D) Interface

Correct!

Wrong!

8) The variables, methods, and inner classes that are declared ………………… are accessible to the sub-classes of the class in which they are declared.
A) private
B) public
C) protected
D) friend

Correct!

Wrong!

9)  ………………….. package in java contents language utility classes such as vectors, hash tables, random numbers date etc. 
A) java.util
B) java.awt
C) java.net
D) java.lang

Correct!

Wrong!

10) . …………………….. package in java contents set of classes for implementing graphical user interface, which includes classes for windows, buttons, lists, menus and so on. 
A) java.util
B) java.awt
C) java.net
D) java.lang

Correct!

Wrong!

11) A package is a collection of
A) Classes
B) interfaces
C) editing tools
D) classes and interfaces

Correct!

Wrong!

12) ________ methods must be overridden in the subclass. 
a) public
b) final
c) abstract
d) static

Correct!

Wrong!

13) The subclass constructor uses the ________ keyword to invoke the constructor of the superclass.
a) super
b) Final
c) static
d) public

Correct!

Wrong!

14)  __________ is a special method in java that enables an object to initialise itself when it is created.
a) constructor
b) destructor
c) static
d) final

Correct!

Wrong!

15) ________ defines only abstract methods and final fields. 
a) Interface
b) Final class
c) Abstract class
d) Class

Correct!

Wrong!

16) __________ keyword is used to inherit a class. 
a) extend
b) extends
c)implement
d) implements

Correct!

Wrong!

17) …………………attribute of applet tag specify the width of the space on the HTML page that will be reserved for the applet.
A) WIDTH=pixels
B) HSPACE=pixels
C) WIDTH=pixels
D) HBLANK=pixels

Correct!

Wrong!

18)  An applet is a Java class that extends the? 
A. java.Applet class
B. java class
C. Applet class
D. java.applet.Applet class

Correct!

Wrong!

19) Applets are designed to be embedded within an __________. 
A. Javascript
B. Css
C. HTML
D. SQL

Correct!

Wrong!

20) Which of the following is required to view an applet? 
A. JCM
B. JDM
C. JVM
D. Java class

Correct!

Wrong!

21) Which method is automatically called after the browser calls the init method? 
A. start
B. stop
C. destroy
D. paint

Correct!

Wrong!

22) Combining two or more input streams into a single input stream can be achieved using the ………………. class. 
A) SequenceOutputStream
B) BufferedInputStream
C) BufferedOutputStream
D) SequenceInputStream

Correct!

Wrong!

23)  ……………….. streams provide functionally for threads to communicate and exchange data between them. 
A) Object
B) Piped
C) Pushback
D) Filtered

Correct!

Wrong!

24) When the ………………. method of the Applet class is called, it displays the result of the Applet code on the screen. 
A) paint( )
B) repaint( )
C) update( )
D) re update( )

Correct!

Wrong!

25) The class at the top of the exception classes hierarchy is called …………………… 
A) throwable
B) catchable
C) hierarchical
D) ArrayIndexOutofBounds

Correct!

Wrong!

26) . ………………… exception is thrown when an exceptional arithmetic condition has occurred. 
A) Numerical
B) Arithmetic
C) Mathematical
D) All of the above

Correct!

Wrong!

27) …………………. returns a string that contains the human-readable equivalent of the value with which it is called. 
A) toValue()
B) value()
C) valueOf()
D) getValue()

Correct!

Wrong!

28) _____________ _ operator is used to construct conditional expressions. 
a)Dot(.)
b) instanceof
c)Ternary(?:)
d) None

Correct!

Wrong!

29) What are the features of an Object Oriented Programming (OOPs)? 
A) Inheritance
B) Encapsulation
C) Polymorphism
D) All the above

Correct!

Wrong!

30) Which method is automatically called after the browser calls the init method? 
A. start
B. stop
C. destroy
D. paint

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

22412

I got %%score%% of %%total%% right

%%description%%

%%description%%

Loading…

Java Programming Multiple Choice Questions and Answers Pdf

Mcq on Java Programming Pdf (Download)

Students Also Search for:

First Year Basic Science MCQ (View Here)

For Free Mock Test (View Here)

Msbte News Social accounts

We provide regular updates about msbte on our social accounts For latest msbte diploma updates you can follow our page on Instagram @msbtenews and Facebook @msbtediplomaupdates. we solve your queries by message on our social accounts so do follow our social accounts if you have any queries related to diploma and engineering courses. 

Thankyou for Visiting Msbte News.

Msbte News is created to help msbte diploma students to find study resources, which are very much needed for diploma students while preparing for the exam. msbtenews.com provide polytechnic solved question papers which are provided by msbte.org.in. with these msbte polytechnic model answer paper students gets a rough idea about paper pattern and marks distribution.

LEAVE A REPLY

Please enter your comment!
Please enter your name here