Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Where we write javascript code in html page?

0 Answers  


Can we overload final method in java?

0 Answers  


How many types of classes are there in java?

0 Answers  


What is the purpose of assert keyword used in jdk1.4.x?

0 Answers  


What is final modifier?

0 Answers  


What are the two types of java programming?

0 Answers  


What do you mean by Remote procedure call?

2 Answers  


Is java call by reference?

0 Answers  


What is the right data type to represent a price in java?

0 Answers  


Explain the inheritance?

0 Answers  


Why null interfaces are used in Java?

2 Answers  


why abstract class does not have object creation

6 Answers   Value Labs,


Categories