0% found this document useful (0 votes)
2 views2 pages

Java Programs

The document outlines a series of Java programming exercises for Class 8 students. It includes tasks such as displaying output, storing values in variables, performing arithmetic operations, and calculating areas and perimeters of various shapes. Students are instructed to write the code in their notebooks and perform practicals either at home or in a computer lab.

Uploaded by

shivamv15052012
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 views2 pages

Java Programs

The document outlines a series of Java programming exercises for Class 8 students. It includes tasks such as displaying output, storing values in variables, performing arithmetic operations, and calculating areas and perimeters of various shapes. Students are instructed to write the code in their notebooks and perform practicals either at home or in a computer lab.

Uploaded by

shivamv15052012
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

Class 8

Java Programs
[Instructions: Write all the questions with java code in notebook and
also perform the program practical. (at home or in computer lab]

1. Write a program to display First Java Program in the out


put window.
2. Write a program to display your details ( name,rno, class
and division).
3. Write a program to store values in variables ( name
,rno,class and division)
4. Write a program to display the addition of 2 numbers.
5. Write a program to display rno, name, class and division
6. Write a program to display add, sub, multiply, divide and
modulus of 2 numbers.
7. Write a program to find and display the area of square.
8. Write a program to find and display the area of
rectangle.
9. Write a program to find and display the area of a
triangle.
10. Write a program to find and display area of circle.
11. Write a program to store m1, m2, m3. Find the total
and percentage.
12. Write a program to find and display perimeter of
square
13. Write a program to find and display perimeter of
rectangle.
14. Write a program to find and display perimeter of
triangle.
15. Write a program to find and display perimeter of
circle.
16. Write a program to find and display simple interest.

You might also like