ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
How will you create the class for the following  scenario?

Employees under one employee?

 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How will you create the class for the following scenario? Employees under one employee?
Answer
# 1
Employee class

SubEmployee extends Employee
 
Is This Answer Correct ?    1 Yes 0 No
Satya
 
  Re: How will you create the class for the following scenario? Employees under one employee?
Answer
# 2
class Employee {
  Integer empCode;
  String firstName;
  String lastName;
  List<Employee> subEmployees;
}
 
Is This Answer Correct ?    1 Yes 1 No
Jagdish
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Does garbage collection guarantee that a program will not run out of memory?  1
how to transactions(Bank transactions) in business process in ejb? Photon1
what is the use of datasource in core java? Satyam2
Why cant we define System.out.println() inside a class directly?  3
different types of threads? TCS5
What is an Iterator interface?  2
what is difference between excute query ()and execute update ()? Symphony4
Difference between Interface & Abstract class?  3
How do you relate a Interface to a Class? Tell me in Detail?  4
What are the advantages of the model over the event- inheritance model?  1
Functionality of JVM?  3
What is the differenc between Enemuration interface and iterator interface according to accessing?  4
why the abstract class has default constructor?  1
what are class,constructor and primitive data types?  2
methods in Applet?  1
What are inner and anonymous class?  2
what is the use of finalize()Method please explain with an example  1
waht happens when a return type ,even void is specified for a constructor?  9
Differentiate constructor and a method and how are it be used? Wipro4
Explain Connection Pooling?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com