0% found this document useful (0 votes)
6 views2 pages

Java Important Questions

The document outlines various Java programming tasks and concepts, including operators, control statements, class methods, and exception handling. It also covers topics like inheritance, arrays, and event handling, along with specific programming exercises such as checking leap years, palindrome numbers, and performing arithmetic operations. Additionally, it discusses JDBC architecture and the differences between various date classes in Java.

Uploaded by

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

Java Important Questions

The document outlines various Java programming tasks and concepts, including operators, control statements, class methods, and exception handling. It also covers topics like inheritance, arrays, and event handling, along with specific programming exercises such as checking leap years, palindrome numbers, and performing arithmetic operations. Additionally, it discusses JDBC architecture and the differences between various date classes in Java.

Uploaded by

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

1. Discuss the different types of operators with examples in Java.

2. Write a Java program to print numbers (0–9) in words using the


switch–case statement.
3. Write a java program to check given number is Leap year or not
using class and methods.
4. Write a java program to calculate addition of two numbers using
parametrized Constructor.
5. Differentiate between super variable and super method() with
examples.
6. Write short note on final keyword with classes and methods.
7. Describe legacy interfaces and Enumeration in Java with examples.
8. Discuss the AWT controls – Label, Button, CheckBox,
CheckBoxGroup with examples.
9. Explain the concept of multiple inheritance
10. Write a java program to check whether the given number is
palindrome or not
11. Explain the concept of Arrays and types of Arrays in Java with
suitable programs. (10 Marks)
12. Discuss the scope and lifetime of variables with example
programs.
13. Write a java program for addition of two numbers and check
given number is even or odd using overloading different data types.
14. Write a Java program to find the factorial of a number using
recursion.
15. Explain constructor overloading with syntax and example.
Write a Java program demonstrating constructor overloading.
16. Write a java program to calculate all arithmetic (+, -, *, /, %)
operations using multi-level inheritance with argument with return
type.
17. Write a Java program to handle Arithmetic Exception (Division
by zero) and ArrayIndexOutOfBounds Exception.
18. Write a short note on the built-in packages and user-defined
packages in Java.
19. Explain vector class and Stack class in Java, along with their
operations and examples.
20. Explain the difference between Date, Calendar, and Gregorian
calendar with examples.
21. Write a short note on ActionEvent, ItemEvent, KeyEvent,
MouseEvent, TextEvent, WindowEvent and ComponentEvent with
examples.
22. Explain JDBC architecture and driver types, and CRUD
operations (Create,Read, Update, Delete) on a database table using
JDBC
23. Write a java program to classify the uppercase, lowercase,
digit, special char
24. Write a java program to following pattern

You might also like