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 |
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is string builder in java?
How to make a class immutable?
JVM is platform independent or depeneded?
Can I learn java in 3 months?
What does the three dot emoji mean?
What does the “final” keyword mean in front of a variable? A method? A class?
How many arguments can be passed to main ()?
What is the vector class in java programming?
What is class variable java?
What is the difference between numeric and integer?
What class is used to implement a Throwable array?