The document outlines a series of Java programming questions categorized into five units. Each unit covers fundamental concepts such as classes, objects, inheritance, exception handling, and threading, along with their respective syntax. The questions aim to assess understanding of Java's core features and functionalities.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
9 views
23ACS06 Java 2Mark Questions
The document outlines a series of Java programming questions categorized into five units. Each unit covers fundamental concepts such as classes, objects, inheritance, exception handling, and threading, along with their respective syntax. The questions aim to assess understanding of Java's core features and functionalities.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
23ACS06 - Java 2 Marks Questions – Unit Wise
Unit – I
1. Define Class with syntax
2. Define object with syntax 3. Token in Java 4. Data Types in Java 5. Type Casting 6. Static Variable 7. Final Variable 8. All types of Operators 9. Break, Continue statement 10. Simple programs using if condition and loop
Unit – II
1. Constructor with syntax
2. Private, public, and protected (Access control members) 3. Static method 4. Final method 5. Recursive method 6. This keyword with syntax 7. Nested classes 8. Method overloading 9. Define the method with syntax 10. Nesting of methods
Unit – III
1. Define Array with syntax
2. Dynamic array memory allocation 3. Define Inheritance with syntax 4. Define Single, and multiple Inheritance with syntax 5. Super keyword with syntax 6. Abstract class with syntax 7. Method Overriding with syntax 8. Define Interface with syntax 9. Default Method in Interface 10. Nested Interface with syntax
Unit -IV
1. Define Package with syntax
2. Wrapper class 3. Auto-boxing and Auto-unboxing 4. Math class and its inbuild math functions 5. Inbuild packages and their uses 6. Define Exception 7. Exceptions handling keywords (try, catch, throw, throws, and finally) 8. Difference between throw and throws 9. Checked and Unchecked Exception 10. Catch and multiple catch block 11. Various File Operation functions 12. File Stream details
Unit – V
1. Various string handling functions
2. Define Thread and its Life cycle 3. Thread states 4. Thread synchronization 5. Deadlock in Thread 6. Interthread communication 7. Thread – Suspend, Resume, Stop 8. Event Handling 9. Mouse events 10. Define JavaFX