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 run a java program without making any object?

1101


What is jit and its use?

1037


Why do we use predicate in java?

1101


Tell me a few examples of final classes defined in Java API?

1172


What is difference between equal and == in java?

1018


What is ellipsis in java?

1142


What does opcode mean?

1184


In how many ways we can do synchronization in java?

1017


What is the maximum size of a string in java?

1195


What is one third plus one third as a fraction?

999


Can we increase size of array?

1079


What is e in java?

1020


How can a gui component handle its own events in java programming?

1094


when should you use stringbuilder class in a program?

1038


Can we override constructor in java?

1141