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 do you square a number in java?
What is mean by encoding?
How are multiple inheritances done in Java?
How much ram can a 64 bit processor theoretically?
What is the final blank variable?
Why java is object oriented?
Does apple use java?
How is Object Oriented Programming different from Procedure Oriented Programming?
why using interface interface ?
What is the purpose of the strictfp keyword?
Is a class subclass of itself?
Can a class declared as private be accessed outside it’s package?
What is module with example?
What is a modifier?
What are meta-annotations?