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 package is math in java?
Is java pass by value or pass by reference?
Is overriding possible in java?
What do you mean by garbage collection used in java?
What is keyword in oop?
What is string args [] in java?
What is treemap in java?
What are the advantages of encapsulation in java?
How do you convert boolean to boolean?
When is the finally clause of a try-catch-finally statement executed?
What is import java util arraylist?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Explain the importance of finally over return statement?
Is void a wrapper class?
How dead lock situation occurs in java and how you can identify it?