Java Program for Employee using Class and Object

Опубликовано: 21 Март 2026
на канале: BackCoding
369,957
15k

In Java, the most searching program is of employee . An employee is an entity that can have several attributes like id, name, and Selary, etc. In order to create a java employee program, we need to create a class for the employee entity and create properties of the employees.

Output:

Enter ID:-
10
Enter name:-
Roshan
Enter Selary:-
10000





ID=10
Name=Roshan
Selary=10000.0



















#BackCoding
#java
#programming
#shorts