![]() |
|
09.17.09 Helpful Java Q&A By Vaibhav PandeyIf You are appearing for any technical job's interview specially for software and system development you must know the language Java it is considered as the strongest language present in recent times.To make you aware of Java Util class and Thread class there are few frequently asked questions just go through. Java Interview questions • What is the List interface? - The List interface provides support for ordered collections of objects. • What is the Vector class? - The Vector class provides the capability to implement a growable array of objects • What is an Iterator interface? - The Iterator interface is used to step through the elements of a Collection • Which java.util classes and interfaces support event handling? - The EventObject class and the EventListener interface support event processing • What is the GregorianCalendar class? - The GregorianCalendar provides support for traditional Western calendars • What is the Locale class? - The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region • What is the SimpleTimeZone class? - The SimpleTimeZone class provides support for a Gregorian calendar • What is the Map interface? - The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values • What is the highest-level event class of the event-delegation model? - The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy • What is the Collection interface? - The Collection interface provides support for the implementation of a mathematical bag - an unordered collection of objects that may contain duplicates
• What is the Set interface? - The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements • What is the purpose of the enableEvents() method? - The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods. • What is the ResourceBundle class? - The ResourceBundle class is used to store locale-specific resources that can be loaded by a program to tailor the program's appearance to the particular locale in which it is being run. • What is the difference between yielding and sleeping? - When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state. • When a thread blocks on I/O, what state does it enter? - A thread enters the waiting state when it blocks on I/O. • When a thread is created and started, what is its initial state? - A thread is in the ready state after it has been created and started. • What invokes a thread's run() method? - After a thread is started, via its start() method or that of the Thread class, the JVM invokes the thread's run() method when the thread is initially executed. Continue reading this article. About the Author: Vaibhav Pandey got offered employment from an Indian Multinational IT Company. He is 21 years old. He has a huge interest in Java programming and has liked it from his study days. Vaibhav loves to blog and share his experiences and thoughts. He now resides in Lucknow, a state capital in India. Check out his blog at http://javatutorialsworld.blogspot.com. |
|
|
|
|
-- SysAdminNews is an iEntry, Inc. publication -- iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 2009 iEntry, Inc. All Rights Reserved Privacy Policy Legal archives | advertising info | news headlines | free newsletters | comments/feedback | submit article |