Mindmap
Java Interview
Inhalt der Mindmap
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.
Informationen
- Beschreibung
- Mindmap am Java Interview, erstellt von Armando Javier Revilla am 08/02/2017.
- Erstellt von
- Armando Javier Revilla
- Aufrufe
- 0
- Bewertung