How will you create the class for the following scenario?
Employees under one employee?
Answer Posted / jagdish
class Employee {
Integer empCode;
String firstName;
String lastName;
List<Employee> subEmployees;
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is difference between iterator and enumeration in java?
Why java is used everywhere?
How many bits is a string?
What is the basic concepts of OOPS?
Is arraylist ordered in java?
What are classloaders?
What do you mean by garbage collection used in java?
What is the difference between the prefix and postfix forms of the ++ operator?
Can an interface have a constructor?
What is an exception? difference between Checked and Unchecked exception in Java
How do you reverse a string in java without using string buffer?
What does java edition mean?
What are the 5 types of research methods?
Explain the inheritance?
What is the difference between the file and randomaccessfile classes?