<< < 13 14 15 16 17 18 19 20 21 22 23 > >>   Sort: Date

What is the ResourceBundle class?
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.
2013-01-18, 2045👍, 0💬

What is the difference between a Choice and a List?
What is the difference between a Choice and a List? A Choice is displayed in a compact form that requires you to pull it down to see the list of available choices. Only one item may be selected from a Choice. A List may be displayed in such a way that several List items are visible. A List supports ...
2012-12-24, 2045👍, 0💬

How can a dead thread be restarted?
How can a dead thread be restarted? A dead thread cannot be restarted.
2013-01-15, 2044👍, 0💬

What modifiers may be used with an interface declaration?
What modifiers may be used with an interface declaration? An interface may be declared as public or abstract.
2012-12-04, 2043👍, 0💬

Which class is extended by all other classes?
Which class is extended by all other classes? The Object class is extended by all other classes.
2012-11-12, 2043👍, 0💬

What are some alternatives to inheritance?
What are some alternatives to inheritance? Delegation is an alternative to inheritance. Delegation means that you include an instance of another class as an instance variable, and forward messages to the instance. It is often safer than inheritance because it forces you to think about each message y...
2013-02-08, 2040👍, 0💬

What is the purpose of the Runtime class?
What is the purpose of the Runtime class? The purpose of the Runtime class is to provide access to the Java runtime system.
2012-10-22, 2040👍, 0💬

In which package are most of the AWT events that support the event-delegation model defined?
In which package are most of the AWT events that support the event-delegation model defined? Most of the AWT-related events of the event-delegation model are defined in the java.awt.event package. The AWTEvent class is defined in the java.awt package.
2012-10-16, 2040👍, 0💬

Can you make an instance of an abstract class? For example - java.util.Calender is an abstract class with a method getInstance()
Can you make an instance of an abstract class? For example - java.util.Calender is an abstract class with a method getInstance() which returns an instance of the Calender class. No! You cannot make an instance of an abstract class. An abstract class has to be sub-classed. If you have an abstract cla...
2012-08-21, 2040👍, 0💬

How does multithreading take place on a computer with a single CPU?
How does multithreading take place on a computer with a single CPU? The operating system's task scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks, it creates the impression that tasks execute sequentially.
2012-12-14, 2039👍, 0💬

What are pass by reference and passby value?
What are pass by reference and passby value? Pass By Reference means the passing the address itself rather than passing the value. Passby Value means passing a copy of the value to be passed.
2013-04-24, 2038👍, 0💬

What are the high-level thread states?
What are the high-level thread states? The high-level thread states are ready, running, waiting, and dead.
2012-11-02, 2037👍, 0💬

Can main() method be overloaded?
Can main() method be overloaded? Yes. the main() method is a special method for a program entry. You can overload main() method in any ways. But if you change the signature of the main method, the entry point for the program will be gone.
2013-02-25, 2036👍, 0💬

What is covariant return type?
What is covariant return type? A covariant return type lets you override a superclass method with a return type that subtypes the superclass method's return type. So we can use covariant return types to minimize upcasting and downcasting. class Parent { Parent foo () { System.out.println ("Parent fo...
2013-03-07, 2034👍, 0💬

What is your platform's default character encoding?
What is your platform's default character encoding? If you are running Java on English Windows platforms, it is probably Cp1252. If you are running Java on English Solaris platforms, it is most likely 8859_1..
2013-01-09, 2034👍, 0💬

Which class should you use to obtain design information about an object?
Which class should you use to obtain design information about an object? The Class class is used to obtain information about an object's design.
2012-11-30, 2034👍, 0💬

How to create custom exceptions?
How to create custom exceptions? Your class should extend class Exception, or some more specific type thereof.
2013-05-29, 2033👍, 0💬

What is the Collection interface?
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.
2012-12-10, 2033👍, 0💬

What's the difference between a queue and a stack?
What's the difference between a queue and a stack? Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule
2013-04-12, 2032👍, 0💬

What is a Concurrent Low Pause Collector?
What is a Concurrent Low Pause Collector? The concurrent low pause collector is a generational collector similar to the default collector. The tenured generation is collected concurrently with this collector. This collector attempts to reduce the pause times needed to collect the tenured generation....
2013-03-26, 2032👍, 0💬

What is Data Access Object pattern?
What is Data Access Object pattern? The Data Access Object (or DAO) pattern: separates a data resource's client interface from its data access mechanisms adapts a specific data resource's access API to a generic client interface The DAO pattern allows data access mechanisms to change independently o...
2013-03-15, 2030👍, 0💬

What is the purpose of garbage collection?
What is the purpose of garbage collection? The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources may be reclaimed and reused.
2013-01-11, 2030👍, 0💬

What interface is extended by AWT event listeners?
What interface is extended by AWT event listeners? All AWT event listeners extend the java.util.EventListener interface.
2013-01-14, 2027👍, 0💬

How can the Checkbox class be used to create a radio button?
How can the Checkbox class be used to create a radio button? By associating Checkbox objects with a CheckboxGroup.
2012-12-18, 2027👍, 0💬

<< < 13 14 15 16 17 18 19 20 21 22 23 > >>   Sort: Date