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

Question Bank Utu Java

The document is a comprehensive question bank for a Java course at UTU, covering various topics including Java fundamentals, objects and classes, inheritance and polymorphism, event and GUI programming, I/O programming, and multithreading. Each unit contains multiple questions designed to assess understanding of key concepts, features, and functionalities of Java. Additionally, it lists important long questions frequently repeated in exams.

Uploaded by

yoparov560
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)
2 views4 pages

Question Bank Utu Java

The document is a comprehensive question bank for a Java course at UTU, covering various topics including Java fundamentals, objects and classes, inheritance and polymorphism, event and GUI programming, I/O programming, and multithreading. Each unit contains multiple questions designed to assess understanding of key concepts, features, and functionalities of Java. Additionally, it lists important long questions frequently repeated in exams.

Uploaded by

yoparov560
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

QUESTION BANK FOR UTU(JAVA)

UNIT 1: Introduction to Java


1. Explain the features of Java. Why is Java called platform independent?

2. Discuss Java data types with suitable examples. Differentiate between primitive and non-
primitive data types.

3. Explain variables in Java. What are local, instance, and static variables?

4. Describe different types of operators in Java with examples.

5. Explain control structures in Java. Discuss if-else, switch, for, while, and do-while statements.

6. What are methods in Java? Explain method declaration, definition, and calling with examples.

7. What is method overloading? Explain its advantages with suitable examples.

8. Explain the Math class in Java. Discuss commonly used methods of the Math class.

9. What are arrays in Java? Explain one-dimensional and two-dimensional arrays with examples.

10. Differentiate between C++ and Java.

UNIT 2: Objects and Classes


1. Define class and object. Explain the process of creating objects in Java.

2. What are constructors? Explain default constructor and parameterized constructor with
examples.

3. Differentiate between constructors and methods in Java.

4. What is a finalizer? Explain the purpose of finalize() method.

5. Explain visibility modifiers in Java. Differentiate between public, private, protected, and default
access modifiers.

6. Discuss the String class in Java. Differentiate between String and StringBuffer.

7. Explain the Character class and its commonly used methods.

8. Discuss StringBuffer class and explain its advantages over String.

9. Explain File class in Java and its important methods.

10. What is the this reference? Explain its various uses with examples.
QUESTION BANK FOR UTU(JAVA)
UNIT 3: Inheritance and Polymorphism
1. What is inheritance? Explain different types of inheritance supported in Java.

2. Differentiate between superclass and subclass. Explain the use of extends keyword.

3. What is method overriding? Differentiate between method overloading and method overriding.

4. Define polymorphism. Explain compile-time and run-time polymorphism.

5. What is dynamic binding? Explain with suitable examples.

6. Explain generic programming in Java. Discuss the advantages of Generics.

7. What is object casting? Differentiate between upcasting and downcasting.

8. Explain the use of instanceof operator with examples.

9. What is an abstract class? Explain its features and applications.

10. What is an interface? Differentiate between abstract class and interface.

11. Explain packages in Java. Discuss advantages of package creation.

12. Explain the Java UTIL package and its commonly used classes.

UNIT 4: Event and GUI Programming


1. What is event handling in Java? Explain the event delegation model.

2. Discuss different types of events in Java.

3. Explain MouseEvent and its methods with examples.

4. Explain KeyEvent and its methods with examples.

5. What are GUI components? Explain the basics of GUI programming in Java.

6. Explain Frame and Panel classes with suitable examples.

7. Compare Flow Layout, Border Layout, and Grid Layout.

8. Explain the following GUI components:

• Button

• Check Box

• Radio Button

• Label

• Text Field

• Text Area

9. Explain Combo Box, List, Scroll Bar, and Slider controls.


QUESTION BANK FOR UTU(JAVA)
10. Discuss Windows, Menus, and Dialog Boxes in Java GUI programming.

11. What is an Applet? Explain the Applet life cycle with a neat diagram.

12. Explain Swing architecture and its advantages over AWT.

13. Differentiate between AWT and Swing.

UNIT 5: I/O Programming


1. Explain Java I/O streams. Differentiate between input streams and output streams.

2. Differentiate between text I/O and binary I/O.

3. Explain FileInputStream and FileOutputStream classes with examples.

4. Explain BufferedInputStream and BufferedOutputStream classes.

5. What is object I/O? Explain serialization and deserialization in Java.

6. Discuss ObjectInputStream and ObjectOutputStream classes.

7. What are Random Access Files? Explain their advantages and applications.

8. Explain the RandomAccessFile class and its important methods.

9. Compare character streams and byte streams in Java.

10. Explain the complete hierarchy of Java I/O classes.

UNIT 6: Multithreading, Exception Handling, Collections, JavaBeans


& Networking
1. Explain the thread life cycle in Java with a state transition diagram.

2. Discuss important methods of the Thread class.

3. Differentiate between extending Thread class and implementing Runnable interface.

4. What is thread synchronization? Explain synchronized methods and synchronized blocks.

5. What is exception handling? Explain try, catch, finally, throw, and throws.

6. Differentiate between checked and unchecked exceptions.

7. What is the Java Collections Framework? Explain its architecture.

8. Compare List, Set, and Map interfaces.

9. Explain ArrayList, LinkedList, HashSet, and HashMap with examples.

10. What are JavaBeans? Explain their features and advantages.

11. What is network programming in Java? Explain client-server architecture.


12. Explain Socket and ServerSocket classes with examples.
QUESTION BANK FOR UTU(JAVA)
Most Important Long Questions for UTU Exams (Frequently Repeated)

1. Features of Java and JVM architecture.

2. Method Overloading and Arrays.

3. Constructors and this keyword.

4. String vs StringBuffer.

5. Inheritance and Method Overriding.

6. Polymorphism and Dynamic Binding.

7. Abstract Class vs Interface.

8. Packages and UTIL Package.

9. Event Delegation Model.

10. Layout Managers (Flow, Border, Grid).

11. Applet Life Cycle.

12. Swing vs AWT.

13. Text I/O vs Binary I/O.

14. Serialization and Deserialization.

15. Random Access File.

16. Thread Life Cycle and Synchronization.

17. Exception Handling (try-catch-finally).

18. Collection Framework Architecture.

19. JavaBeans.

20. Socket Programming.

You might also like