
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
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.