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
How can we run a java program without making any object?
What is jit and its use?
Why do we use predicate in java?
Tell me a few examples of final classes defined in Java API?
What is difference between equal and == in java?
What is ellipsis in java?
What does opcode mean?
In how many ways we can do synchronization in java?
What is the maximum size of a string in java?
What is one third plus one third as a fraction?
Can we increase size of array?
What is e in java?
How can a gui component handle its own events in java programming?
when should you use stringbuilder class in a program?
Can we override constructor in java?