Concepts of Core and Advanced Java
Important & Basic Viva Questions (Semester III)
Unit I - Java Basics
• What is Java? Explain its main features.
• Explain Java architecture (JVM, JRE, JDK).
• Difference between C++ and Java.
• What is bytecode?
• What are variables and data types in Java?
• Explain type casting and type conversion.
• What are operators in Java?
• Explain control statements (if, switch, loops).
• What is method in Java? Explain scope and return type.
• What is constructor? Difference between constructor and method.
• What are built-in Java classes?
• What is command to compile and run Java program?
Unit II - Arrays, Strings & I/O
• What is an array? Types of arrays in Java.
• Difference between one-dimensional and multi-dimensional arrays.
• What is inheritance? Types of inheritance in Java.
• What is String? Difference between String, StringBuffer and StringBuilder.
• Explain String immutability.
• What is Scanner class?
• Difference between byte stream and character stream.
• Explain file handling in Java.
• What is [Link] and [Link]?
• What are wrapper classes?
Unit III - OOP, Exception, Threads & JDBC
• What is method overriding?
• What is dynamic method dispatch?
• What is abstract class?
• Difference between abstract class and interface.
• What is package? Why is it used?
• Explain exception handling (try, catch, finally).
• What is multithreading?
• Difference between Thread class and Runnable interface.
• What is synchronization?
• What is JDBC? Steps to connect database using JDBC.
• What is networking in Java?
Unit IV - Applet, AWT & Event Handling
• What is Applet?
• Difference between Applet and Application.
• What is AWT?
• Explain event handling mechanism in Java.
• What are listener interfaces?
• What is adapter class?
• What are layout managers?
• Explain basic GUI components (Label, Button, TextField).
• How to draw graphics in Java?
• What is inner class?