Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Interview Questions and Answers | ||||
| ||||
| Ans. No, We haven't specified the size of array to be initialized. | ||||
String[] strArray = new String[2]; strArray = new String[5]; | ||||
String[] strArray = new String[]{"Buggy","Bread"}; | ||||
String[] strArray = new String[3]{"Buggy","Bread"}; | ||||
String[] strArray = new String[2]; strArray.length = 5; | ||||