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

How can we make string upper case or lower case?

1028


Explain JMS in detail.

975


What is the purpose of encapsulation?

952


do I need to use synchronized on setvalue(int)? : Java thread

960


How do you check if a character in a string is a digit or letter?

1011


What are the Class Libraries ?

1002


What is integer size in java?

949


What is data structure in java?

940


What are the restrictions imposed by a Security Manager on Applets?.

2559


What is the use of list in java?

938


What are the Static and Dynamic Variables? Differentiate them.

1048


What is object of class in java?

1071


What do you understand by private, protected and public?

1001


Explain the difference between call by refrence and call by value?

975


What is the use of beaninfo?

981