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

Tutorial (Java Programming BBC401)

The document outlines a series of Java programming tutorials covering topics such as Java source file structure, data types, constructors, access specifiers, inheritance, interfaces, exception handling, GUI components, JDBC, servlets, and JSP. Each tutorial includes theoretical explanations and practical programming tasks to reinforce learning. The content is structured to progressively build knowledge and skills in Java programming.

Uploaded by

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

Tutorial (Java Programming BBC401)

The document outlines a series of Java programming tutorials covering topics such as Java source file structure, data types, constructors, access specifiers, inheritance, interfaces, exception handling, GUI components, JDBC, servlets, and JSP. Each tutorial includes theoretical explanations and practical programming tasks to reinforce learning. The content is structured to progressively build knowledge and skills in Java programming.

Uploaded by

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

JAVA Programming (BBC401)

Tutorial – 1
1. Explain Java Source file structure and Compilation process.
2. Explain Data Type and Variable in Java.
3. Explain Constructor in Java and their type.
4. Explain Access Specifier in Java (default, private, protected, public) with example.

Tutorial – 2
5. Write a Java Program to demonstrate multilevel inheritance.
6. Write a Java Program to implement interfaces.
7. Write a Java Program to demonstrate package usage.

Tutorial – 3
1. Define an exception. Explain its advantages, exception hierarchy, and differentiate
between checked and unchecked exceptions.
2. Write a Java program using try, catch, throw, throws, and finally to handle a negative
number input.
3. Write a Java program to write to a file and read from it using FileWriter and
BufferedReader with proper exception handling.

Tutorial – 4
1. Differentiate between AWT and Swing components. Explain how to create a simple
Swing application with labels, text fields, and buttons using appropriate layout
managers.
2. Write a Java program using Swing to demonstrate the use of menus, toolbars, and dialog
boxes. Explain the role of layout managers and event handling in GUI design.
3. Explain JDBC architecture and the role of the [Link] package. Write a Java program
to connect to a MySQL database and perform a simple query (insert or select).

Tutorial – 5
1. Explain the basics of Java Servlets and the Servlet API. Describe the life cycle of a
servlet with a suitable diagram or explanation.
2. Write a Java Servlet program to handle a client request and demonstrate HTTP redirect
and cookies. Also explain how to run and debug a servlet.
3. Explain thread-safe servlets and their importance. Give a brief introduction to JSP and
differentiate it from servlets.

You might also like