چند نکته در مورد آرایه و String در جاوا

  • All members of one array has the same data type.
  • Array is fix length variable.
  • Array are known as fixed  length variables that stores homogeneous (similar type) type of data.
  • In java we can create an array as "type   name of array [] = new type[size]" Example: int x[] = new int[10]; Test t[] = new Test[3];
  • There is an inbuild keyword "Length" that return the size of an array: myArray.length
  • String is known as collection of arrays but in java it is a class
  • String is known as immutable class. immutable means once the object be
    created no one can modify the object.  String n1 = "NIIT"; we can not change n1
نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد