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 locale?
what is main purpose of interface?
2 Answers Accenture, HCL, NIIT,
What is data structure in java?
in a console we r giving java <class name> if r pressing enter where it'll goes
What is downcasting?
What is an empty list in java?
Explain how to convert any java object into byte array.
what is different between static and non static methods ,using example
What does math floor () do?
Can we assign the reference to this variable?
What is tree in java?
Why strings in java are called as immutable?