Can we declare array without size in java?



Can we declare array without size in java?..

Answer / Neeraj Chaudhary

Yes, you can declare an array without specifying its size by using the 'new' keyword followed by the array type and a set of empty square brackets.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is compareto?

1 Answers  


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

1 Answers  


What is meant by object oriented programming – oop?

1 Answers  


What do you understand by copy constructor in java?

1 Answers  


What is function and method in java?

1 Answers  


how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?

1 Answers   Satyam,


How is the marker interface used in Java?

1 Answers   BirlaSoft,


can any body body expalin best definitions & best real time exaples for opps concepts.

1 Answers   Accel,


Why is stringbuffer called mutable?

1 Answers  


Can we change the value of static variable?

1 Answers  


Is sizeof a keyword in java programming?

1 Answers  


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1 Answers  


Categories