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 are the disadvantages of object oriented programming?
What is the difference between processes and threads?
How to perform bubble sort in java?
what is the diffrences between platform independent and portable
What are desktop procedures?
What is difference between compatible and incompatible changes in serialization?
what is object deep copy and shallow copy and why it is required?
What is the difference between multiple processes and multiple threads?
What if constructor is protected in java?
What are advantages of exception handling in java?
In how many ways we can the thread? in java
Define how objects are stored in java?