Extreme-java - extreme-java.com

General Information:

Latest News:

Struts2 File Upload Example 30 May 2012 | 04:03 am

Uploading files from user’s machine to server is not a straight task and needs some work to be done regarding the transfer of data and the naming of file to be uploaded. In this Struts tutorial, we sh...

What are the steps followed before loading a class into memory? 22 May 2012 | 04:39 am

The steps followed by JVM to load a class into memory are: 1. The classes are loaded as and when they are referenced in a program. In case of inheritance, the super class is loaded before loading the ...

What are the uses of this and super keywords? 22 May 2012 | 04:38 am

This keyword has multiple meanings. Used as reference variable: When used as a variable, it refers to the instance of the class on which the operation has been invoked. Example Code: Output: this.a: 1...

What is reflection API? 22 May 2012 | 04:36 am

Reflection API is a reflection of an Object as created by using the new operator and as seen by JVM. Using this API, one can get information about an Object like its Constructors, Methods, Member vari...

What is a class loader and What are the different class loaders? 22 May 2012 | 04:34 am

A class loader is a program which loads the system/user defined classes. A class loader is generally a part of the compiler. Whenever a reference to a class is encountered and the class is found to be...

What is the best way to initialize references out of null, empty or uninitialized? 22 May 2012 | 04:33 am

Note: The word variable here refers to reference variables referring to objects and not primitive variables. Initializing the reference variables to proper value should not be ignored because it helps...

What are the best practices for fetching large amount of data from database? 22 May 2012 | 04:31 am

The list of best practices include: a)   Pagination: In this technique, the data retrieved from the server is shown on multiple pages with next and previous buttons. These buttons help in navigating t...

What is Chain of Responsibility (CoR) design pattern? 22 May 2012 | 04:29 am

The basic principle behind CoR is to avoid a component which can perform multiple functions and have a number of components each performing a definitive task. This design pattern is inspired from Cohe...

What is the difference between aggregation and composition? 22 May 2012 | 04:29 am

Aggregation and composition both refer to a “has a” relationship which means that one object is a part of another object. This relationship is required to model real world scenarios like a school has ...

Explain Factory design pattern 22 May 2012 | 04:27 am

The Factory design pattern defines a factory which can be used to build objects of particular type. Like a real world factory, the factory class assembles an object using various component or sub obje...

Recently parsed news:

Recent searches: