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

What is the purpose of the enableEvents() method?
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 th...
2013-01-07, 2375👍, 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, 2375👍, 0💬

Name three Component subclasses that support painting.
Name three Component subclasses that support painting. The Canvas, Frame, Panel, and Applet classes support painting.
2012-10-04, 2375👍, 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, 2374👍, 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, 2374👍, 0💬

When to Use the Concurrent Low Pause Collector?
When to Use the Concurrent Low Pause Collector? Use the concurrent low pause collector if your application would benefit from shorter garbage collector pauses and can afford to share processor resources with the garbage collector when the application is running. Typically applications which have a r...
2013-03-27, 2373👍, 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-06-19, 2371👍, 0💬

How can I customize the seralization process? i.e. how can one have a control over the serialization process?
How can I customize the seralization process? i.e. how can one have a control over the serialization process? Yes it is possible to have control over serialization process. The class should implement Externalizable interface. This interface contains two methods namely readExternal and writeExternal....
2013-05-21, 2371👍, 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, 2370👍, 0💬

What is the GregorianCalendar class?
What is the GregorianCalendar class? The GregorianCalendar provides support for traditional Western calendars.
2012-10-19, 2369👍, 0💬

What happens if an exception is not caught?
What happens if an exception is not caught? An uncaught exception results in the uncaughtException() method of the thread's ThreadGroup being invoked, which eventually results in the termination of the program in which it is thrown.
2013-01-15, 2365👍, 0💬

What is the difference between yielding and sleeping?
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.
2012-09-28, 2365👍, 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, 2364👍, 0💬

Can I have multiple main methods in the same class?
Can I have multiple main methods in the same class? No the program fails to compile. The compiler says that the main method is already defined in the class.
2013-05-08, 2359👍, 0💬

What are the different ways to handle exceptions?
What are the different ways to handle exceptions? There are two ways to handle exceptions, 1. By wrapping the desired code in a try block followed by a catch block to catch the exceptions. and 2. List the desired exceptions in the throws clause of the method and let the caller of the method hadle th...
2013-05-31, 2358👍, 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, 2358👍, 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, 2358👍, 0💬

What modifiers may be used with an inner class that is a member of an outer class?
What modifiers may be used with an inner class that is a member of an outer class? A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.
2012-09-25, 2358👍, 0💬

What is the difference between declaring a variable and defining a variable?
What is the difference between declaring a variable and defining a variable? In declaration we just mention the type of the variable and it's name. We do not initialize it. But defining means declaration + initialization. e.g String s; is just a declaration while String s = new String ("abcd"); Or S...
2013-05-14, 2356👍, 0💬

What is the difference between a public and a non-public class?
What is the difference between a public and a non-public class? A public class may be accessed outside of its package. A non-public class may not be accessed outside of its package.
2013-01-22, 2356👍, 0💬

What classes of exceptions may be caught by a catch clause?
What classes of exceptions may be caught by a catch clause? A catch clause can catch any exception that may be assigned to the Throwable type. This includes the Error and Exception types.
2012-11-15, 2356👍, 0💬

What environment variables do I need to set on my machine in order to be able to run Java programs?
What environment variables do I need to set on my machine in order to be able to run Java programs? CLASSPATH and PATH are the two variables.
2013-05-07, 2354👍, 0💬

What are E and PI?
What are E and PI? E is the base of the natural logarithm and PI is mathematical value pi.
2013-01-04, 2354👍, 0💬

What is the range of the char type?
What is the range of the char type? The range of the char type is 0 to 2^16 - 1.
2012-10-16, 2354👍, 0💬

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