why array is called the collection of similar datatypes?



why array is called the collection of similar datatypes?..

Answer / 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

More JavaScript Interview Questions

Do I need to install javascript?

0 Answers  


What is the purpose of using javascript?

0 Answers  


how to write frame work Architecture in QTP

0 Answers  


What is the use of ‘debugger’ keyword in javascript code?

0 Answers  


What is double exclamation point?

0 Answers  






What is the method for reading and writing a file in javascript?

0 Answers  


What is difference between var x =1; and x=1;?

0 Answers  


What is the difference between remove() and removeChild()?

0 Answers  


Why is object naming important to use in javascript?

0 Answers  


How javascript sort function works?

0 Answers  


Why javascript is called lightweight language?

0 Answers  


What is the use of dom?

0 Answers  


Categories