When will we get ArrayStoreException?



When will we get ArrayStoreException?..

Answer / Rajnath Kumar

An ArrayStoreException occurs in Java when you try to store an object into an array of another type. For example, if you have an integer array and try to assign a string to one of its elements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Which is better stack or queue?

1 Answers  


What is a stable algorithm?

1 Answers  


What is the procedure to insert into a sorted array?

1 Answers   Wipro,


What are types of Collision Resolution Techniques and the methods used in each of the types?

1 Answers  


Tell me how to find middle element of linked list in one pass?

1 Answers  


In what order the elements of a hashset are retrieved?

1 Answers  


Name the areas in which you can apply data structures extensively?

1 Answers   Accenture,


List the basic operations carried out in a linked list?

1 Answers  


Does treemap allow null keys?

1 Answers  


Will it create any problem if we add elements with key as user defined object into the treemap?

1 Answers  


What are the types of binary tree?

1 Answers  


why boundary tag representation is used?

1 Answers  


Categories