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?

Answer Posted / jagdish

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

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exception hierarchy in java?

1010


What is method and methodology?

1101


How are multiple inheritances done in Java?

1144


What is oops in java?

1020


What is t in parametric equations?

991


Explain the JDB in depth & command line.

1016


Which of the classes will have more memory allocated?

976


How do you print array in java?

991


What is identifier give example?

1034


What are internal and external variables?

957


How many return statement are allowed in a function?

934


What are new features introduced with java 8 ?

995


Which package has light weight components in java programming?

1145


What is difference between add() and addelement() in vector?

1535


Why main function is static?

1248