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 exception hierarchy in java?
What is method and methodology?
How are multiple inheritances done in Java?
What is oops in java?
What is t in parametric equations?
Explain the JDB in depth & command line.
Which of the classes will have more memory allocated?
How do you print array in java?
What is identifier give example?
What are internal and external variables?
How many return statement are allowed in a function?
What are new features introduced with java 8 ?
Which package has light weight components in java programming?
What is difference between add() and addelement() in vector?
Why main function is static?