Professional Documents
Culture Documents
Lab 4
Lab 4
Q. a) Determine: static, final, and static final data fields and methods.
b) Use the keyword 'this' to distinguish data fields in the class from
parameters of some constructor.
2) Write a main class that creates 5 employees, such that their data are
stored in the following arrays defined in the Main class:
String[] names = {"Ahmad", "Ali", "Amal", "Muna", "Mahmod"};
String[] jobs = {"Programmer" , "System Analyst", "Secretary",
"Sales", "Technician" };
double[] salaries = {560.5, 1000, 300, 500, 450};
For example: Ahmad is a programmer his salary is 560.5, Ali is a
system analyst his salary is 1000,…