why array is called the collection of similar datatypes?

Answer Posted / guest

Array is called the collection of similar datatypes because
we can not add an object of some other type where as the
array which is declared is of another type.
For e.g
We declare a Integer array then we can not add an object of
type string into that array.We have to add an object of type
string only.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do “1”+2+4 evaluate to?

531


what is a difference of subclass and main class

1192


How to test 404 page in QA

2018


Which software is best for javascript?

539


How Can I get facebook fans/likes?

1476






Explain window.onload and ondocumentready?

507


What are the different boolean operators in JavaScript?

475


How do you add an element at the end of an array?

548


What's math constants and functions using javascript?

499


What will be the output of the following statements?

506


What is decodeuri() in javascript?

527


What is javascript bom?

566


The below script is working Internet browser but not working in mozilla plz find that good way... function doSubmit(op){ var rowcount=document.getElementsByName ("parameterTypeId").length; var parameterGrade; var performance; var goal; if(op == "save"){ for (var i=0; i < rowcount; i++) { var param=eval("document.forms [0].parameterGrade"+i); if(param.value != "select"){ return true; } } alert("Please rate atleast one attribute"); return false; }//if ends here

2014


How to remove duplicates from javascript array?

524


Can javascript code be broken in different lines?

529