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

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

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

What an I/O filter?
What an I/O filter? An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.
2013-01-02, 2312👍, 0💬

What is the range of the short type?
What is the range of the short type? The range of the short type is -(2^15) to 2^15 - 1.
2012-10-15, 2312👍, 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, 2311👍, 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.
2013-02-14, 2311👍, 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, 2309👍, 0💬

What invokes a thread's run() method?
What invokes a thread's run() method? After a thread is started, via its start() method or that of the Thread class, the JVM invokes the thread's run() method when the thread is initially executed.
2012-10-18, 2309👍, 0💬

What is serialization?
What is serialization? Serialization is a mechanism by which you can save the state of an object by converting it to a byte stream.
2013-05-17, 2308👍, 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, 2308👍, 0💬

If a class is declared without any access modifiers, where may the class be accessed?
If a class is declared without any access modifiers, where may the class be accessed? A class that is declared without any access modifiers is said to have package access. This means that the class can only be accessed by other classes and interfaces that are defined within the same package.
2012-11-16, 2308👍, 0💬

If a variable is declared as private, where may the variable be accessed?
If a variable is declared as private, where may the variable be accessed? A private variable may only be accessed within the class in which it is declared.
2012-11-07, 2308👍, 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, 2307👍, 0💬

What state does a thread enter when it terminates its processing?
What state does a thread enter when it terminates its processing? When a thread terminates its processing, it enters the dead state.
2013-04-09, 2306👍, 0💬

What is the Vector class?
What is the Vector class? The Vector class provides the capability to implement a growable array of objects
2012-09-25, 2306👍, 0💬

What must a class do to implement an interface?
What must a class do to implement an interface? It must provide all of the methods in the interface and identify the interface in its implements clause.
2012-10-26, 2305👍, 0💬

What is synchronization and why is it important?
What is synchronization and why is it important? With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of...
2013-06-05, 2304👍, 0💬

Which class is the immediate superclass of the MenuComponent class.
Which class is the immediate superclass of the MenuComponent class. Object
2012-10-17, 2303👍, 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.
2013-04-10, 2302👍, 0💬

To what value is a variable of the boolean type automatically initialized?
To what value is a variable of the boolean type automatically initialized? The default value of the boolean type is false.
2013-01-22, 2301👍, 0💬

What is a Concurrent Low Pause Collector?
What is a Concurrent Low Pause Collector? The concurrent low pause collector is a generational collector similar to the default collector. The tenured generation is collected concurrently with this collector. This collector attempts to reduce the pause times needed to collect the tenured generation....
2013-03-26, 2297👍, 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, 2296👍, 0💬

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