0% found this document useful (0 votes)
4 views15 pages

Java Lab Manual IDE Installation

The document outlines the syllabus for the Java Programming Lab course in the B.Tech. CSE (AI & ML) program at Avanthi's Scientific Technological and Research Academy. It includes course objectives, outcomes, a list of experiments, and instructions for installing Java IDEs. Additionally, it provides steps for setting up the Java Development Kit (JDK) and IntelliJ IDEA for programming in Java.

Uploaded by

sai lalitha
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)
4 views15 pages

Java Lab Manual IDE Installation

The document outlines the syllabus for the Java Programming Lab course in the B.Tech. CSE (AI & ML) program at Avanthi's Scientific Technological and Research Academy. It includes course objectives, outcomes, a list of experiments, and instructions for installing Java IDEs. Additionally, it provides steps for setting up the Java Development Kit (JDK) and IntelliJ IDEA for programming in Java.

Uploaded by

sai lalitha
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

AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY

GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)


DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

R22 [Link]. CSE (AI and ML) Syllabus JNTU Hyderabad

CB407PC: JAVA PROGRAMMING LAB

[Link]. II Year II Sem. L T P C


0 0 2 1
Course Objectives:
• To understand OOP principles.
• To understand the Exception Handling mechanism.
• To understand Java collection framework.
• To understand multithreading in Java.
• To understand swing controls in Java.

Course Outcomes:
• Able to write the programs for solving real world problems using Java OOP principles.
• Able to write programs using Exceptional Handling approach.
• Able to write multithreaded applications.
• Able to write GUI Programs using swing controls in Java.

List of Experiments:
1. Use Eclipse or Net bean platform and acquaint yourself with the various menus. Create a
test project, add a test class, and run it. See how you can use auto suggestions, auto fill. Try
code formatter and code refactoring like renaming variables, methods, and classes. Try debug
step by step with a small program of about 10 to 15 lines which contains at least one if else
condition and a for loop.

2. Write a Java program to demonstrate the OOP principles. [i.e., Encapsulation, Inheritance,
Polymorphism and Abstraction]

3. Write a Java program to create checked and unchecked exceptions. Also, demonstrate the
usage of custom exceptions in real time scenario.

4. Write a Java program on Random Access File class to perform different read and write
operations.

5. Write a Java program to demonstrate the working of different collection classes. [Use
package structure to store multiple classes]

6. Write a program to explore the File class and methods available under this subject.
[Consider the example of any user-relevant file namely, file, move, reset, existing, etc.]
1
JAVA PROGRAMMING LAB
AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

7. Write a program to perform CRUD operations on the student table in a database using
JDBC.

8. Write a Java program that works as a simple calculator. Use a grid layout to arrange
buttons for the digits and for the +, -, *, % operations. Add a text field to display the result.
Handle any possible exceptions like divided by zero.

9. Write a Java program that handles all mouse events and shows the event name at the
center of the window when a mouse event is fired. [Use Adapter classes]

REFERENCE BOOKS:
1. Java for Programmers, P. J. Deitel and H. M. Deitel, 10th Edition Pearson education.
2. Core Java Volume I, Cay S Horstmann, Pearson.
3. Java Programming, D. S. Malik and P. S. Nair, Cengage Learning.
4. Big Java, Walter J., 5th edition, Cay. S. Horstmann and G. Cornell, Pearson.

2
JAVA PROGRAMMING LAB
AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

How to install java IDE and start writing and running Java code?
Step 1: Install Java JDK (very important)
Before any IDE (IntelliJ or Eclipse), you must install the Java Development Kit (JDK).
Download JDK
Go to:
[Link]

Click “Visit Oracle India”


AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

1. Selected as country India


2. Go to Windows
3. Choose x64 Installer and click the Link and download

Double click or Right Click to Open


AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

Click “Next”

Click “Next”
AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

Click “Close”
 Confirm installation

Open Command Prompt by windows button + R and type “cmd” and press Enter.
AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

Type:” java –version” and press Enter.

It shows version (like 25.0.1" 2025-10-21 LTS), Which means Java Development Kit (JDK)
has been successfully installed.
AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

Download IntelliJ IDEA Community Edition


[Link]

Click “Accept All”

Scroll down the page and we will see “IntelliJ IDEA Community Edition”
Click “Download”. Size will be ~ 948MB.
AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

Click “Open”

Click “Next”
AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

Click “Next”

Make sure to Tick “ “ at all check boxes and click “Next”.


AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

Click “Install”

Tick the check box “Run IntelliJ IDEA Community Edition”.


Click “Finish”
AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

Tick the check box and click “Continue”

Click “Don’t Send”


AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

Click “Skip Import”

Click “+” symbol for New Project


AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

At Name : Untitled bar, type the program / code name that which we want to write the code

Give the first code name as “Hello Java” and click “Create”.
AVANTHI’S SCIENTIFIC TECHNOLOGICAL AND RESEARCH ACADEMY
GUNTHAPALLY (V), ABDULLAPURMET (M), RANGA REDDY (D)
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (AI & ML)

This is the default program called “Main Java”


To run this code click the” ”

In the code, the bottom arrow shows the OUTPUT CONSOLE WINDOW.
Output prints “Hello and welcome” with a for loop of i to 5.
The JAVA IDE has been successfully installed.

You might also like