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
Why does the browser display the slow script warning?
Is javascript object oriented?
What is the similarity between the 1st and 2nd statement?
Explain export & import in javascript?
What is the dollar sign in javascript?
Name some of the ways in which Type Conversion is possible?
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a java program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
What is javascript and its advantages?
What is unescape() function?
Which built-in method adds one or more elements to the end of an array and returns the new length of the array?
How do I install javascript?
What are the new ways to define a variable in Javascript?
What does 3+4+"7" evaluate to?
What is local scope in javascript?
What are the properties of stack?