Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How will you create the class for the following scenario?

Employees under one employee?

Answers were Sorted based on User's Feedback



How will you create the class for the following scenario? Employees under one employee? ..

Answer / satya

Employee class

SubEmployee extends Employee

Is This Answer Correct ?    6 Yes 1 No

How will you create the class for the following scenario? Employees under one employee? ..

Answer / jagdish

class Employee {
Integer empCode;
String firstName;
String lastName;
List<Employee> subEmployees;
}

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More Core Java Interview Questions

Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

0 Answers  


What is udp in java?

0 Answers  


What is difference between array and vector?

0 Answers  


Define inheritance?

0 Answers  


What is the difference between the final method and abstract method?

0 Answers  






In a container there are 5 components. I want to display all the component names, how will you do that?

0 Answers  


What is executor memory?

0 Answers  


What is java console application?

0 Answers  


Which is not Object in Java?

10 Answers   Honeywell,


How do you join strings in java?

0 Answers  


Can you sort a string in java?

0 Answers  


what is tempplate pattern

4 Answers   IBM, RBS,






Categories