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 the benefits of operations?
Is there a sort function in java?
Can we assign integer value to char in java?
What is meant by class loader and how many types are there?
write a program to create an arraylist and listeterator.and value should be enter through keyboard.
what is the replacement method of stop() of thread
What are data structures in java?
Can you write a java class that could be used both as an applet as well as an application?
What is the purpose of having the concept of overloading?
Why hashmap is used in java?
What is the difference between the paint() and repaint() methods?
Explain serialization and deserialization in java?