How will you create the class for the following scenario?
Employees under one employee?
Answers were Sorted based on User's Feedback
Answer / jagdish
class Employee {
Integer empCode;
String firstName;
String lastName;
List<Employee> subEmployees;
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Explain about join() method?
What does main method?
what is overloading in java?
13 Answers Ascent, DNS, Infosys, SDA, VelTech,
what is the difference between yielding and sleeping? : Java thread
Where we write javascript code in html page?
Which java collection does not allow null?
Write a function for palindrome and factorial and explain?
0 Answers Honeywell, Huawei, Zomato,
What is rule of accessibility in java?
What is ellipsis in java?
What are java packages? What is the significance of packages?
What is Interface?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread