
dear sir
providing suitable example describe the Scalar,Linear and Non Linear data structures for java. prepare a table for advantages and disadvantages of each type of the above.

Scalar Data Structure
- Integer, Character, Boolean, Float, Double, etc.
Vector or Linear Data Structure
- Array, List, Queue, Stack, Priority Queue, Set, etc.
Non-linear Data Structure
- Tree, Table, Graph, Hash Table, etc.
Integer Example:
public class IntegerExample {
public static void main(String[] args) {
Integer intObj1 = new Integer(10);
Integer intObj2 = new Integer("10");
System.out.println(intObj1);
System.out.println(intObj2);
}
}
For more information, visit the following links:
http://www.roseindia.net/javacodeexamples/index.shtml
http://www.devmanuals.com/tutorials/java/collections/index.html