Java Tutorials

301. Method Overloading in Java

By: aathishankaran : 2007-03-06

Description: In java it is possible to define two or more methods within the same class that share the same name, as long as their parameter declarations are different. When this is the case, the methods are said to be overloaded, and the process is referred to as method overloading


302. Object Reference Variables in Java

By: aathishankaran : 2007-03-06

Description: Object reference variables act differently than you might expect when an assignment takes place. It has been explained in this article. You can take an example of following code. Here an object t1 is created for Test class and another object T2 is assigned for the t1 then what do you think the following fragment does?


303. A Stack Class in Java

By: aathishankaran : 2007-03-05

Description: To show the real power of classes, this article will conclude with a more sophisticated example. One of OOP's most important benefits is the encapsulation of data and the code that manipulates that data. As you have seen, the class, you are creating a new data type that defines both the nature of the data being manipulated and the routines used to manipulate it.


304. Garbage collection and Finalize() method in Java

By: aathishankaran : 2007-03-05

Description: Since objects are dynamically allocated by using the new operator, you might be wondering how such objects are destroyed and their memory released for later reallocation. In some languages, such as C++, dynamically allocated objects must be manually released by use of a delete operator. Java takes a different approach; it handles deallocation for you automatically


305. Instance variable in java

By: aathishankaran : 2007-03-05

Description: As you know, it is illegal in java to declare two local variables with the same name inside the same or enclosing scopes. Interestingly, you can have local variables, including formal parameters to methods, which overlap with the names of the class instance variables. We can see the following example for this explanation.


306. The this Keyword in Java

By: aathishankaran : 2007-03-03

Description: Sometimes a method will need to refer to the object that invoked it. To allow this, Java defines the this keyword. this can be used inside any method to refer to the current object. That is, this is always a reference to the object on which the method was invoked. You can use this anywhere a reference to an object of the current class type is permitted.


307. Constructors in Java

By: aathishankaran : 2007-03-03

Description: It can be easy to initialize all of the variables in a class each time an instance is created. even when you add convenience functions for initialization, it would be simpler and more concise to have all of the setup done at the time the object is first created. Because the requirement for initialization is so common, java allows objects to initialize themselves when they are created. this automatic initialization is performed through the use of a constructor.


308. J2EE Clients

By: aathishankaran : 2007-02-22

Description: A J2EE client can be a Web client or an application client. Now we will see about both web client and application client in this article.


309. Application Assembler in J2EE

By: aathishankaran : 2007-02-22

Description: The application assembler is the company or person who receives application component JAR files from component providers and assembles them into a J2EE application EAR file.


310. J2EE Container Types

By: aathishankaran : 2007-02-22

Description: The deployment process installs J2EE application components in the J2EE containers. The containers are explained here.