Java
Java
Q13 What are objects? How are they created from a class? CO1,CO2
Q16 Describe the arithmetic operators and assignment operators in JAVA CO1,CO2
Q17 Enunciate Multiple Inheritance. How we can implement Multiple Inheritance in CO1
Java?
Q18 What is Platform independence? CO1
Q22 Justify the Byte Code? Discriminate states of Java Program execution? CO1,CO2
Q23 Define a Class, Method and Object? Write the syntax to define these in CO1,CO2
java.
Q24 What is difference between packages and interfaces explain with example? CO1,CO2
Q25 Explain different data types using in java? CO1
Q27 Write a program, which will read a string and rewrite it in the alphabetical CO2, CO3
order.
Q28 Enunciate Wrapper classes in detail. Explain with example. CO2
Q29 Elaborate Strings. Illustrate various String manipulation functions. CO2, CO3
Q31 List out at least 10 differences between C++ and JAVA. CO2, CO3
Q33 Define an Operator? Explain type of operators in Java with examples. CO2, CO3
Q34 Write a program for finding factorial of a number using user's input. CO3,CO4
Q14 Differentiate between public, private and protected access specifiers. CO2
Q16 Write a short note on Chain Printers. Explain with proper diagram. CO1,CO2
Q18 Write a short note on Inner class and Nested class. CO1
Q23 Define is a Data Type? Give the declaration of variable in Java. Write the CO1,CO2
Rules.
Q26 Elaborate the role of constructor. What are its special properties? CO3,CO4
Q27 What are objects? How are they created from a class? CO2, CO3
Q29 Differentiate between “access specifiers” & “non-access specifiers” in CO2, CO3
Java.
Q30 How concept of Multiple inheritance can accomplish in JAVA explain with CO2
example.
Level C. Difficult Questions (10 marks each)
Q31 Describe command line arguments? Write a Program to add two numbers CO2, CO3
using command line arguments.
Q32 What are operators? Explain bitwise and special operator with example?. CO2, CO3
Q33 Enunciate the term Inheritance? Explain various types of inheritance with CO2, CO3
example of each.
Q34 Explain following with the help of an individual Java program: CO3,CO4
• “new” keyword
• “static” keyword
• “this”
Q35 Writ a program to implement Multiple and Multi-level Inheritance. CO3,CO4
Q36 Elaborate completely the concept of classes and objects with programming CO4,CO5
example.
Q2 What are the types of exceptions in Java API? Explain each in detail. CO1,CO
4 2
Q2 Explain the use of try, catch, finally, throw and throws with example? CO1
5
Q2 What is multiple inheritance and how to perform it in Java? CO3,CO
6 done 4
Q2 Explain the fundamentals of Exception Handling and the exception types. CO2,
7 CO3
Q2 Give a detailed sketch of the differences between Single, Multilevel &Hierarchical CO2
8 Inheritance?
1. Single Inheritance:
Definition:
Single Inheritance involves a child class inheriting from only
one parent class.
Each class can have at most one direct superclass.
2. Hierarchical Inheritance:
Definition:
Hierarchical Inheritance involves multiple classes inheriting
from a single superclass.
It forms a tree-like structure with a common base class and
multiple derived classes.
3. Multilevel Inheritance:
Definition:
Multilevel Inheritance involves a chain of inheritance, where a
class serves as a superclass for another class, and that
subclass becomes the superclass for another class, forming a
chain.
Q2 Define two ways to create Threads. CO2,
9 done CO3
Q3 Describe how to set the priority to threads? What are the different ranges. CO2
0
Level C. Difficult Questions (10 marks each)
Q3 What is Multithreading? Illustrate the ways to create multiple threads in java. CO2,
1 CO3
Q3 Elaborate the concept of Threads. Explain thread life cycle in detail. CO2,
2 Threads are the smallest units of execution within a process. They enable concurrent CO3
execution of tasks, allowing different parts of a program to run in parallel. Each thread has
its own program counter, register set, and stack but shares the same memory space with
other threads in the same process. Threads are widely used in modern programming to
improve the performance and responsiveness of applications.
Q3 Write a java program to create two threads and execute simultaneously. CO2,
3 CO3
Q3 Write a Java program that creates three threads. First thread displays ― Good CO3,CO
4 Morning ǁ every one second, the second thread displays Hello ǁ every two seconds. 4
Q3 What is multithreaded programming? How we create thread and explain its life cycle? CO3,CO
5 4
Multithreaded programming is a programming paradigm where a process is divided into
two or more threads, and each thread can execute independently, concurrently, and
asynchronously. A thread is the smallest unit of execution within a process, and a process
can have multiple threads running concurrently.
Q4 Can we write only try block without catch and finally blocks? CO1,CO2
Q5 No. Once a try block throws an exception, remaining statements will not CO1
be executed. control comes directly to catch block.
Q6 What is unreachable catch block error? CO1,CO2
Q8 Does finally block get executed If either try or catch blocks are returning CO1
the control?
Q9 How can you identify the process? CO1
Q12 What are the different states of a thread, or what is thread lifecycle? CO1,CO2
Q15 What is Daemon Thread in Java and explain their properties? CO2
Q16 Give the abbreviation of AWT? CO1,CO2
Q17 Which is a component in AWT that can contain other components like CO1,CO2
buttons, text fields, labels etc.?
A. Window
B. Container
C. Panel
D. Frame
Q19 Which package provides many event classes and Listener interfaces for CO1
event handling?
A. java.awt
B. java.awt.Graphics
C. java.awt.event
D. None of the above
Q20 AWT is used for GUI programming in java? A. True B. False CO2
Q27 What Are The Differences Between Swing And Awt? CO2, CO3
Q28 What's Java Swing? What do you understand by Event and Event Handler CO2
In Swing?
Q29 Explain event handling with examples. CO2, CO3
Q30 What are the different states of a thread, or what is thread lifecycle? CO2
Q32 Enlist any four built in packages in java API with at least two class names CO2, CO3
from each package.
Q33 Differentiate between Applet and Application CO2, CO3
Q34 What Are Types of Applets? Discuss The Lifecycle Of An Applet. CO3,CO4
Q2 Explain the need for Computer Networks and its advantages. CO1
Q26 Explain Data Transmission. Define all Data Transmission Models CO3,CO4
Q35 Enunciate Modulation. Explain all the modulation techniques in detail CO3,CO4