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 difference between iterator and enumeration in java?

938


Why java is used everywhere?

950


How many bits is a string?

937


What is the basic concepts of OOPS?

1126


Is arraylist ordered in java?

1035


What are classloaders?

961


What do you mean by garbage collection used in java?

1005


What is the difference between the prefix and postfix forms of the ++ operator?

963


Can an interface have a constructor?

895


What is an exception? difference between Checked and Unchecked exception in Java

952


How do you reverse a string in java without using string buffer?

1038


What does java edition mean?

1032


What are the 5 types of research methods?

1082


Explain the inheritance?

920


What is the difference between the file and randomaccessfile classes?

1028