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 |
Where we write javascript code in html page?
Can we overload final method in java?
How many types of classes are there in java?
What is the purpose of assert keyword used in jdk1.4.x?
What is final modifier?
What are the two types of java programming?
What do you mean by Remote procedure call?
Is java call by reference?
What is the right data type to represent a price in java?
Explain the inheritance?
Why null interfaces are used in Java?
why abstract class does not have object creation