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 run time polymorphism?
6 Answers eClerx, Elementus Technologies,
What is predicate in java?
Give me an example of array and linked list? Where they can be used?
How do you compare two strings? any predefined method for this?
Is singleton class thread safe?
Which is illegal identifier in java?
what is mutability?which one is mutable String or StringBuffer?and why?give examples of each which shows the mutability of each String or StringBuffer
Define max and min heap, also the search time of heap.
Name the types of mouse event listeners ?
what is singleton class in java?
Explain the importance of finally block in java?
Can java list be null?