Các câu hỏi phỏng vấn và câu trả lời về phần "Core Java : Nested classes and Interfaces Interview Questions"
A class which is declared inside another class is known as nested class. There are 4 types of nested class member inner class, local inner class, annonymous inner class and static nested class.
Yes, inner classes are non-static nested classes i.e. inner classes are the part of nested classes.
No, local variable must be constant if you want to access it in local inner class.
Any interface i.e. declared inside the interface or class, is known as nested interface. It is static by default.
Yes, it is known as nested interface.
Yes, they are static implicitely.
Sưu tầm
NGUYỄN THỊ BẢO TRANG
» Tin mới nhất:
» Các tin khác: