InterviewSolution
Saved Bookmarks
| 1. |
Which of the following statements are incorrect?(a) Variables declared as final occupy memory(b) final variable must be initialized at the time of declaration(c) Arrays in java are implemented as an object(d) All arrays contain an attribute-length which contains the number of elements stored in the arrayThe question was asked in an interview for job.My question is taken from Arrays Revisited & Keyword static topic in section Classes and Methods of Java |
|
Answer» The correct CHOICE is (a) VARIABLES declared as FINAL occupy memory |
|