Navigation: Main Index | Chapter Guide
This folder contains one runnable Java 8 program for each of the 30 practice exercises.
javac 01-Welcome.java
java Welcome| No. | File | Exercise |
|---|---|---|
| 1 | 01-Welcome.java | Print welcome message |
| 2 | 02-PrintSum.java | Print sum of two integers |
| 3 | 03-Square.java | Return square of a number |
| 4 | 04-EvenOdd.java | Check even or odd |
| 5 | 05-LargestOfTwo.java | Return largest of two numbers |
| 6 | 06-StudentDetails.java | Display name and age |
| 7 | 07-RectangleArea.java | Calculate rectangle area |
| 8 | 08-CelsiusToFahrenheit.java | Convert Celsius to Fahrenheit |
| 9 | 09-Factorial.java | Calculate factorial with a loop |
| 10 | 10-NumberSign.java | Check positive, negative, or zero |
| 11 | 11-ShapeArea.java | Overloaded shape area methods |
| 12 | 12-Calculator.java | Overloaded calculator methods |
| 13 | 13-Student.java | Parameterized Student constructor |
| 14 | 14-Book.java | Multiple Book constructors |
| 15 | 15-StaticVsInstance.java | Static and instance methods |
| 16 | 16-Employee.java | Employee constructor and methods |
| 17 | 17-SumOfDigits.java | Recursive sum of digits |
| 18 | 18-ReverseString.java | Recursive string reversal |
| 19 | 19-PrimeNumber.java | Prime number check |
| 20 | 20-RecursivePower.java | Recursive power |
| 21 | 21-BankAccount.java | Bank account operations |
| 22 | 22-Rectangle.java | Rectangle constructors and calculations |
| 23 | 23-StudentResult.java | Student total, percentage, and grade |
| 24 | 24-LibraryBook.java | Issue and return library books |
| 25 | 25-ConstructorChaining.java | Constructor chaining with this() |
| 26 | 26-PassByValue.java | Primitive and object pass-by-value |
| 27 | 27-OverloadedParameters.java | Overloaded parameter combinations |
| 28 | 28-GCD.java | Recursive greatest common divisor |
| 29 | 29-PalindromeString.java | Recursive palindrome check |
| 30 | 30-BankingMenu.java | Menu-driven banking application |