0% found this document useful (0 votes)
2 views

JAVA LAB

The document outlines the laboratory experiments for the Fundamentals of JAVA Programming Lab for third-year E & Tc Engineering students at Savitribai Phule Pune University. It includes compulsory experiments focused on basic Java programming concepts, as well as optional experiments that cover advanced topics like inheritance, exception handling, and graphics. Additionally, students are required to complete two experiments using virtual labs.

Uploaded by

swapnilovhal2
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)
2 views

JAVA LAB

The document outlines the laboratory experiments for the Fundamentals of JAVA Programming Lab for third-year E & Tc Engineering students at Savitribai Phule Pune University. It includes compulsory experiments focused on basic Java programming concepts, as well as optional experiments that cover advanced topics like inheritance, exception handling, and graphics. Additionally, students are required to complete two experiments using virtual labs.

Uploaded by

swapnilovhal2
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
You are on page 1/ 2

Savitribai Phule Pune University

Third Year of E & Tc Engineering (2019 Course)


304189 (C): Fundamentals of JAVA Programming Lab (Elective - I)
Teaching Scheme: Credit Examination Scheme:
Practical: 02 hrs. / week 01 Practical : 25 Marks
Prerequisite Courses, if any: - Knowledge of Object Oriented Programming
Companion Course, if any: Fundamentals of JAVA Programming
List of Laboratory Experiments

Group A (All are Compulsory)


1. Write some simple programs in Java such as:
i) To find factorial of number.
ii) To display first 50 prime numbers.
iii) To find sum and average of N numbers
2. Write a program in Java to implement a Calculator with simple arithmetic operations such as
add, subtract, multiply, divide, factorial etc. using switch case and other simple java statements.
The objective of this assignment is to learn Constants, Variables, and Data Types, Operators and
Expressions, Decision making statements in Java.
3. Write a program in Java with class Rectangle with the data fields width, length, area and colour.
The length, width and area are of double type and colour is of string type. The methods are
get_length(), get_width(), get_colour() and find_area(). Create two objects of Rectangle and
compare their area and colour. If the area and colour both are the same for the objects then
display “ Matching Rectangles”, otherwise display “ Non-matching Rectangle”
4. Write a program in JAVA to demonstrate the method and constructor overloading

Group B (Any Four)


5 Write Programs in Java to sort i) List of integers ii) List of names. The objective of this
assignment is to learn Arrays and Strings in Java
6. Write a Program in Java to add two matrices. The objective of this assignment is to learn Arrays
in Java
7. Write a program in Java to create a player class. Inherit the classes Cricket_player,
Football_player and Hockey_player from player class. The objective of this assignment is to
learn the concepts of inheritance in Java.
8. Write a Java program which imports user defined package and uses members of the classes
contained in the package.
9. Write a Java program which implements interface.
10 Write a program to create multiple threads and demonstrate how two threads communicate with
each other.
Group C (Any Three)
11. Write a java program which use try and catch for exception handling.

12. Write a Java program to draw oval, rectangle, line , text using graphics class
13. Write a java program in which data is read from one file and should be written in another file
line by line.
14. A Mini project in Java: A group of 4 students can develop a small application in Java

Virtual LAB Links:


Link of the Virtual Lab: https://java-iitd.vlabs.ac.in/

Note: Additional 2 experiments to be performed using the virtual labs.

You might also like