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 |
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What is udp in java?
What is difference between array and vector?
Define inheritance?
What is the difference between the final method and abstract method?
In a container there are 5 components. I want to display all the component names, how will you do that?
What is executor memory?
What is java console application?
Which is not Object in Java?
How do you join strings in java?
Can you sort a string in java?
what is tempplate pattern