Java Tutorials
81. Use List, Set, SortedSet, LinkedHashSet, Map, LinkedHashMap in java
By: Saravanan : 2010-01-01
Description: In this tutorial we can see how to use Collections in java program. Now we can see uses of List, Set, SortedSet, LinkedHashSet, Map, LinkedHashMap.
82. inheritance in Java
By: Saravanan : 2010-01-01
Description: In this tutorial we are going to see how to inherit a class. For that we simply incorporate the definition of one class into another class by using extends keyword. Now we create a superclass named parent and a subclass named child. This program displays the parent class contents, child class contents and sum of the contents.
83. cloneable in Java
By: Saravanan : 2010-01-01
Description: In this tutorial we are going to see use of cloneable interface and how to use it. The cloneable interface defines no members. It is used to indicate that a class allows a bitwise copy of an object to be made. If you try to call clone() on a class that does not implement Cloneable, a CloneNotSupportedException is thrown. When a clone is made the constructor for the object being cloned is not called. A clone is a copy of the original.
84. Converting properties using PropertyEditors and Other Spring features worth mentioning
By: Saravanan : 2010-01-01
Description: In this tutorial we are going to see how to Convert properties using PropertyEditors and Other Spring frame work features worth mentioning. This is handy to be able to represent properties in a different way than the object itself.
85. TCP Server and TCP Client in Java
By: Ashish Myles : 2009-10-15
Description: The Socket class is in the java.net package, so be sure to say import java.net.*; at the beginning of your file. The following is a simple example that illustrates the different portions of a server/client pair. This example works using localhost, which corresponds to the default local computer IP address of 127.0.0.1. This way, both the server and the client will be running on the same computer. Server.java and Client.java contain the server and client source code for this simple example
86. Java program for Map
By: Saravanan : 2009-10-03
Description: In this Tutorial we are going to see how to implement Map with arraylist. This is an example of a Map. We must import some of the packages as below.
87. How to use and access the inner class in java
By: Saravanan : 2009-10-03
Description: In this Tutorial we are going to see how to use a named inner class, how to access inner class in Java.
88. How to access instance from an inner class and accessing outer class variables in java
By: Saravanan : 2009-10-03
Description: In this Tutorial we are going to see how to access instance from an inner class and access outer class variables. First we are going to see the example of accessing instance from an inner class.
89. How to use set, get basic and nested properties for Spring framework
By: Saravanan : 2009-10-03
Description: In this tutorial we are going to see how to use set, get basic and nested properties for spring frame work. set and get properties are done using the setPropertyValue(s) and getPropertyValue(s) methods that both come with a couple of overloaded variants.
90. Simple java program to add an element to specified index of Java ArrayList
By: Saravanan : 2009-10-03
Description: In this Tutorial we are going to see how to add an element to specified index of Java ArrayList.