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 |
What are heterogeneous objects?
why are there separate wait and sleep methods? : Java thread
Which sorting algorithm is best in java?
What is annotation in java?
What is the point of java?
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?
What is a treeset in java?
Define max and min heap, also the search time of heap.
What is a get method?
What are the differences between stringbuffer and stringbuilder?
What is outofmemoryerror in java?
What is prime number in java?