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

can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

1038


What is method in java with example?

1004


What is cr keyboard?

1345


Can a class have a static inner class?

1124


java program with complete 4 oops concepts implemented example

3215


Explain some best practices you would apply while using collection in java?

1101


Explain super keyword in java.

1083


Can array grow dynamically in java?

1033


What are different types of references?

1028


What is method overloading and method overriding?

1110


What is the symbol for line break?

1163


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

1071


Write a java program to print fibonacci series?

1007


Explain about object oriented programming and its features?

1070


What is the use of beaninfo?

1100