<< < 138 139 140 141 142 143 144 145 146 147 148 > >>   Sort: Date

What are checked exceptions?
What are checked exceptions? Checked exception are those which the Java compiler forces you to catch. e.g. IOException are checked Exceptions.
2013-05-28, 2295👍, 0💬

Does Java pass by Value or reference?
Does Java pass by Value or reference? Its uses Reference while manipulating objects but pass by value when sending method arguments. Those who feel why I added this simple question in this section while claiming to be maintaining only strong and interesting questions, go ahead and answer following q...
2013-03-20, 2295👍, 0💬

What are Checked and UnChecked Exception?
What are Checked and UnChecked Exception? A checked exception is some subclass of Exception (or Exception itself), excluding class RuntimeException and its subclasses. Making an exception checked forces client programmers to deal with the possibility that the exception will be thrown. eg, IOExceptio...
2013-05-10, 2294👍, 0💬

What is a void return type?
What is a void return type? A void return type indicates that a method does not return a value.
2013-01-07, 2293👍, 0💬

Can an application have multiple classes having main method?
Can an application have multiple classes having main method? Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose name you have mentioned. Hence there is not conflict amongst the multiple classes having ...
2013-05-08, 2292👍, 0💬

When to Use the Incremental Low Pause Collector?
When to Use the Incremental Low Pause Collector? Use the incremental low pause collector when your application can afford to trade longer and more frequent young generation garbage collection pauses for shorter tenured generation pauses. A typical situation is one in which a larger tenured generatio...
2013-03-28, 2292👍, 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, 2292👍, 0💬

You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK
You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be used? You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be ...
2014-03-17, 2291👍, 0💬

How to turn on Perl warnings? Why is that important?
How to turn on Perl warnings? Why is that important? Perl is very forgiving of strange and sometimes wrong code, which can mean hours spent searching for bugs and weird results. Turning on warnings helps uncover common mistakes and strange places and save a lot of debugging time in the long run. The...
2013-08-27, 2291👍, 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, 2291👍, 0💬

What is the difference between a while statement and a do statement?
What is the difference between a while statement and a do statement? A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will alw...
2012-12-07, 2290👍, 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, 2289👍, 0💬

What are the high-level thread states?
What are the high-level thread states? The high-level thread states are ready, running, waiting, and dead.
2012-11-02, 2289👍, 0💬

Difference between Vector and ArrayList?
Difference between Vector and ArrayList? Vector is synchronized whereas arraylist is not.
2013-04-26, 2288👍, 0💬

When and How is an object considered as Garbage by a GC?
When and How is an object considered as Garbage by a GC? An object is considered garbage when it can no longer be reached from any pointer in the running program. The most straightforward garbage collection algorithms simply iterate over every reachable object. Any objects left over are then conside...
2013-03-21, 2288👍, 0💬

What is Service Locator pattern?
What is Service Locator pattern? The Service Locator pattern locates J2EE (Java 2 Platform, Enterprise Edition) services for clients and thus abstracts the complexity of network operation and J2EE service lookup as EJB (Enterprise JavaBean) Home and JMS (Java Message Service) component factories. Th...
2013-03-14, 2288👍, 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, 2288👍, 0💬

What type of code (server or client) is found in a Code-Behind class?
What type of code (server or client) is found in a Code-Behind class? C#
2014-01-16, 2287👍, 0💬

Why do you use Perl?
Why do you use Perl? Perl is a powerful free interpreter. Perl is portable, flexible and easy to learn.
2013-08-21, 2287👍, 0💬

What are generations in Garbage Collection terminolgy? What is its relevance?
What are generations in Garbage Collection terminolgy? What is its relevance? Garbage Collectors make assumptions about how our application runs. Most common assumption is that an object is most likely to die shortly after it was created: called infant mortality. This assumes that an object that has...
2013-03-22, 2287👍, 0💬

Explain the different forms of Polymorphism
Explain the different forms of Polymorphism From a practical programming viewpoint, polymorphism exists in three distinct forms in Java: Method overloading Method overriding through inheritance Method overriding through the Java interface
2013-03-04, 2286👍, 0💬

What is the Java API?
What is the Java API? The Java API is a large collection of ready-made software components that provide many useful capabilities, such as graphical user interface (GUI) widgets.
2013-02-20, 2286👍, 0💬

What is the difference between an if statement and a switch statement?
What is the difference between an if statement and a switch statement? The if statement is used to select among two alternatives. It uses a boolean expression to decide which alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an int expression...
2013-02-01, 2286👍, 0💬

What is AggressiveHeap?
What is AggressiveHeap? The -XX:+AggressiveHeap option inspects the machine resources (size of memory and number of processors) and attempts to set various parameters to be optimal for long-running, memory allocation-intensive jobs. It was originally intended for machines with large amounts of memor...
2013-03-26, 2285👍, 0💬

<< < 138 139 140 141 142 143 144 145 146 147 148 > >>   Sort: Date