What is command-line arguments? Write a program to accept two numbers and display their sum using command-line arguments.
Write a program to demonstrate exception handling of ArrayIndexOutOfBoundsException.
What is string immutability? Explain with an example.
Write a program to create multiple threads and execute them concurrently.
Explain the Serializable interface in java with an example.
What is multiple inheritance? Explain how multiple inheritance is implemented in Java?
What is JDBC? Explain its architecture.
Attempt any TWO questions
[2x10=20]Explain nested and inner classes in java with examples. Discuss the scenarios where inner classes are useful.
Create a class Person (with attributes name and age, and a method display()). Derive a class Employee from Person with additional attributes employeeId and salary. Use constructors and override the display() method to include all details.
Build a form with Passenger Name, Flight Number, Seat Preference (Window, Aisle, Middle), and a checkbox for "I agree to baggage rules." Clicking Confirm Booking should save data to "flight.txt" if rules are accepted otherwise display "Accept baggage rules first."