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 to sort an array from smallest to largest java?
Is string a wrapper class?
How do you compare values in java?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
Why lambda expression is used in java?
What is skeleton and stub?
What is the relationship between clipping and repainting under awt?
What is polymorphism and what are the types of it?
What is the difference between yielding and sleeping?
How many days will it take to learn java?
What are user defined exceptions?
What are the 6 boolean operators?
What are different access specifiers in java? Explain
What is a percentage sign called?
What are methods of a class?