Java Question & Answers
Inside an interface when should the variables be initialized?
|A) Globally||B) Whenever required|
|C) Inside a function||D) During the time of declaration|
Answer: D) During the time of declaration
They should be initialized during the time of declaration itself otherwise it is a compilation eror
- Related Questions