[Go to site: main page, start]

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

Java Program List

The document lists 50 Java programs categorized into four sections: Basic Programs, Loop Programs, Array Programs, String Programs, and OOP Programs. Each section contains various programming tasks such as printing messages, performing calculations, manipulating arrays and strings, and demonstrating object-oriented programming concepts. This comprehensive list serves as a resource for learning and practicing Java programming skills.

Uploaded by

kartikbadraksh
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 Program List

The document lists 50 Java programs categorized into four sections: Basic Programs, Loop Programs, Array Programs, String Programs, and OOP Programs. Each section contains various programming tasks such as printing messages, performing calculations, manipulating arrays and strings, and demonstrating object-oriented programming concepts. This comprehensive list serves as a resource for learning and practicing Java programming skills.

Uploaded by

kartikbadraksh
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 PROGRAM LIST (50 PROGRAMS)

===============================

BASIC PROGRAMS
1. Print “Hello World”
2. Add two numbers
3. Check even or odd
4. Largest of two numbers
5. Largest of three numbers
6. Leap year check
7. Swap two numbers
8. Reverse a number
9. Palindrome number
10. Armstrong number

LOOP PROGRAMS
11. Multiplication table
12. Fibonacci series
13. Factorial of a number
14. Count digits
15. Sum of digits
16. Prime numbers 1–100
17. Check prime number
18. Star patterns
19. Reverse string using loop
20. Count vowels and consonants

ARRAY PROGRAMS
21. Largest element in array
22. Smallest element in array
23. Sort an array
24. Linear search
25. Binary search
26. Copy array elements
27. Duplicate elements in array
28. Merge two arrays
29. Matrix addition
30. Matrix multiplication

STRING PROGRAMS
31. Reverse string (StringBuilder)
32. String palindrome
33. Count words in string
34. Compare two strings
35. Character frequency
36. Remove whitespaces
37. Uppercase & lowercase
38. Substring extraction
39. Replace characters
40. Sort characters in string

OOP PROGRAMS
41. Class and object example
42. Constructor (default & parameterized)
43. Method overloading
44. Method overriding
45. Single inheritance
46. Multilevel inheritance
47. Interface implementation
48. Abstract class example
49. Encapsulation (get/set)
50. Exception handling

You might also like