Category: Java program
-
Exception program
Outputs: getPassword: enter password 1234Less than 8 Exception checkedExceptionDemo: Please check file location divide3: Check Checkfinally blockProceed further divide2: 1-600Hi divide1: Enter two no.s1twoCheck inputsHi
-
oops scenario programs
Scenario #1: Expected Understanding: Access Modifiers, Single Inheritance, getter methods, Constructor Overloading 1) Create a Class named “Trainer” with main method. – Have default instance variables String dept, institute – Assign values – “Java”, “Payilagam” to them – Have private instance variable int salary – Assign 10000 as value for salary. – Create getter method…
-
Program(neon,strong,armstrong)
Output: Armstrong number is371Armstrong numberNeon Number144 is not a STRONG NUMBER
-
Pattern Program
output: 55 45 4 35 4 3 25 4 3 2 1 output: 5 4 3 2 15 4 3 25 4 35 45 output: output: output: A B C D EA B C DA B CA BA