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

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

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

What is the difference between a break statement and a continue statement?
What is the difference between a break statement and a continue statement? A break statement results in the termination of the statement to which it applies (switch, for, do, or while). A continue statement is used to end the current loop iteration and return control to the loop statement.
2012-10-26, 2348👍, 0💬

Which class is the immediate superclass of the Container class?
Which class is the immediate superclass of the Container class? Component
2012-12-17, 2345👍, 0💬

What is the return type of a program's main() method?
What is the return type of a program's main() method? A program's main() method has a void return type.
2012-12-21, 2343👍, 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, 2342👍, 0💬

What is the GregorianCalendar class?
What is the GregorianCalendar class? The GregorianCalendar provides support for traditional Western calendars.
2012-10-19, 2342👍, 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, 2342👍, 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, 2340👍, 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, 2340👍, 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, 2339👍, 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, 2336👍, 0💬

What are the Object and Class classes used for?
What are the Object and Class classes used for? The Object class is the highest-level class in the Java class hierarchy. The Class class is used to represent the classes and interfaces that are loaded by a Java program.
2012-08-08, 2335👍, 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, 2334👍, 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, 2333👍, 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, 2332👍, 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, 2332👍, 0💬

What is numeric promotion?
What is numeric promotion? Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to int values. The int values are also converted to long...
2013-01-21, 2329👍, 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, 2328👍, 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, 2327👍, 0💬

Which Java operator is right associative?
Which Java operator is right associative? The = operator is right associative.
2012-10-24, 2326👍, 0💬

State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of
State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers. public : Public class is visible in other packages, field is visible everywhere (class must be public t...
2013-04-30, 2322👍, 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, 2321👍, 0💬

Why do threads block on I/O?
Why do threads block on I/O? Threads block on i/o (that is enters the waiting state) so that other threads may execute while the i/o Operation is performed.
2013-02-12, 2321👍, 0💬

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