Java Practical Exercises
1. Briefly explain what recursion is and it’s main components
2. Write a program to calculation the factorial of the given number using
both iterative and recursion
3. You are building a library system. Each book has a title, author, and
ISBN.
a. Design a Book class with proper constructors and methods.
b. Explain how encapsulation keeps data secure in this class
4. What is JDBC?
5. Describe types of JDBC
6. Explain JDBC connectivity with a simple example.
7. What is a Java Servlet?
8. What is JAVA RMI?
9. Explain different types of inheritance, and which ones are supported in
Java?
10. Write a java program that test if the string is palindrom or not.
11. List and explain the four types of JDBC drivers.
12. Explain JDBC connectivity with a simple example.