0% found this document useful (0 votes)
23 views6 pages

Question Bank

The document contains definitions and explanations of various Java concepts like encapsulation, garbage collection, constructors, methods, loops, operators, access specifiers, variable types, classes, inheritance, and more. Dates are provided for each concept indicating when it was explained. Questions range from one to seven marks and cover topics from basic concepts to more advanced features like inner classes, polymorphism, and garbage collection.

Uploaded by

MAHENDRA ZALA
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)
23 views6 pages

Question Bank

The document contains definitions and explanations of various Java concepts like encapsulation, garbage collection, constructors, methods, loops, operators, access specifiers, variable types, classes, inheritance, and more. Dates are provided for each concept indicating when it was explained. Questions range from one to seven marks and cover topics from basic concepts to more advanced features like inner classes, polymorphism, and garbage collection.

Uploaded by

MAHENDRA ZALA
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/ 6

1 Define Encapsulation 1

26/11/2019,

24/12/2021
2 Define 1
Garbage Collection 26/11/2019,
24/12/2021,

09/02/2021
3 7
Explain use of break and continue 26/11/2019
with proper example.
4 7
What is constructor? Explain various 26/11/2019
types of constructor in details.
5 7 17/09/2021
Explain importance of constructor.
Discuss the overloading of methods
and constructors with suitable java
program code.
6 7
What is method overloading? Explain 26/11/2019,
with example.
09/02/2021
7 7
How nested class and inner class are 26/11/2019
helpful in java? Explain with example.
8 7 17/09/2021
What do you understand by
anonymous Inner class? What is the
significance of this class in java
program?
9 1
Define 24/12/2021,
variable
shadowing 09/02/2021

Or

Shadowing Variable

10 7
Why Java is a platform independent 24/12/2021
language? How Java achieve this?
11 7
Explain conditional and bitwise 24/12/2021
operator with suitable example.
12 3
24/12/2021,
Explain different access specifier/
access modifiers used in java 04-11-2020,

17/09/2021
13 4
4
Explain the difference between the marks24/12/2
variable of primitive data types and 021,
reference data type with java code.
7 marks
17/09/2021
14 7
Write a java program to create a class 24/12/2021
“Matrix” that would contain integer
values having varied Numbers of
columns for each row. Print row-wise
sum of the integer values for each
row.
15 Define 1.
5 24/12/2021
Overloadin
g

16 Create a class “Student” that would contain 7


enrollment No, name, and gender and marks 24/12/2021
as instance variables and count as static
variable which stores the count of the
objects; constructors and display ().
Implement constructors to initialize instance
variables. Create objects of class “Student”
and displays all values of objects.

17 Write a Java application which takes several 7


command line arguments, which are 24/12/2021
supposed to be names of students and prints
output as given below: (Suppose we enter 3
names then output should be as follows).
Number of arguments = 3
First Student Name is = Arjun
Second Student Name is = Hitesh
Third Student Name is = Suresh
18 1
09/06/2022
Static variable cannot be used in non-
static methods.(T/F)

19 1
09/06/2022
Overloading of a constructor is not
allowed in Java. (T/F)

20 1
09/06/2022
________________is super class of all
classes in JAVA.

21 03
09/06/2022
What is the difference between “Pass
by value” and “Pass by reference”

in java?
22 04
09/06/2022
What is the difference between
“static” and “final”

23 07
Explain the use of instance variables, 09/06/2022
instance methods, constructor and
initializer block with appropriate
example.
24 What is inner class? How can outer class 07
reference be accessed inside inner class? 09/06/2022
Write the use of inner class using suitable
example.
25 Define 1
09/02/2021
Byte code

26 Define 1 09/02/2021,

Polymorphis 17/09/2021
m

27 1 09/02/2021

“this” keyword

28 7 09/02/2021
Explain any two of followings with the
help of example.
1. If….else if…..else
2. Switch case
3. While loop

29 7 09/02/2021(7
Explain static block and class initialize marks)
block with example.
30 1 17/09/2021
Static Initializer Block
31 7 09/02/2021
Why Java’s main () method is public,
static and also has one argument?
32 4 09/02/2021,
Explain final and static keyword with Static 3.5
example. 04-11-2020
33 1
04-11-2020
_______ is the base class of all classes
in java.

34 1 04-11-2020
______ method is called by the
garbage collector just before
deallocation of an instance

35 1 04-11-2020

The size of character data-type is 1


byte in java. [T/F] (With Reason)

36 1 04-11-2020

What is Identifier in java?

37 7 04-11-2020
Explain Java Buzzwords in
detail.
38 07 04-11-2020
Explain constructor and this keyword
in java by giving a suitable example.
39 3. 04-11-2020
Explain Garbage Collection in java by 5
giving a suitable example.
40 Bytecode 1
17/09/2021
41 7 17/09/2021
Explain the features of Java
Programming Language

You might also like