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 |
Differece between class and generic class?
Explain cookies?
Can you call a constructor within a constructor?
what is object-oriented programming in java?
How to eliminate duplicates from an array?
6 Answers ABC, AdMod, Adobe, College School Exams Tests, Patni, Wipro,
what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?
What is set in java?
Is java util regex pattern thread safe?
What are the two parts of a conditional statement?
How do you make an arraylist empty in java?
What is a java applet? What is an interface?
Name the package that most of the AWT events that supports event-delegation model are defined?