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 java string pool?

0 Answers  


justify c is portable

1 Answers  


why pointer is not used in java?

3 Answers  


Explain the purpose of garbage collection in Java?

0 Answers   BirlaSoft,


Explain java coding standards for methods?

0 Answers  






How do you square a number?

0 Answers  


When super keyword is used?

0 Answers  


Which one of the following suits the description of a string better: derived or primitive?

0 Answers  


What is the difference between serializable and externalizable interface?

0 Answers  


What is a void method?

0 Answers  


What is array initialization in java?

0 Answers  


methods in Applet?

1 Answers  


Categories