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
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What is method in java with example?
What is cr keyboard?
Can a class have a static inner class?
java program with complete 4 oops concepts implemented example
Explain some best practices you would apply while using collection in java?
Explain super keyword in java.
Can array grow dynamically in java?
What are different types of references?
What is method overloading and method overriding?
What is the symbol for line break?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
Write a java program to print fibonacci series?
Explain about object oriented programming and its features?
What is the use of beaninfo?