<< < 2 3 4 5 6 7 8 9 10 11 12 > >>   Sort: Rank

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

When to Use the Throughput Collector?
When to Use the Throughput Collector? Use the throughput collector when you want to improve the performance of your application with larger numbers of processors. In the default collector garbage collection is done by one thread, and therefore garbage collection adds to the serial execution time of ...
2013-03-25, 1883👍, 0💬

What is a Throughput Collector?
What is a Throughput Collector? The throughput collector is a generational collector similar to the default collector but with multiple threads used to do the minor collection. The major collections are essentially the same as with the default collector. By default on a host with N CPUs, the through...
2013-03-25, 1851👍, 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, 1897👍, 0💬

Can we force Garbage collection?
Can we force Garbage collection? java follows a philosophy of automatic garbage collection, you can suggest or encourage the JVM to perform garbage collection but you can not force it. Once a variable is no longer referenced by anything it is available for garbage collection. You can suggest garbage...
2013-03-22, 1823👍, 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, 1890👍, 0💬

Why Thread is faster compare to process?
Why Thread is faster compare to process? A thread is never faster than a process. If you run a thread(say there's a process which has spawned only one thread) in one JVM and a process in another and that both of them require same resources then both of them would take same time to execute. But, when...
2013-03-21, 1928👍, 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, 1936👍, 0💬

Name few Garbage collection algorithms?
Name few Garbage collection algorithms? Here they go: Mark and Sweep Reference counting Tracing collectors Copying collectors Heap compaction Mark-compact collectors
2013-03-20, 1863👍, 0💬

What are class members and Instance members?
What are class members and Instance members? Any global members(Variables, methods etc.) which are static are called as Class level members and those which are non-static are called as Instance level members.
2013-03-19, 1858👍, 0💬

How is static Synchronization different form non-static synchronization?
How is static Synchronization different form non-static synchronization? When Synchronization is applied on a static Member or a static block, the lock is performed on the Class and not on the Object, while in the case of a Non-static block/member, lock is applied on the Object and not on class. [Tr...
2013-03-19, 1851👍, 0💬

Can we make an EJB singleton?
Can we make an EJB singleton? This is a debatable question, and for every answer we propose there can be contradictions. I propose 2 solutions fo the same. Remember that EJB's are distributed componenets and can be deployed on different JVM's in a Distributed environment i) Follow the steps as given...
2013-03-18, 1935👍, 0💬

How can we make a class Singleton
How can we make a class Singleton A) If the class is Serializable class Singleton implements Serializable { private static Singleton instance; private Singleton() { } public static synchronized Singleton getInstance() { if (instance == null) instance = new Singleton(); return instance; } /** If the ...
2013-03-18, 1846👍, 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, 2024👍, 0💬

What is Session Facade pattern?
What is Session Facade pattern? Session facade is one design pattern that is often used while developing enterprise applications. It is implemented as a higher level component (i.e.: Session EJB), and it contains all the iteractions between low level components (i.e.: Entity EJB). It then provides a...
2013-03-15, 1864👍, 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, 1944👍, 0💬

What are ClassLoaders?
What are ClassLoaders? A class loader is an object that is responsible for loading classes. The class ClassLoader is an abstract class. Given the name of a class, a class loader should attempt to locate or generate data that constitutes a definition for the class. A typical strategy is to transform ...
2013-03-14, 1874👍, 0💬

What is JIT?
What is JIT? JIT stands for Just In Time compiler. It compiles java byte code to native code.
2013-03-13, 1918👍, 0💬

What is JVM?
What is JVM? JVM stands for Java Virtual Machine. It is the run time for java programs. All are java programs are running inside this JVM only. It converts java byte code to OS specific commands. In addition to governing the execution of an application's byte codes, the virtual machine handles relat...
2013-03-13, 1927👍, 0💬

What are the restrictions placed on static method ?
What are the restrictions placed on static method ? We cannot override static methods. We cannot access any object variables inside static method. Also the this reference also not available in static methods.
2013-03-12, 1876👍, 0💬

What are tag interfaces?
What are tag interfaces? Tag interface is an alternate name for marker interface.
2013-03-12, 1828👍, 0💬

What is a marker interface ?
What is a marker interface ? An interface that contains no methods. Eg: Serializable, Cloneable, SingleThreadModel etc. It is used to just mark java classes that support certain capability.
2013-03-11, 1878👍, 0💬

What will be the output on executing the following code...
What will be the output on executing the following code... What will be the output on executing the following code. public class MyClass { public static void main (String args[] ) { int abc[] = new int [5]; System.out.println(abc[0]); } } A Error array not initialized B 5 C 0 D Print some junk chara...
2013-03-11, 1875👍, 0💬

<< < 2 3 4 5 6 7 8 9 10 11 12 > >>   Sort: Rank