Mapa mental
Java Interview
Conteúdo do mapa
Java Interview
Access Modifiers
- you can’t create sub classes to that class which has only private constructors.
- Inner classes can be private, but outer classes can not be private.
- Outer class can not be protected
- private inner Class can not be instantiated outside the Class
- You can’t reduce the visibility of a method while overriding it.
- A top level class may have only the following access modifier public and default
Override and Overload
- Static methods can not be overridden. If we try to override them they will be hidden in the sub class
- we can change the return type of overriding method to a sub class
- we can override a super class method without throws clause as a method with throws clause in the sub class but only with unchecked exceptions
Inheritance
- Super class field will be hidden in the sub class. You can access hidden super class field in sub class using super keyword.
Informações
- Descrição
- Mapa Mental sobre Java Interview, criado por Armando Javier Revilla em 08-02-2017.
- Criado por
- Armando Javier Revilla
- Visualizações
- 0
- Avaliação