responsible for doing that in java? - Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process What kind of thread is the Garbage collector thread? - It is a daemon thread. What is a daemon thread? - These are the threads hich can run ithout user intervention. The !"# can e$it hen there are daemon thread by killing them abruptly. %o ill you invoke any e$ternal process in !ava? - Runtime.getRuntime&'.e$ec&(.' What is the finali)e method do? - *efore the invalid objects get garbage collected+ the !"# give the user a chance to clean up some resources before it got garbage collected. What is mutable object and immutable object? - If a object value is changeable then e can call it as #utable object. &,$.+ -tring*uffer+ (' If you are not alloed to change the value of an object+ it is immutable object. &,$.+ -tring+ Integer+ .loat+ (' What is the basic difference beteen string and stringbuffer object? - -tring is an immutable object. -tring*uffer is a mutable object. What is the purpose of "oid class? - The "oid class is an uninstantiable placeholder class to hold a reference to the /lass object representing the primitive !ava type void. What is reflection? - Reflection allos programmatic access to information about the fields+ methods and constructors of loaded classes+ and the use reflected fields+ methods+ and constructors to operate on their underlying counterparts on objects+ ithin security restrictions. What is the base class for ,rror and ,$ception? - Throable What is the byte range? -012 to 013 What is the implementation of destroy method in java.. is it native or java code? - This method is not implemented. What is a package? - To group set of classes into a single unit is knon as packaging. 4ackages provides ide namespace ability. What are the approaches that you ill follo for making a program very efficient? - *y avoiding too much of static methods avoiding the e$cessive and unnecessary use of synchroni)ed methods -election of related classes based on the application &meaning synchroni)ed classes for multiuser and non-synchroni)ed classes for single user' 5sage of appropriate design patterns 5sing cache methodologies for remote invocations 6voiding creation of variables ithin a loop and lot more. What is a 7atabase#eta7ata? - /omprehensive information about the database as a hole. What is 8ocale? - 6 8ocale object represents a specific geographical+ political+ or cultural region %o ill you load a specific locale? - 5sing Resource*undle.get*undle&('9 What is !IT and its use? - Really+ just a very fast compiler( In this incarnation+ pretty much a one-pass compiler : no offline computations. -o you can;t look at the hole method+ rank the e$pressions according to hich ones are re-used the most+ and then generate code. In theory terms+ it;s an on-line problem. Is !"# a compiler or an interpreter? - Interpreter When you think about optimi)ation+ hat is the best ay to findout the time<memory consuming process? - 5sing profiler What is the purpose of assert keyord used in !7=0.>.$? - In order to validate certain e$pressions. It effectively replaces the if block and automatically thros the 6ssertion,rror on failure. This keyord should be used for the critical arguments. #eaning+ ithout that the method does nothing. %o ill you get the platform dependent values like line separator+ path separator+ etc.+ ? - 5sing -ytem.get4roperty&(' &line.separator+ path.separator+ (' What is skeleton and stub? hat is the purpose of those? - -tub is a client side representation of the server+ hich takes care of communicating ith the remote server. -keleton is the server side representation. *ut that is no more in use( it is deprecated long before in !7=. What is the final keyord denotes? - final keyord denotes that it is the final implementation for that method or variable or class. ?ou can;t override that method<variable<class any more. What is the significance of 8istIterator? - ?ou can iterate back and forth. What is the major difference beteen 8inked8ist and 6rray8ist? - 8inked8ist are meant for se@uential accessing. 6rray8ist are meant for random accessing. What is nested class? - If all the methods of a inner class is static then it is a nested class. What is inner class? - If the methods of the inner class can only be accessed via the instance of the inner class+ then it is called inner class. What is composition? - %olding the reference of the other class ithin some other class is knon as composition. What is aggregation? - It is a special type of composition. If you e$pose all the methods of a composite class and route the method call to the composite method through its reference+ then it is called aggregation. What are the methods in Abject? - clone+ e@uals+ ait+ finali)e+ get/lass+ hash/ode+ notify+ notify6ll+ to-tring /an you instantiate the #ath class? - ?ou can;t instantiate the math class. 6ll the methods in this class are static. 6nd the constructor is not public. What is singleton? - It is one of the design pattern. This falls in the creational pattern of the design pattern. There ill be only one instance for that entire !"#. ?ou can achieve this by having the private constructor in the class. .or eg.+ public class -ingleton B private static final -ingleton s C ne -ingleton&'9 private -ingleton&' B D public static -ingleton getInstance&' B return s9 D << all non static methods ( D What is 7river#anager? - The basic service to manage set of !7*/ drivers. What is /lass.forEame&' does and ho it is useful? - It loads the class into the /lass8oader. It returns the /lass. 5sing that you can get the instance & Fclass-instanceG.neInstance&' '. In@ adds a @uestionH ,$pain the reason for each keyord of public static void main&-tring argsIJ'