0% found this document useful (0 votes)
36 views4 pages

Java Question Bank

The document contains a comprehensive list of Java programming concepts and questions, covering topics such as access modifiers, static keyword, classes and objects, constructors, encapsulation, inheritance, polymorphism, exception handling, file operations, and object-oriented programming principles. Each point includes a request for explanations, examples, or program implementations, indicating a focus on both theoretical understanding and practical application. This serves as a guide for learners to explore and demonstrate their knowledge of Java programming.

Uploaded by

killerxkd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views4 pages

Java Question Bank

The document contains a comprehensive list of Java programming concepts and questions, covering topics such as access modifiers, static keyword, classes and objects, constructors, encapsulation, inheritance, polymorphism, exception handling, file operations, and object-oriented programming principles. Each point includes a request for explanations, examples, or program implementations, indicating a focus on both theoretical understanding and practical application. This serves as a guide for learners to explore and demonstrate their knowledge of Java programming.

Uploaded by

killerxkd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1 :: Explain various types of access modifiers.

2 :: Explain static keyword with example.


3 :: Explain class and object with respect to java.
4 :: Explain copy constructor with appropriate java program.
5 :: Define constructor. Explain constructor overloading with an
example.
6 :: How to access object via reference variable? Explain with example.
7 :: What is the meaning of immutable object? List all and explain one
immutable class in java.
8 :: What is a Package? What are the benefits of using packages? Write
down the steps in creating a package and using it in a java program with
an example.
9 :: Explain the difference between the StringBuffer and StringBuilder
class.
10 :: Explain the difference between Mutable and Immutable Objects.
11 :: Explain the Array of Objects with Example.
12 :: Explain following Java keywords using appropriate examples: i)
static, ii) final, iii) super
13 :: Explain inheritance with its types and give suitable example.
14 :: Differentiate overloading and overriding with example.
15 :: What is encapsulation? Explain it.
16 :: Differentiate between Abstraction and Encapsulation
17 :: Explain method abstraction with example.
18 :: Explain Primitive data type and wrapper class data types.
19 :: Explain about different types of string methods.
20 :: What is polymorphism? Explain method overriding with
appropriate example.
21 :: What is polymorphism? Explain operator overloading with
appropriate example.
22 :: Explain about Final class, Fields, Methods.
23 :: Write a java program to implement the multiple inheritance
concepts for calculating area of circle and square.
24 :: Explain various types of exceptions in detail.
25Write a program to demonstrate divide by zero exception.
26 :: Develop a program which stores name of cities in Gujrat in array
of String. The array specified capacity to store 5 cities. The user will be
able to print name of cities based on array index e.g. (0 will print
Ahemdabad and so on). If the specified index is out of bounds, program
will display the message Out of Bounds. Apply use of exception
handling.
27 Explain abstract class with example.
28:: Explain throw, throws and finally statements in JAVA exception
handling.
29 :: Difference between Checked and Unchecked Exceptions.
30 :: Explain usage of class FileInputStream and FileOutputStream by
giving an example.
31 :: Write a JAVA program to read student.txt file and display the
content.
32 :: Write a program in Java to perform read and write operations on a
Text file.
33 ::Differentiate between Abstract class and Interfaces.
34 ::What is cloneable interface? Write appropriate program to
illustrate it. 35 What is an interface? Explain with example.
35 :: Explain the features of Object Oriented Programing.
36 :: Compare Object-Oriented Programming with Procedure Oriented
programming.
37 :: What is JVM? Is it platform independent? Justify your answer.
38 :: What is type casting? Explain explicit and implicit type casting.
39 :: Explain ternary operator with example.
40 ::WAP to print the following pattern.
1
22
333
4444
41 :: Write a java program using switch case that prints colors name as
follows. Case 1: RED, Case 2: GREEN, Case 3: BLUE and the default is
WHITE.
42 :: Differentiate while and do while loop.
43 :: Explain abs, ceil and rint mathematical functions.
44 :: What is access specifiers in java? Explain.
45 :: Write a single program which demonstrates the usage of following
keywords:
46 :: Write a Java program to concat two user defined string.
47 :: Write Short note on multi-dimensional array.
48 :: Write a Java program to take 10 values from used from console
and display
49 :: Explain method overloading with example.
50 :: How to access object via reference variable? Explain with example.

You might also like