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

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, 2378👍, 0💬

What is the difference between a Scrollbar and a ScrollPane?
What is the difference between a Scrollbar and a ScrollPane? A Scrollbar is a Component, but not a Container. A ScrollPane is a Container. A ScrollPane handles its own events and performs its own scrolling.
2013-04-05, 2375👍, 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, 2374👍, 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, 2372👍, 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, 2371👍, 0💬

What is native code?
What is native code? The native code is code that after you compile it, the compiled code runs on a specific hardware platform.
2013-02-21, 2371👍, 0💬

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, 2371👍, 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, 2370👍, 0💬

What is the difference between preemptive scheduling and time slicing?
What is the difference between preemptive scheduling and time slicing? Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and the...
2012-10-04, 2369👍, 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, 2366👍, 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, 2366👍, 0💬

What is transient variable?
What is transient variable? Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can't be written to the stream instead when the class is retrieved from the ObjectStrea...
2013-03-29, 2361👍, 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...
2013-06-06, 2360👍, 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, 2359👍, 0💬

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

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

Is Java code slower than native code?
Is Java code slower than native code? Not really. As a platform-independent environment, the Java platform can be a bit slower than native code. However, smart compilers, well-tuned interpreters, and just-in-time bytecode compilers can bring performance close to that of native code without threateni...
2013-02-22, 2355👍, 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, 2355👍, 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, 2355👍, 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, 2355👍, 0💬

What is final?
What is final? A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable (is a constant).
2013-05-01, 2354👍, 0💬

What is a layout manager?
What is a layout manager? A layout manager is an object that is used to organize components in a container.
2013-01-16, 2353👍, 0💬

When is an object subject to garbage collection?
When is an object subject to garbage collection? An object is subject to garbage collection when it becomes unreachable to the program in which it is used.
2013-01-29, 2352👍, 0💬

What if the main method is declared as private?
What if the main method is declared as private? The program compiles properly but at runtime it will give "Main method not public." message.
2013-05-02, 2350👍, 0💬

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