You are on page 1of 15

lOMoARcPSD|35620100

Java Ques - java important questions

Computer Science (Maharshi Dayanand University)

Studocu is not sponsored or endorsed by any college or university


Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

01. SHORT- ANSWER


TYPE
(Note: RE refers to Reappear QUESTIONS
Q1.1 What is JVM?
Examination)
MDU BCA 2018, RE 2017, 2017,
RE 2015, 2015
Q1.2 What are the benefits of OOPs?
MDU BCA RE 20015
01.3 What are the basic concepts used in
OOPS?
Q1.4 What is encapsulation?
MDU BCA 2015
Q1.5 Discuss the importance of
Encapsulation in Java.
MDU BCA RE 2016
Q1.6 What are the characteristics of object oriented
programming(O0P)?
Q1.7 What is the aim of OOP?
Q1.8 What are the various applications of object
oriented programming(0OP)?
Q1.9 What is abstraction? MDU BCA RE 2015
Q1.10 What do you mean by Procedural
Programming?
Q1.11 What the characteristics of procedure
are

oriented programming/ language?


Q1.12 List some of the most popular object-oriented
languages.
Q1.13 What is class? MDCA 2017
Q1.14 What is the difference between a class and an
object?
Q1.15 What is object reference?
Q1.16 How is Java different from C++?
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

Questions

Selected
List of

overriding?

Q1.17
What is
method
MDU BCA201 RE2015
OR
with example,
method
overriding
Describe MDUBCA RE 2016
difference between object oriented
Q1.18 What
is the and object based
programming
language
programming language?
its benefits?
Bytecode and what
are

Q1.19 What is
identifier? MDU BCA RE 2017
Q1.20 What is
are created in Java?
Q1.21 On which memory, arrays
throw and
Q1.22 What is the difference between
throws keyword in Java?
MDU BCA 2017
Q1.23 What is this' keyword?
purpose of the Java
Virtual
Q1.24 Briefly describe the
Machine.

Q1.25 What is static method?


MDU BCA 2018, RE 2017
OR
Discuss static methods in Java briefly.
MDU BCA RE2016
Q1.26 Why can't we override static method?
Q1.27 What is the difference between static (or class)
method and instance method.
Q1.28 Discuss importance of Abstraction.
MDU BCA2016
Q1.29 Why is
multiple inheritance pported in
Java? not supported i"

Q1.30 What are the various


uses of final keyword
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

List of Selected Questions

mean?
Q1.31 What does the term "initialization"
Q1.32 Can we have an empty catch block?
Q1.33 What is finally keyword?
MDU BCA RE 2018, 2018, 2017
Q1.34 What is final keyword?
MDU BCA RE 2018, 2018
Q1.35 What is finalize( ) method?
MDU BCA RE 2018, 2017
Q1.36 What is primitive data? MDU BCA RE 2018
OR
Explain primitive data types. MDU BCA 2015
Q1.37 What is a thread in Java?
its write once and run
Q1.38 What gives Java
anywhere' nature?
does thread synchronization occurs inside
Q1.39 How
a monitor?

Q1.40 Differentiate between Thread and Process in


Java?
Q1.41 Explain package naming with an example.
MDU BCA 2016
Q1.42 Is it legal class to be
to declare a a final
abstract? Explain why or why not.
Q1.43 How does the Object Oriented approach
improve software development?
Q1.44 What is Inheritance?
Q1.45 What is increment and decrement operator?
MDU BCA RE 2017
Q1.46 What are the methods for inter-thread
communication and what is the class in which
these methods are defined?
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

Questions
List of Selected 8

01.47 What are the four types of methods in Java Java that
s

can not be overridden?

C1.48 What is package?


MDU BCA 2015
the content of package?
Q1.49 How to access

MDU BCA 2015


Q1.50 What is the
difference String and
between String
StringBuffer?

Q1.51 Which is more


preferred
Synchronized
method or Synchronized block?

Q1.52 Discuss Java thread model briefly.


MDU BCA 2016
Q1.53 What is theuse of finalize() method in Java?
Q1.54 What is stream and stream class?
MDU BCA 2015
What is stream class? MDU BCA RE 2015
Q1.55 What are the usages of Java packages?
Q1.56 List two major applications of packages.
MDU BCA RE2016
Q1.57 Write the use and advantages of constructors In
Java. MDU BCA RE 2016
Q1.58 What is the difference between notify() au d
notifyAll)?
Q1.59 What is the difference between the break
continue statement in
Java?
Q1.60 What is equals() method?
MDU BCA RE2012
1.61 What is the
difference between overloading an
overriding? MDU BCA 2015

Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)


lOMoARcPSD|35620100

List of Selected Questions 9

Q1.62 What is the difference between Method


Overloading and Method Overriding.
Q1.63 What is compare() method?
MDU BCA RE 2017
Q1.64 List two major applications of Abstract classes.
MDU BCA2016
Q1.65 Why a proper exception handling mechanism is
required?
Q1.66 What is modifier? MDU BCA RE 2015, 2015
Q1.67 List some of the most common types of
exception that might occur in java.
MDU BCA RE 2015
Q1.68 What is Extends keyword? MDU RE BCA 2018
OR
What is Extends? MDU BCA 2018
OR
Explain use of extends in Java. MDUBCA2016
Q1.69 What is the difference between calling wait( )
and sleep) method in Java multi-threading?
Q1.70 What is Runnable interface?
MDU BCA RE 2017
Q1.71 What is the difference between abstraction and
encapsulation?
Q1.72 What is JAA?
Q1.73 What is stringBuffer class in Java?
MDU BCA RE 2016
Q1.74 What is garbage collection? MDU BCA2017
OR
What is garbage collection in Java.
MDU BCA 2016
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

Selected
Questions 10
List of

UNIT-I

Programming Langua.
Explain Paradigms of e
02.(a) OOPs with example.
and benefits of
MDU BCA RE 2018
OR
do you m e a n by Paradigms of
What
Programming Language? MDU BCA 2018
OR
What do you mean by Paradigms of
How it effect to a
Programming language?
programming language?, Explain benefits of
00Ps with example. MDU BCA 2017
Q2.(b) What are applications of OOPs?
MDU BCA 2018
OR
Explain applications of OOPs with suitable
example. MDU BCA RE 2017
OR
What is object oriented programming? Also
write the various applications of OOPs.
Q2.(c) Differentiate between object-oriented and
and
procedure oriented approaches in Java.
MDU BCA RE 2016, 2016, RE 2015,2012
Q3.(a) Explain evolution of O0 with
example. methodology witn
MDU BCA RE 2018
OR
What do you
mean by evolution of O0

Methodology? What are basic features of OOP


approach? What are benefits of OOPs? Explain
with example.
MDUBCA RE2012
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

List of Selected Questions


11
Q3.(b) What is Object-Oriented Methodology? What
are its features? Also discuss merits and
demerits of Object Oriented Methodology.
Q3.(c) Discuss the various programming language
paradigms with their computational models.
Give suitable diagrammatic representation of
the same.
Q4.(a) Write and explain the basic concepts of 0OPs.
Also write the features characteristics of
Object-Oriented Programming. How Object
Oriented Programnming is beneficial over other
programming techniques? Explain.
Q4.(b) What are the important common features
supported by object-oriented languages?
Illustrate.
Q4.(c) Define Abstraction. How is it useful and used in
Java? MDUBCA RE 2016
Q5.(a) Define Polymorphism. How is it useful and
used in Java? Discuss with examples.
MDU BCA2016
Q5.(b) Discuss uses of encapsulation in Java with an
example. MDU BCA 2016
Q5.(c) Name and explain various Object-Oriented
Languages.
Q6. Describe the following as applied in OOP with
example:
(a) Polymorphism
MDU BCA RE 2018, 2018,2017, RE 2016,2015
(b) Method overriding
MDUBCA RE 2018,2017,RE 2015
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

(c) Encapsulation
MDU BCA RE 2018,2018,RE2017, RE22015
oriented language
Procedure
(d) MDU BCA 2017
(e) Class MDUBCA RE 2018, 2018,2015
( Object MDU BCA RE 2018,2018 2015
(g) Abstraction MDU BCA RE 201 2015
(h) Inheritance MDU BCA 2015
UNIT I1

07.(a) What are features of JAVA? Explain each with


suitable example. MDU BCA RE 2018
OR
What are basic features of JAVA? Ilustrate
with an example. MDU BCA RE 2017
OR
What are characteristics of JAVA? Explain
each with example. MDU BCA 2017
OR
What is the history and features of JAVA?
MDU BCA RE 2015,2015
OR
Explain the various characteristics of Java
programming language. MDU BCA 2013, 2014
Q7.(b) Deseribe Java Virtual Machine and its
uses.
MDU BCA RE 2016
Q7.(c) What are various
types of data usingg in JAVA?
Explain using example. MDUBCA2018
OR
Explain various data
types available in
Java
MDU BCA RE 2012
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

OR
What are various types of data types supported
by Java? MDU BCA 2010
Q8.(a) What are various types of operators using ir.
JAVA? Illustrate with an example.
MDUBCA 2018
OR
Explain Java operators with examples.
MDU BCA RE 2017, RE 2015
OR
Explain various expressions and operators
available in Java. MDU BCA 2015
Q8.(b) What is array? How to declare and initializze
array? Explain using example.
MDU BCA RE 20117
OR
How the arrays are implemented in Java?
Illustrate the declaration and usage of arrays
through suitable example. MDU BCA 2010
Q8.(c) Discuss the syntax of declaring Array in Java
and its uses. Also explain string with suitable
example.
Q9.(a) What do you mean by class and objects in
Java? Explain the concept of declaring object
of a class with the help of a
program example.
Q9.(b) What do you mean by a method in Java? WVhat
is method overloading? Illustrate through
suitable example. MDU BCA 2010
Q9.(c) Define method overriding. How is it useful and
used in Java? Explain with an example.
MDU BCA 2016
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

Questions
Selected
List of

constructor
with example.
Q9.(d) Explain MDU BCA 2017, RE2015
OR
types of constructors wi
with
Describe the three
examples in Java. MDUBCA 2016
Garbage
Collection. MDU BCA 201
Q10.(a) Explain
use of "this
keyword in Java with
the
Q10.(b) Explain
the help of an example.
method with example.
Q10.(c) Explain static
MDU BCA2017
OR
method in Java?
What do you mean by static
For what purpose static methods are used?
Illustrate through suitable example.

Q10.(d) Explain overloading of constructor in Java


with examples and Java code.
MDU BCA RE 2016, 2016
OR
What is overloading constructor? Explain
through suitable example.
Q10.(e) Explain the concept of the finalize() method.
Q11.(a) Explain abstract class with example.
MDU BCARE 2017, RE 2015
Q11.(6) What are types of inheritance? Explain ch
with example.
MDU BCA RE 2018
OR
What is inheritance? What are their type
Explain with example. MDU BCA 2018
OR
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

LISt OTSelectea Questions

What is meant by Inheritance? Which kinds of


inheritances are supported by Java and how?
Illustrate through suitable examples.
MDU BCA 2010
Q11.(c) What is the use of final keyword in Java?

UNIT I
Q12.(a) What is exception? List some of the most
common types of exception that might occur in
Java. Explain how to deal with exception.
MDU BCA 2015
OR
Explain types of exceptions in Java with
examples. MDU BCA RE 2016, 2016
Q12.(b) What is exceptional handling? How try-catch
work in Java? Explain with example.
MDU BCA 2017
OR
Explain exceptional handling using try-catch
in Java with suitable example.MDU BCA 2016
Q13.(a) What is Interface? How it extend in Java?
Explain with example. MDU BCA 2017
OR
Explain Interface. MDU BCA RE2015
OR
What do you understand by Interfaces in
Java? What are the members of an Interface?
llustrate the implementation of Interfaces in
Java. MDUBCA2010
Q13.(b) Explain uses &
advantages of interface in Java
with suitable examples. MDU BCA RE 2016
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

16
Questions
Selected
List of

Package? Explain with


with
What are types of MDU BCA RE 2018
Q14.(a)
example.
OR
What do you
mean by package? What are

Explain with example.


types of package? MDU BCA 2017
mean by CLASSPATH? How
Q14.(b) What do you
can it be set? Explain.
naming conventions?
Q14.(c) What are package
Explain.
How to implement in
Q15.(a) What is abstract class?
Java? Explain. MDU BCA RE 2018
OR
Explain abstract classes. MDU BCA 2018
OR
What is abstract class? What are their
importance? Explain with example.
MDU BCA 2017
OR
What is abstract class? Illustrate through
suitable example. MDU BCA 2015
Q15.(b) Explain catching multiple exceptions with
examples in Java. MDU BCA 2016
Q16.(a) How can we use extends and implements
together? Explain the syntax as wel.
Q16.(b) Differentiate between an interface and an
abstract class.

UNIT-IY
Q17.(a) What is multithreading?
a thread. Explain life cycle or
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

List of Selected Questions


17
Q17.(b) Write a short note on the Main Thread.
Q17.(c) Explain Java Thread Model". What are the
various states that a thread can be in? Also
explain the thread priorities and
synchronization of threads.
Q18.(a) Explain inter-thread communication.
MDU BCA RE 2018,2017, RE 2015,2015
OR
What is inter thread communication?
MDU BCA 2018
OR
What do you Inter-Thread mean by
Communication? What are the various ways
and methods used in Java for implementing
inter-thread communication?
Q18.(b) Explain Transient and Volatile modifiers.
MDU BCA 2018
OR
Explain the transient and volatile modifiers in
Java with suitable examples. MDU BCA 2016
Q19.(a) Explain streams with example.
MDU BCA 2017
OR
What is stream? How is the concept of stream
used in JAVA?
MDUBCA RE2015
Q19.(b) Whatdo you mean by the Native Methods?
How is the integration with native methods
done in Java? Why are nativemethods
needed? Also give the disadvantages of native
methods.Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)
lOMoARcPSD|35620100

Q u e s t i o n s

Selected

List of and rings


stri.
c h a r a c t e r s
and
mean by 1aarra
ch acctt e r i s t i of
What do you the
the
write
Q20.(a) Also
Java?
in
strings. class
and methods.

Explain
StringBuffer
MDU BCA 2018
Q20.(b)
OR
example.
class with
Explain
StringBuffer
MDU BCA 2017
OR methods with
class and
Explain
StringBuffer
MDU BCA 2016
examples in Java.
OR Class?
StringBuffer
What do you m e a n by Buffer?
c h a r a c t e r i s t i c s of String
What are the
methods of StringBuffer
Explain the various
examples.
class with tile help of
from the String
How does String class differ
Q20.(c) example.
Buffer class? Explain with
MDU BCA RE 2015
in Java?
Q21.(a) What is input and output MDU BCA 2015

Q21.b) Explain reading and writing on files.


MDU BCA RE 2018, 2017, RE 2016, 2015
Q21.(c) Explain Data Conversion using valueOf()
method. MDU BCA 2018
Q21.(d) Explain String class and String operations in operations

Java with example. MDU RE 2017, RE 2016


OR
Explain String operations.
MDUBCA RE261
Downloaded by Chanchal Dhruw (dhruwchanchal31@gmail.com)

You might also like