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 |
What is java string pool?
justify c is portable
why pointer is not used in java?
Explain the purpose of garbage collection in Java?
Explain java coding standards for methods?
How do you square a number?
When super keyword is used?
Which one of the following suits the description of a string better: derived or primitive?
What is the difference between serializable and externalizable interface?
What is a void method?
What is array initialization in java?
methods in Applet?