super keyword in java

The “super” keyword refers to the super-class of the class in which the keyword is used. It is used to access variables and methods of a super class from a sub class. public class Person{     protected int age;           protected displayAge() {         System.out.println("Age = " […]

Share this article on

synchronized keyword in java

Synchronization in java is used to control the access of multiple threads to any shared resource. Synchronization is better option when we want to allow only one thread to access the shared resource. “synchronized” keyword is used to achieve Synchronization in Java. The synchronized keyword can be applied to a method or statement block and […]

Share this article on
< Previous Next >