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

Java Index

This document outlines 20 programming problems to solve involving basic Java concepts like printing statements, arithmetic operators, loops, arrays, inheritance, abstraction and more. The problems are numbered and include a brief description and the page numbers to find the solutions. They progress from simple print statements to more complex topics like classes, objects, inheritance and abstraction.

Uploaded by

shubham verma
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Java Index

This document outlines 20 programming problems to solve involving basic Java concepts like printing statements, arithmetic operators, loops, arrays, inheritance, abstraction and more. The problems are numbered and include a brief description and the page numbers to find the solutions. They progress from simple print statements to more complex topics like classes, objects, inheritance and abstraction.

Uploaded by

shubham verma
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

S no.

INDEX Page no
1. Write a program to print “This is my first java program”. 1

2. Write a program to perform compile arithmetic operater.(+,*,-,/,%). 2-3

3. Write a program to calculate Area of circle. 4

4. Write a program to calculate Simple Intrest. 5-6

5. Write a program to calculate Square of any number. 7

6. Write a program to input two number and check who is greater. 8

7. Write a program to input three number and check who is greater using nested if 9-10
else.
8. Write a program to input any number and check number is odd or even. 11

9. Write a program to print 1 to 10 using While loop. 12

10. Write a program to print 1 to 10 using do While loop. 13

11. Write a program to print any table using For loop. 14

12. Write a program to print even number between upto 100. 15

13. Write a program to input 10 element in array and display it. 16-17

14. Write a program to print following series using nested For loop :- 18-20

i. 1 ii. 1 iii.*
12 2 3 * *
123 4 5 6 * * *
1234 7 8 9 10 * * * *
12345 * * * * *
15. Write a program to addition of two matrix. 21

16. Write a program example of constructor. 22

17. Write a program to example of multi level inheritance. 23-24

18. Write a program of abstract class and abstract method. 25-26

19. Write a program to copmute the factorial no to inputed value. 27

20. Write a program to example of class and method. 28-29

You might also like