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

What is a percentage sign called?

0 Answers  


Which of the following classes will have more memory allocated?

0 Answers  


What is keyword auto for?

0 Answers  


Explain about automatic type conversion in java?

0 Answers  


How to find the length and capacity of a string buffer ?

2 Answers  






if num=687; U have to get num=6+8+7;

4 Answers   CMC,


Is integer passed by reference in java?

0 Answers  


What is ide with example?

0 Answers  


what is the use of thread?Justify it by project point of view

7 Answers  


How to reduce flicking in animation?

3 Answers   TCS,


How do you declare a destructor in java?

0 Answers  


State the significance of public, private, protected class?

0 Answers  


Categories