Thursday, October 25, 2007

Java EJB Interview questions Part16


54. What is the GregorianCalendar class?
The GregorianCalendar provides support for traditional Western calendars.
________________________________________
55. What is the SimpleTimeZone class?
The SimpleTimeZone class provides support for a Gregorian calendar.
________________________________________
56. Which Container method is used to cause a container to be laid out and redisplayed?
validate()
________________________________________
57. What is the Properties class?
The properties class is a subclass of Hashtable that can be read from or written to a stream. It also provides the capability to specify a set of default values to be used.
________________________________________
58. What is the purpose of the Runtime class?
The purpose of the Runtime class is to provide access to the Java runtime system.
________________________________________
59. What is the purpose of the System class?
The purpose of the System class is to provide access to system resources.
________________________________________
60. What is the purpose of the finally clause of a try-catch-finally statement?
The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.
________________________________________
61. 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.
________________________________________
62. What must a class do to implement an interface?
It must provide all of the methods in the interface and identify the interface in its implements clause.
________________________________________
63. What is an abstract method?
An abstract method is a method whose implementation is deferred to a subclass. Or, a method that has no implementation (an interface of a method).
________________________________________

0 comments:

Advertisement

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com