Unverified Commit 9369a92b authored by Lokesh Singh's avatar Lokesh Singh Committed by GitHub

Update readme.md

parent c57dfd2e
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
In java arrays are obkects. In java arrays are obkects.
1. Arrays in Java work differently than they do in C/C++. 1. Arrays in Java work differently than they do in C/C++.
A Java array variable can also be declared like other variables with [] after the data type. 2. A Java array variable can also be declared like other variables with [] after the data type.
The variables in the array are ordered, and each has an index beginning from 0. 3. The variables in the array are ordered, and each has an index beginning from 0.
Java array can be also be used as a static field, a local variable, or a method parameter. 4. Java array can be also be used as a static field, a local variable, or a method parameter.
The size of an array must be specified by int or short value and not long. 5. The size of an array must be specified by int or short value and not long.
The direct superclass of an array type is Object. 6. The direct superclass of an array type is Object.
Every array type implements the interfaces Cloneable and java.io.Serializable. 7. Every array type implements the interfaces Cloneable and java.io.Serializable.
## Creating, initializing and accessing ## Creating, initializing and accessing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment