<< < 10 11 12 13 14 15 16 17 18 19 20 > >>   Sort: Date

Where and how can you use a private constuctor.
Where and how can you use a private constuctor. Private constructor can be used if you do not want any other class to instanstiate it by using new. The instantiation is done from a static public method, which is used when dealing with the factory method pattern.
2012-08-17, 2136👍, 0💬

Which Container method is used to cause a container to be laid out and redisplayed?
Which Container method is used to cause a container to be laid out and redisplayed? validate()
2012-10-22, 2135👍, 0💬

How to check two arrays to see if contents have the same types and contain the same elements?
How to check two arrays to see if contents have the same types and contain the same elements? One of options is to use the equals() method of Arrays class. Arrays.equals(a, b); If the array types are different, a compile-time error will happen.
2012-09-06, 2134👍, 0💬

Which containers may have a MenuBar?
Which containers may have a MenuBar? Frame
2012-10-30, 2133👍, 0💬

What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1?
What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1? The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model, components are required to handle their own events. If they do not handle a particular event, the ev...
2012-12-27, 2131👍, 0💬

What is the purpose of the wait(), notify(), and notifyAll() methods?
What is the purpose of the wait(), notify(), and notifyAll() methods? The wait(),notify(), and notifyAll() methods are used to provide an efficient way for threads to wait for a shared resource. When a thread executes an object's wait() method, it enters the waiting state. It only enters the ready s...
2012-10-31, 2126👍, 0💬

What are wrapper classes?
What are wrapper classes? Wrapper classes are classes that allow primitive types to be accessed as objects.
2012-10-01, 2126👍, 0💬

Which containers use a FlowLayout as their default layout?
Which containers use a FlowLayout as their default layout? The Panel and Applet classes use the FlowLayout as their default layout.
2012-09-20, 2125👍, 0💬

How are Java source code files named?
How are Java source code files named? A Java source code file takes the name of a public class or interface that is defined within the file. A source code file may contain at most one public class or interface. If a public class or interface is defined within a source code file, then the source code...
2012-11-01, 2122👍, 0💬

How many times may an object's finalize() method be invoked by the garbage collector?
How many times may an object's finalize() method be invoked by the garbage collector? An object's finalize() method may only be invoked once by the garbage collector.
2012-10-23, 2122👍, 0💬

Can an anonymous class be declared as implementing an interface and extending a class?
Can an anonymous class be declared as implementing an interface and extending a class? An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.
2012-10-15, 2122👍, 0💬

How are commas used in the initialization and iteration parts of a for statement?
How are commas used in the initialization and iteration parts of a for statement? Commas are used to separate multiple statements within the initialization and iteration parts of a for statement.
2012-10-31, 2120👍, 0💬

What is the purpose of finalization?
What is the purpose of finalization? The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.
2012-10-17, 2120👍, 0💬

What is the Collections API?
What is the Collections API? The Collections API is a set of classes and interfaces that support operations on collections of objects.
2012-09-21, 2120👍, 0💬

To what value is a variable of the String type automatically initialized
To what value is a variable of the String type automatically initialized The default value of a String type is null.
2012-10-10, 2119👍, 0💬

Which java.util classes and interfaces support event handling?
Which java.util classes and interfaces support event handling? The EventObject class and the EventListener interface support event processing.
2012-09-28, 2116👍, 0💬

What is the SimpleTimeZone class?
What is the SimpleTimeZone class? The SimpleTimeZone class provides support for a Gregorian calendar.
2012-11-16, 2113👍, 0💬

If my class already extends from some other class what should I do if I want an instance of my class to be thrown as an exceptio
If my class already extends from some other class what should I do if I want an instance of my class to be thrown as an exception object? One can not do anytihng in this scenarion. Because Java does not allow multiple inheritance and does not provide any exception interface as well.
2013-05-30, 2112👍, 0💬

Which Container method is used to cause a container to be laid out and redisplayed?
Which Container method is used to cause a container to be laid out and redisplayed? validate()
2013-04-12, 2112👍, 0💬

which characters may be used as the second character of an identifier, but not as the first character of an identifier?
which characters may be used as the second character of an identifier, but not as the first character of an identifier? The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.
2012-09-21, 2111👍, 0💬

Does a class inherit the constructors of its superclass?
Does a class inherit the constructors of its superclass? A class does not inherit constructors from any of its super classes.
2012-11-26, 2110👍, 0💬

What is the Dictionary class?
What is the Dictionary class? The Dictionary class provides the capability to store key-value pairs.
2012-11-08, 2110👍, 0💬

Does garbage collection guarantee that a program will not run out of memory?
Does garbage collection guarantee that a program will not run out of memory? Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create obje...
2012-10-02, 2110👍, 0💬

What is the List interface?
What is the List interface? The List interface provides support for ordered collections of objects.
2013-04-10, 2105👍, 0💬

<< < 10 11 12 13 14 15 16 17 18 19 20 > >>   Sort: Date