0% found this document useful (0 votes)
4 views4 pages

Java Question Bank

The document outlines a comprehensive curriculum for a Java programming course, divided into four units covering topics such as Java basics, classes and objects, interfaces and multithreading, and applets and file handling. Each unit includes a series of questions categorized by marks, ranging from 2 to 10, designed to assess knowledge and understanding of key concepts. The questions address fundamental aspects of Java, including features, data types, object-oriented programming, and exception handling.

Uploaded by

tteju77456
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Java Question Bank

The document outlines a comprehensive curriculum for a Java programming course, divided into four units covering topics such as Java basics, classes and objects, interfaces and multithreading, and applets and file handling. Each unit includes a series of questions categorized by marks, ranging from 2 to 10, designed to assess knowledge and understanding of key concepts. The questions address fundamental aspects of Java, including features, data types, object-oriented programming, and exception handling.

Uploaded by

tteju77456
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

📘 UNIT–I: Introduction to Java & Basics

🔹 2 Marks Questions
1.​ What is Java?
2.​ List any four features of Java.
3.​ What is JVM?
4.​ Define bytecode.
5.​ What is a variable?
6.​ What are data types in Java?
7.​ Define type casting.
8.​ What are operators?
9.​ What is an expression?
10.​What is the difference between == and .equals()?

🔹 5 Marks Questions
1.​ Explain the features of Java.
2.​ Describe the structure of a Java program.
3.​ Explain different data types in Java.
4.​ Discuss operators in Java with examples.
5.​ Explain type conversion and casting.
6.​ Write a short note on control statements (if, switch).
7.​ Explain loops in Java (for, while, do-while).

🔹 10 Marks Questions
1.​ Explain Java architecture and JVM in detail.
2.​ Discuss Java program execution process.
3.​ Explain operators with precedence and associativity.
4.​ Describe decision-making and looping statements with examples.
5.​ Write a Java program demonstrating all basic data types and operators.

📘 UNIT–II: Classes, Objects, Inheritance


& Arrays
🔹 2 Marks Questions
1.​ What is a class?
2.​ Define object.
3.​ What is a constructor?
4.​ What is method overloading?
5.​ Define inheritance.
6.​ What is an array?
7.​ What is a string in Java?
8.​ What is a wrapper class?
9.​ What is a static variable?
10.​What is method overriding?

🔹 5 Marks Questions
1.​ Explain class and object with example.
2.​ Describe constructors and their types.
3.​ Explain method overloading with example.
4.​ Discuss inheritance and its types.
5.​ Explain arrays (1D and 2D).
6.​ Write a note on strings and vectors.
7.​ Explain visibility control (public, private, protected).

🔹 10 Marks Questions
1.​ Explain OOP concepts: class, object, encapsulation with examples.
2.​ Discuss inheritance and method overriding with examples.
3.​ Explain arrays and string handling in Java.
4.​ Write a Java program demonstrating constructor overloading.
5.​ Explain wrapper classes and their importance.

📘 UNIT–III: Interfaces, Packages &


Multithreading
🔹 2 Marks Questions
1.​ What is an interface?
2.​ What is a package?
3.​ What is multithreading?
4.​ Define thread.
5.​ What is thread priority?
6.​ What is synchronization?
7.​ What is Runnable interface?
8.​ What is a thread life cycle?
9.​ What is exception?
10.​What is finally block?

🔹 5 Marks Questions
1.​ Explain interfaces and their usage.
2.​ Describe packages and naming conventions.
3.​ Explain thread creation methods.
4.​ Discuss thread life cycle.
5.​ Explain synchronization in threads.
6.​ Describe exception handling in Java.
7.​ Explain multiple catch blocks.

🔹 10 Marks Questions
1.​ Explain multithreading in Java with examples.
2.​ Discuss thread methods and life cycle in detail.
3.​ Explain exception handling mechanisms with examples.
4.​ Write a program using Runnable interface.
5.​ Explain packages and how to create and use them.

📘 UNIT–IV: Applets, Graphics & File


Handling
🔹 2 Marks Questions
1.​ What is an applet?
2.​ Difference between applet and application.
3.​ What is Graphics class?
4.​ What is a stream?
5.​ Define byte stream.
6.​ Define character stream.
7.​ What is file handling?
8.​ What is I/O exception?
9.​ What is buffering?
10.​What is HTML applet tag?

🔹 5 Marks Questions
1.​ Explain applet life cycle.
2.​ Describe how to create and run an applet.
3.​ Explain graphics methods (lines, circles, etc.).
4.​ Discuss streams in Java.
5.​ Explain file handling operations.
6.​ Describe byte stream and character stream classes.
7.​ Explain input/output exceptions.

🔹 10 Marks Questions
1.​ Explain applet programming with a neat diagram and example.
2.​ Discuss graphics programming in Java with examples.
3.​ Explain file handling and stream classes in detail.
4.​ Write a Java program to read and write files.
5.​ Explain I/O streams and exception handling in file operations.

You might also like