How will you create the class for the following scenario?
Employees under one employee?
Answer Posted / jagdish
class Employee {
Integer empCode;
String firstName;
String lastName;
List<Employee> subEmployees;
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How can we make string upper case or lower case?
Explain JMS in detail.
What is the purpose of encapsulation?
do I need to use synchronized on setvalue(int)? : Java thread
How do you check if a character in a string is a digit or letter?
What are the Class Libraries ?
What is integer size in java?
What is data structure in java?
What are the restrictions imposed by a Security Manager on Applets?.
What is the use of list in java?
What are the Static and Dynamic Variables? Differentiate them.
What is object of class in java?
What do you understand by private, protected and public?
Explain the difference between call by refrence and call by value?
What is the use of beaninfo?