🎓 CS5CRT14 – JAVA PROGRAMMING
USING LINUX
Revision Handout (2019–2024 Trends & Repeated Questions)
Applicable for: [Link] Computer Science / IT / BCA – Fifth Semester
Exam Structure: 3 Hours | Max Marks: 80
🔹 PART A – 2 MARK QUESTIONS (Short Definitions)
Frequency (2019–
Topic / Concept Key Points / Examples
2024)
Primitive / Numeric vs Non-numeric Literals 2019, 2021, 2024 e.g., int x = 5; vs "Hello"
Operators (= vs ==) 2019, 2021 Assignment vs Comparison
Refers to current object
this keyword 2021
instance
2019, 2020, 2021,
Class & Object Always appears
2022, 2023, 2024
2019, 2021, 2022,
Inheritance / Derived / Multilevel / Hierarchical Single or multilevel inheritance
2023, 2024
2021, 2022, 2023,
Final / Abstract Class / Methods Example program
2024
2019, 2021, 2023,
Constructor Overloading Multiple constructors
2024
2019, 2021, 2022,
Packages / Java API import packageName.*
2023, 2024
2019, 2021, 2022,
Event Handling / Delegation Model Listeners and ComponentEvent
2023, 2024
Swing Components (JButton, JCheckBox, 2019, 2021, 2022,
GUI design & example
JTextField, JRadioButton, JComboBox, JPanel) 2023, 2024
Frequency (2019–
Topic / Concept Key Points / Examples
2024)
2019, 2021, 2022,
Layout Manager / Null Layout Border, Flow, Grid, GridBag
2023, 2024
Applet Methods (init(), start(),
2019, 2021, 2023 Lifecycle understanding
destroy())
2019, 2021, 2022, Driver → Connection →
JDBC / Database Connectivity / ResultSet
2023, 2024 Statement → ResultSet
Graphics Methods (drawLine, drawRect, 2019, 2021, 2023, Simple GUI / Graphics
drawRoundRect, polygons) 2024 programs
Command Line Arguments 2019 args[] array in main
🔹 PART B – 5 MARK QUESTIONS (Descriptive / Short
Programs)
Topic Frequency Key Focus
2019, 2021, 2022,
Primitive Data Types / Literals Syntax, examples
2024
Looping / Branching / Jump 2019, 2021, 2022,
for, while, do-while, break, continue
Statements 2024
Constructors / Constructor 2019, 2021, 2022,
Syntax + examples
Overloading 2023, 2024
2019, 2021, 2022,
Arrays (1D / 2D) Declaration, initialization, traversal
2024
Strings / String Class / 2019, 2021, 2022,
Methods & differences
StringBuffer 2023, 2024
Final / Abstract Classes / 2019, 2021, 2022,
Example programs
Methods 2023, 2024
2019, 2021, 2023,
Threading / Multithreading Life cycle, priorities, Runnable & Thread
2024
Topic Frequency Key Focus
Event Handling / Delegation 2019, 2021, 2022,
ActionListener, ComponentEvent
Model 2023, 2024
2019, 2021, 2022, JButton, JLabel, JCheckBox, JRadioButton,
Swing Components (GUI)
2023, 2024 JComboBox, JPanel
Applet / Parameter Passing / 2019, 2021, 2022,
<PARAM> tag, getParameter()
Tag 2023, 2024
2019, 2021, 2022, Driver → Connection → Statement →
JDBC / Database Steps
2023, 2024 ResultSet
2019, 2021, 2023,
Graphics Methods / Drawing Draw polygons, shapes, roundrect, line
2024
🔹 PART C – 15 MARK QUESTIONS (Essay / Programs)
Question Topic Frequency (2019–2024) Study Notes
Features / Operators of 2019, 2021, 2022, 2023, Arithmetic, relational, logical, bitwise, assignment,
Java 2024 ternary, instanceof
Constructor
2019, 2021, 2023, 2024 Multiple constructor examples
Overloading
Method Overloading 2022 Example program
Multithreading 2019, 2021, 2023, 2024 Thread class, Runnable, priorities
Exception Handling 2019, 2021, 2023 try–catch–finally, user-defined exceptions
Arrays / Sorting
2019, 2021, 2022, 2024 1D / 2D arrays, numeric & string sorting programs
Program
2019, 2021, 2022, 2023, JLabel, JButton, JCheckBox, JRadioButton,
Swing GUI Components
2024 JComboBox, JPanel
Interfaces 2019, 2021, 2023, 2024 Define interface, implement example
2019, 2021, 2022, 2023, Border, Flow, Grid, GridBag
Layout Managers
2024
2️⃣ Part B (5 Marks) – Small Programs / Short Explanations
High probability topics (repeat most years):
Topic How it appears Example / Pattern
“Explain 1D/2D array with
Arrays (1D / 2D) Declaration, initialization, traversal
example”
Looping / Branching / “Explain looping statements with
for, while, do-while, break, continue
Jump Statements example”
Constructors / Constructor “Write a Java program to show
Examples / programs
Overloading constructor overloading”
“Difference between String and
Strings / StringBuffer Differences / methods
StringBuffer”
“Write a program to demonstrate
Threading / Multithreading Life cycle, priorities
thread priorities”
Event Handling / “Explain delegation event model
Short note / example
Delegation Model with example”
JButton, JLabel, JCheckBox, “Write note on JCheckBox /
Swing GUI Components
JRadioButton, JComboBox, JPanel JRadioButton”
Applet / Parameter Passing “How parameters can be passed to
<PARAM> tag usage
/ Tags applet using tags?”
“Write steps to connect to
JDBC / Database Steps Connection / Statement / ResultSet
database in Java”
Graphics / Drawing drawRect, drawRoundRect, polygons “Write an applet to draw polygons”
✅ Pattern: Usually programs, short notes, or examples. Often 1 program + 1 explanation
question.
3️⃣ Part C (15 Marks) – Long Programs / Essay
Most repeated topics (almost guaranteed to appear):
How it
Topic Example / Pattern
appears
Features / Operators of Java Essay “Illustrate the use of different operators in Java”
Constructor / Method “Write Java program to demonstrate constructor
Long program
Overloading overloading”
Essay /
Multithreading “Explain life cycle of a thread and write a program”
program
Essay / “Explain exception handling mechanism with
Exception Handling
program examples”
“Write a Java program to sort numbers and names in
Arrays / Sorting Programs Long program
arrays”
Essay /
Swing GUI Components “Explain JLabel and JButton with real-world example”
program
Essay /
Interfaces “Explain interfaces with example”
program
Layout Managers Essay “Discuss various layout managers with examples”
✅ Pattern: Usually 1–2 long programs + 1 theory/essay question. GUI / threading /
overloading / arrays almost always appear.
🔹 Top Repeated / Must-Know Topics (2019–2024)
1. Primitive Datatypes & Literals
2. Class & Object, Constructors
3. Inheritance / Derived / Multilevel / Hierarchical
4. Final / Abstract Classes / Methods
5. Constructor / Method Overloading
6. Arrays (1D / 2D) & Sorting
7. Strings / StringBuffer / Methods
8. Event Handling / Delegation Model
9. Swing Components (GUI) & Layout Managers
10. Applet Lifecycle & Parameter Passing
11. JDBC / Database Connectivity
12. Threading / Multithreading
13. Exception Handling
14. Interfaces
15. Graphics / Drawing Methods
️ 2025 Exam Focus (Predicted)
Part A (2 Marks): Polymorphism, Final Variables, Packages, Event Model, Layout
Managers, JDBC, Applet Tags, Operators
Part B (5 Marks): Constructors, Arrays, Strings, Event Handling, Applet Parameter
Passing, JDBC, Threading
Part C (15 Marks):
1. Operators / Features of Java
2. Constructor / Method Overloading
3. Swing Components
(JLabel/JButton/JCheckBox/JRadioButton/JComboBox/Panels)
4. Exception Handling / Multithreading
5. Arrays (1D / 2D) / Sorting Programs
Key Tip: Focus on OOP Concepts + GUI + Arrays + Threads + JDBC + Exception
Handling — these repeat every year.
PART A – Answer any 10 questions (2 Marks Each)
1. Define a class and an object.
2. Differentiate between numeric and non-numeric literals with examples.
3. What is constructor overloading in Java?
4. Explain the significance of inheritance.
5. What are final variables?
6. Define a Package and list any two Java API packages.
7. Write a short note on Delegation Event Model.
8. Define JTextField and JButton.
9. What is a Layout Manager? List any two types.
10. Explain the difference between init() and destroy() methods in an applet.
11. Define JDBC Driver and ResultSet.
12. Write a short note on drawLine() and drawRect() methods.
PART B – Answer any 6 questions (5 Marks Each)
13. Explain primitive data types in Java with examples.
14. Write a program to print Armstrong numbers between 100 and 1000.
15. How will you access class members using objects? Give an example.
16. Explain different types of built-in exceptions in Java.
17. Discuss various Swing components: JCheckBox, JRadioButton, JComboBox.
18. How parameters can be passed to an applet using <PARAM> tag?
19. Explain the steps to connect to a database using JDBC.
20. Write a short note on the life cycle of a thread.
21. How will you implement a two-dimensional array and display it?
PART C – Answer any 2 questions (15 Marks Each)
22. Illustrate the use of different operators in Java with examples.
23. Write a Java program to demonstrate constructor overloading.
24. Explain exception handling in Java with suitable examples.
25. Write a Java program to sort numbers in one array and names in another array.
26. Explain JLabel and JButton with a real-world example.