Category: Keywords In Java

THIS Keyword in Java with example

THIS keyword in Java with Example

In Java, current context in class is referred using “this”. “this” becomes compulsory when member data and arguments share a common name. Example class Student{ int age; Teacher(int age) { age=age; // After compilation...

Static Keyword In Java

Static Keyword

In general, Static means staying in one place without moving, or not changing for a long time. For example, your home will be static as it can not be moved. Or In computing, it can be understood as...