<< < 133 134 135 136 137 138 139 140 141 142 143 > >>   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, 2242👍, 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, 2242👍, 0💬

What is the difference between the &gt&gt and &gt&gt&gt operators?
What is the difference between the &gt&gt and &gt&gt&gt operators? The &gt&gt operator carries the sign bit when shifting right. The &gt&gt&gt zero-fills bits that have been shifted out.
2012-09-26, 2241👍, 0💬

What is tunnelling?
What is tunnelling? Tunnelling is a route to somewhere. For example, RMI tunnelling is a way to make RMI application get through firewall. In CS world, tunnelling means a way to transfer data.
2013-04-05, 2240👍, 0💬

What is covariant return type?
What is covariant return type? A covariant return type lets you override a superclass method with a return type that subtypes the superclass method's return type. So we can use covariant return types to minimize upcasting and downcasting. class Parent { Parent foo () { System.out.println ("Parent fo...
2013-03-07, 2238👍, 0💬

How to Retrieve Warnings?
How to Retrieve Warnings? SQLWarning objects are a subclass of SQLException that deal with database access warnings. Warnings do not stop the execution of an application, as exceptions do; they simply alert the user that something did not happen as planned. A warning can be reported on a Connection ...
2013-07-15, 2236👍, 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, 2236👍, 0💬

What is the difference between a Window and a Frame?
What is the difference between a Window and a Frame? The Frame class extends Window to define a main application window that can have a menu bar.
2012-11-09, 2235👍, 0💬

Can a private method of a superclass be declared within a subclass?
Can a private method of a superclass be declared within a subclass? Sure. A private field or method or inner class belongs to its declared class and hides from its subclasses. There is no way for private stuff to have a runtime overloading or overriding (polymorphism) features.
2012-08-31, 2234👍, 0💬

How are Observer and Observable used?
How are Observer and Observable used? Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by obje...
2013-06-05, 2233👍, 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, 2233👍, 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, 2233👍, 0💬

What is Data Access Object pattern?
What is Data Access Object pattern? The Data Access Object (or DAO) pattern: separates a data resource's client interface from its data access mechanisms adapts a specific data resource's access API to a generic client interface The DAO pattern allows data access mechanisms to change independently o...
2013-03-15, 2233👍, 0💬

What is the ResourceBundle class?
What is the ResourceBundle class? The ResourceBundle class is used to store locale-specific resources that can be loaded by a program to tailor the program's appearance to the particular locale in which it is being run.
2013-01-18, 2233👍, 0💬

What modifiers may be used with an interface declaration?
What modifiers may be used with an interface declaration? An interface may be declared as public or abstract.
2012-12-04, 2233👍, 0💬

What is the Locale class?
What is the Locale class? The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.
2013-06-11, 2232👍, 0💬

What is the basic difference between the 2 approaches to exception handling.
520. What is the basic difference between the 2 approaches to exception handling. 1. try catch block and 2. specifying the candidate exceptions in the throws clause? When should you use which approach? In the first approach as a programmer of the method, you urself are dealing with the exception. Th...
2013-06-03, 2232👍, 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, 2232👍, 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, 2230👍, 0💬

What are synchronized methods and synchronized statements?
What are synchronized methods and synchronized statements? Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized ...
2013-06-13, 2228👍, 0💬

Do not use the String contatenation operator in lengthy loops or other places where performance could suffer. Is that true?
Do not use the String contatenation operator in lengthy loops or other places where performance could suffer. Is that true? Yes.
2013-04-08, 2228👍, 0💬

What is a platform?
What is a platform? A platform is the hardware or software environment in which a program runs. Most platforms can be described as a combination of the operating system and hardware, like Windows 2000 and XP, Linux, Solaris, and MacOS.
2013-03-29, 2227👍, 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, 2225👍, 0💬

If I want an object of my class to be thrown as an exception object, what should I do?
If I want an object of my class to be thrown as an exception object, what should I do? The class should extend from Exception class. Or you can extend your class from some more precise exception type also.
2013-05-30, 2223👍, 0💬

<< < 133 134 135 136 137 138 139 140 141 142 143 > >>   Sort: Date