Thursday, 29 May 2014

Java Interview Questions | SLA KK Nagar



What are Generics methods and classes? Why are they used in Java?

Generic methods and generic classes are used for defining set of related data types to methods and classes. They are used for achieving type safety during the compile time by filtering the invalid data types.

Is it compulsory to import java.lang package? Why?
No, since the java.lang package is loaded to the Java Virtual Machine (JVM), there is no need for importing the package.

Define Nested Top-Level class.

Nested Top-Level class is defined as a class which is declared inside another class with static modifier. This class is treated like any other top-level classes by the compiler.

Name the method that must be implemented by all the threads.

The method run must be over-ridded in all the thread classes.

Define Daemon Thread.

Daemon thread is defined as a thread that runs as a low priority thread in the back ground for garbage collection operations in the JVM (Java Virtual Machine).


To receive job updates and placement tweets from SLA, Kindly like our official facebook page"www.facebook.com/SLAjobs"



SLA KK Nagar - SCJP Course

SLA Jobs, best destination for complete training on various computer hardware, networking and software domains. SCJP (SLA Certified Java Professional) is an exclusive training course which covers all the essential of Java. Internship training is provided at the end of the training course.


Contact SLA KK Nagar Chennai at

SLA KK Nagar Chennai
No 10, P.T. Rajan Salai, K.K. Nagar, Chennai – 600078
Phone: +91 44 42005050
Mobile: +91 9677012

No comments:

Post a Comment