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 |
what is the difference between static block and static method
can u give one sinario when you use Abstract Class and When you use Interface.
Is singleton a bad practice?
Explain the importance of thread scheduler in java?
What is the this keyword?
Can we iterate through collection using for loop?
Name the methods in mouse listeners ?
Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?
Can a class be private or protected in java?
What are the different types of sorting in java?
How to perform selection sort in java?
What is an event?