Question Bank Java
Question Bank Java
Q No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Q No
1
2
5
6
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Q No
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Part A : Short Questions
Question
Define OOP?
Distinguish between procedural language and OOPs?
Explain briefly about different types of data types in java?
What is Variable? Describe scope and life time of variables?
List and describe different types of operators?
Define an array?
Define constructor?
Define Inheritance?
List types of inheritances in java?
What are Member access rules in java?
Explain the Uses of “Super” keyword
What is Object class?
What is abstract class?
Define polymorphism?
Define method overriding?
Compare and Contrast differences between interfaces vs Abstract classes.
Define interface?
What is package?
Define Exception?
Distinguish between exception and error?
Define checked exceptions?
Define unchecked exceptions?
Distinguish between throw and throws?
Distinguish between process and thread?
What are thread states? Explain.
What are the different ways to create a thread?
What are different thread priorities
How many ways can thread be Created?
Explain about the yield() and join() method
Define ArrayList
What is the key difference between ArrayList and Vector in Java?
What is the purpose of the Map interface in Java
Describe the role of the Collection interface in the Java Collections Framework.
Define Scanner class.
Define Calendar class.
Explain the difference between creating a String object using double quotes and using the new keyword in Java.
Describe the immutability of strings in Java
Describe the concept of garbage collection
What is cloning in Java, and why is it used?
Discuss the importance of the equals() and compareTo() methods in comparing strings in Java.
Define Stream?
Define byte stream?
Define character stream?
Define text input/output file?
What is an applet in Java, and how does it differ from a standalone application?
Explain the lifecycle methods of an applet in Java, including init(), start(), stop(), and destroy().
What does AWT stand for in Java, and what is its purpose?
How does AWT differ from Swing in Java?
What is an event in AWT, and how are events handled in AWT applications?
Describe the layout managers available in AWT for arranging components within containers.
What is Remote Method Invocation (RMI) in Java
Explain the concept of stubs and skeletons in RMI architecture.
What is socket programming
Explain the client-server model and its role in network communication.
Question
Write the differences between a method and a constructor. Discuss method overloading and constructor overloading with an example.
What is Array? Explain different types of arrays and also discuss their advantages and disadvantages. Write a program to perform matrix
multiplication.
What is a Looping statement? Explain different types of loops present in Java. Write a Java Program to check a number is
palindrome or not.
What is a conditional statement? Discuss various types with examples.
Explain the different types of constructors in Java with examples. Write a program to store the name and roll number of five different studen
and print the same.
What is the use of break and continue statements in Java? Explain with an example. Write a program to print all the even number in between
1 to 100 expect 50.
What are the different types of operators present in java? Explain with example.
What is an Array? Explain different types of arrays. Write a program to search an element in an array.
Explain each of the primitive datatypes present in java? Discuss in detail. State the difference between static variable and instance variable.
Is multiple Inheritance supported by java or not? Justify your answer with an example. How interface is different from an abstract
class.
What is Inheritance? Discuss different types of Inheritance with an example.
List different types of inheritances in java? Explain each of them in detail with an example programs.
What is a package? Explain different types of Packages. Write a program to create a package named "cutm. math" containing a method call
"fact" that calculates the factorial of a number. Use that package in another class to pass a number to determine the factorial.
What is abstraction in Java, and how to achieve abstraction in Java? Compare various differences between interfaces and abstract classes.
What is Thread, and explain how to define a Thread in Java? Write a Java program that creates two threads. First thread displays
― Good Morningǁ every one second, the second thread displays Helloǁ every two seconds
Discuss the concept of Java I/O and file handling, including the different streams, byte streams versus character streams, and the us
of serialization for object persistence.
What is an Applet? Explain Applet life cycle.
Discuss about the File Input Stream and File Output Stream in java with examples.
Explain different layout managers in AWT. Write a Java program to implement GUI-based calculator with basic operations.
What is AWT? Discuss about AWT controls. Explain different types of Event.
What is client server communication? Explain Remote Method Invocation with example.
Question
JVM Architecture .
Class and Object
WORA
Edition of Java
Bitwise Operator
Instance Variable vs Static Variable
Ternary Operator
Method in Java
Constructor
Method Overloading
Constructor Overloading
Inheritance
Package
Access Protection
Interface
Abstract Class
JDK Vs JRE vs JVM
try..catch
final vs Finally
Customized Exception
Default Exeption Handler
ArryList
Vector
Set
Map
Thread Scheduler
Join() vs Yield()
Thread Synchronisation
String class
Wrapper Class
Auto Boxing vs Unboxing
Garbage Collection
Date and Time
Cloning
Calander
Object Class
Byte and Character Stream
Applet Architecture
Applet Life Cycle
AWT Container
AWT Component
AWT Layout Manager
AWT Event
Client Server communication
RMI
JVM Tuning
TCP
UDP
Shocket Programming
IP Address vs MAC Address
Difficulty Level analyse
L : Low
Module No CO Mapping M : Moderate Marks
H : High
1 CO1 M Remember 2
1 CO2 M Analyse 2
1 CO4 M Understand 2
1 CO2 H Remember 2
1 CO2 L Remember 2
1 CO1 L Remember 2
1 CO1 L Remember 2
1 CO1 L Understand 2
1 CO2 M Remember 2
2 CO2 H Remember 2
2 CO3 M Understand 2
2 CO1 L Understand 2
2 CO1 L Remember 2
2 CO2 M Remember 2
2 CO4 M Remember 2
2 CO5 H Understand 2
2 CO2 M Remember 2
2 CO3 L Remember 2
2 CO4 L Remember 2
2 CO5 M Analyse 2
2 CO5 L Remember 2
2 CO5 L Remember 2
2 CO5 H Analyse 2
3 CO5 M Analyse 2
3 CO2,CO3 H Remember 2
3 CO3,CO4 H Remember 2
3 CO2 M Remember 2
3 CO3 H Understand 2
3 CO5 H Understand 2
3 CO2,CO3 L Understand 2
3 CO4 M Analyse 2
3 CO4 M Understand 2
3 CO2,CO4 H Analyse 2
4 CO2 M Remember 2
4 CO3 H Remember 2
4 CO4 M Understand 2
4 CO2,CO4 H Understand 2
4 CO2 L Remember 2
4 CO1,CO2 M Remember 2
4 CO4.CO5 H Analyse 2
5 CO1 L Remember 2
5 CO1 L Remember 2
5 CO1 L Remember 2
5 CO1,CO2 M Remember 2
5 CO1,CO4 M Analyse 2
5 CO4,CO5 H Analyse 2
6 CO1 L Remember 2
6 CO3 M Analyse 2
6 CO3 H Understand 2
6 CO2,CO3 H Remember 2
7 CO1 H Remember 2
7 CO1,CO2 H Understand 2
7 CO1 M Remember 2
7 CO2,CO3 M Remember 2
Difficulty Level
L : Low
Module No CO Mapping Cognitive Level Marks
M : Moderate
H : High
1 CO1 M Creating 12
1 CO1,CO2 M Understanding 12
Creating
1 CO2,CO3 H 12
Remembering
1 CO2,CO4 M 12
Apply
1 CO3,CO5 L 12
1 CO1,CO4,CO5 L Remembering 12
Understanding
1 CO2,CO3 M 12
Remembering
1 CO2,CO3,CO5 M 12
1 CO2,CO3 M Remembering 12
1 CO1,CO2,CO5 H Apply 12
Understanding
1 CO2,CO3 L 12
Evaluate
1 CO5 M 12
1 CO1,CO2 L Remembering 12
1 CO2,CO3,CO4 H Remembering 12
Remembering
2 CO1,CO2 M 12
Understanding
2 CO4 H 12
2 CO4,CO5 H Remembering 12
2 CO4,CO5 H Remembering 12
2 CO2,CO3 M Creating 12
2 CO1,CO4 M Remembering 12
2 CO2,CO3,CO4 L Remembering 12
2 CO1,CO2,CO3 L Remembering 12
2 CO1,CO5 M Understanding 12
2 CO5 M Understanding 12
2 CO4 M Understanding 12
CO4,CO5 H 12
2 CO2,CO4 H Remembering 12
2 CO2 M Understanding 12
Remembering
2 CO5 H 12
3 CO4 L Analyse 12
Evaluate
CO4,CO5 M 12
3 CO2,CO3 M Remembering 12
3 CO1,CO3,CO5 L Remembering 12
3 Analyzing
CO2,CO4,CO5 H 12
3 Evaluate
CO5 H 12
3 CO2,CO4,CO5 H Analyzing 12
4 CO2,CO4 L Analyse 12
4 CO1,CO3,CO4 L Apply 12
4 CO3,CO4,CO5 M Apply 12
4 CO5 M Evaluate 12
4 CO4 L Analyse 12
4 Evaluate
CO4,CO5 M 12
4 Apply
CO3 M 12
4 Apply
CO2,CO3 M 12
5 Analyse
CO4 H 12
5 CO1,CO2 M Understanding 12
5 CO4 M Analyse 12
6 Evaluate
CO5 H 12
6 CO2,CO3 M Understanding 12
7 CO1,CO4 M Analyse 12
Difficulty Level
L : Low
Module No CO Mapping Cognitive Level Marks
M : Moderate
H : High
1 CO4 H Analyse 5
1 CO2 M Understanding 5
1 CO2 L Understanding 5
1 CO1 L Remember 5
1 CO5 M Evaluate 5
1 CO4 H Analyse 5
1 CO3 M Apply 5
1 CO5 M Evaluate 5
1 CO3 M Apply 5
1 CO4 M Analyse 5
1 CO4 M Analyse 5
1 CO1 L Remember 5
2 CO2 L Understanding 5
2 CO3 H Apply 5
2 CO1 M Remember 5
2 CO1 H Remember 5
2 CO4 H Analyse 5
2 CO5 M Evaluate 5
2 CO5 M Evaluate 5
2 CO4 H Analyse 5
2 CO4 H Analyse 5
3 CO3 M Apply 5
3 CO3 M Apply 5
3 CO3 M Apply 5
3 CO3 M Apply 5
3 CO2 H Understanding 5
3 CO5 H Evaluate 5
3 CO5 H Evaluate 5
4 CO2 L Understanding 5
4 CO3 L Apply 5
4 CO4 H Analyse 5
4 CO1 M Remember 5
4 CO3 M Apply 5
4 CO3 M Apply 5
4 CO3 M Apply 5
4 CO2 L Understanding 5
5 CO1 M Remember 5
5 CO1 L Remember 5
5 CO2 L Understanding 5
6 CO1 L Remember 5
6 CO1 L Remember 5
6 CO1 M Remember 5
6 CO5 H Evaluate 5
7 CO1 M Remember 5
7 CO5 H Evaluate 5
7 CO2 H Understanding 5
7 CO1 L Remember 5
7 CO1 L Remember 5
7 CO3 M Apply 5
7 CO4 M Analyse 5