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. Because the reference is of Object Array and the resolution of what it holds is identified at the runtime. String[] strArray = new String[2]; strArray[0] = 5; would have given the compile time array as the reference is of String array. | ||||
String[] strArray = new String[2]; strArray = new String[5]; | ||||