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 package is math in java?

998


Is java pass by value or pass by reference?

990


Is overriding possible in java?

959


What do you mean by garbage collection used in java?

1063


What is keyword in oop?

953


What is string args [] in java?

1031


What is treemap in java?

944


What are the advantages of encapsulation in java?

1012


How do you convert boolean to boolean?

1158


When is the finally clause of a try-catch-finally statement executed?

1064


What is import java util arraylist?

1181


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

1144


Explain the importance of finally over return statement?

1043


Is void a wrapper class?

946


How dead lock situation occurs in java and how you can identify it?

992