0% found this document useful (0 votes)
3 views1 page

Java Practical Exercises

The document outlines practical exercises for Java, covering topics such as recursion, factorial calculation, class design for a library system, JDBC, Java Servlets, and RMI. It includes tasks like writing programs, explaining concepts, and discussing inheritance types in Java. Additionally, it emphasizes JDBC drivers and connectivity with examples.

Uploaded by

zklkwzr
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)
3 views1 page

Java Practical Exercises

The document outlines practical exercises for Java, covering topics such as recursion, factorial calculation, class design for a library system, JDBC, Java Servlets, and RMI. It includes tasks like writing programs, explaining concepts, and discussing inheritance types in Java. Additionally, it emphasizes JDBC drivers and connectivity with examples.

Uploaded by

zklkwzr
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

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.

You might also like