<< < 15 16 17 18 19 20 21 22 23 24 25 > >>   Sort: Date

What is static in java?
What is static in java? Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, an...
2013-05-01, 2003👍, 0💬

What is the purpose of a statement block?
What is the purpose of a statement block? A statement block is used to organize a sequence of statements as a single statement group.
2013-01-24, 2001👍, 0💬

Describe synchronization in respect to multithreading.
Describe synchronization in respect to multithreading. With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the pro...
2013-04-23, 2000👍, 0💬

What class allows you to read objects directly from a stream?
What class allows you to read objects directly from a stream? The ObjectInputStream class supports the reading of objects from input streams.
2012-12-25, 2000👍, 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, 1999👍, 0💬

Explain different way of using thread?
Explain different way of using thread? The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.
2013-04-24, 1999👍, 0💬

Can Java code be compiled to machine dependent executable file?
Can Java code be compiled to machine dependent executable file? Yes. There are many tools out there. If you did so, the generated exe file would be run in the specific platform, not cross-platform.
2013-04-06, 1999👍, 0💬

Is sizeof a keyword?
Is sizeof a keyword? The sizeof operator is not a keyword in Java.
2013-04-11, 1997👍, 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, 1996👍, 0💬

What is the difference between the Boolean & operator and the && operator?
What is the difference between the Boolean & operator and the && operator? If an expression involving the Boolean & operator is evaluated, both operands are evaluated. Then the & operator is applied to the operand. When an expression involving the && operator is evaluated...
2012-10-18, 1996👍, 0💬

Explain the Polymorphism principle
Explain the Polymorphism principle The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of polymorphism ...
2013-03-01, 1995👍, 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, 1995👍, 0💬

How are the elements of a GridBagLayout organized?
How are the elements of a GridBagLayout organized? The elements of a GridBagLayout are organized according to a grid. However, the elements are of different sizes and may occupy more than one row or column of the grid. In addition, the rows and columns may have different sizes.
2012-12-07, 1994👍, 0💬

What is the Map interface?
What is the Map interface? The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values.
2012-11-26, 1994👍, 0💬

What is the main difference between Java platform and other platforms?
What is the main difference between Java platform and other platforms? The Java platform differs from most other platforms in that it's a software-only platform that runs on top of other hardware-based platforms. The Java platform has three elements: Java programming language The Java Virtual Machin...
2013-02-19, 1993👍, 0💬

What modifiers are allowed for methods in an Interface?
What modifiers are allowed for methods in an Interface? Only public and abstract modifiers are allowed for methods in interfaces.
2013-02-06, 1992👍, 0💬

What is the purpose of garbage collection in Java, and when is it used?
What is the purpose of garbage collection in Java, and when is it used? The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unre...
2013-04-23, 1989👍, 0💬

How are the elements of a GridLayout organized?
How are the elements of a GridLayout organized? The elements of a GridBad layout are of equal size and are laid out using the squares of a grid.
2013-01-01, 1988👍, 0💬

How are this and super used?
How are this and super used? this is used to refer to the current object instance. super is used to refer to the variables and methods of the superclass of the current object instance.
2013-01-10, 1985👍, 0💬

What state is a thread in when it is executing?
What state is a thread in when it is executing? An executing thread is in the running state.
2012-12-31, 1985👍, 0💬

What class of exceptions are generated by the Java run-time system?
What class of exceptions are generated by the Java run-time system? The Java runtime system generates RuntimeException and Error exceptions.
2012-12-24, 1985👍, 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, 1984👍, 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, 1984👍, 0💬

What are three ways in which a thread can enter the waiting state?
What are three ways in which a thread can enter the waiting state? A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O, by unsuccessfully attempting to acquire an object's lock, or by invoking an object's wait() method. It can also enter the waiting state by invok...
2013-01-17, 1984👍, 0💬

<< < 15 16 17 18 19 20 21 22 23 24 25 > >>   Sort: Date