This and Super Keywords
Learn This and Super Keywords (Java Basics, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
1. Introduction This refers to the current object and super refers to the parent class part of it, for fields, methods and constructors .
More lessons in Java Basics
- Introduction to Java
- Getting Started with Java (Installation & Setup)
- Features of Java
- Difference between JVM, JDK, JRE
- Data Types and Variables
- Access Specifiers
- Operators in Java
- Control Statements in Java
- Jumping Statements in Java
- Looping Statements
- Packages
- Array in Java
- Array Program
- String in Java
- Constructor in Java
- Constructor Chaining
- Static Keyword
- Input and Output Stream in Java
- Scanner in Java
- Serialization in Java
- Properties File in Java
- Final Keyword
- Wrapper Class
- Methods in Java
- Return Object from Method
- Different way to return to the method in java.