How will you create the class for the following scenario?

Employees under one employee?

Answer Posted / satya

Employee class

SubEmployee extends Employee

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you print number in reverse (descending) order in BST.

583


Why packages are used?

548


State the significance of public, private, protected class?

655


How do you add spaces in java?

516


What is initial size of arraylist in java?

538






Why webdriver is an interface?

585


Difference between comparator and comparable in java?

621


Write the algorithm to check the number non-leaf nodes in a tree.

600


What is the difference between integer parseint and integer valueof?

555


Can we have multiple classes in a single file?

515


Explain when classnotfoundexception will be raised ?

569


Can You Have Virtual Functions In Java?

589


Are arrays static in java?

589


How you can force the garbage collection?

540


Which class is used by server applications to obtain a port and listen for client requests?

494