What do you mean by synchronized Non Access Modifier?

Love and Share

Answer:   Synchronized used to indicate that a method can be accessed by only one thread at a time. The synchronized modifier can be applied with any of the four access level modifiers.

Example

public synchronized void showDetails() {



   .......



}

Below are the Non Access Modifiers available in Java.

– Final
– Abstract
– Static
– Strictfp
– Native
– Synchronized
– Transient

Love and Share

Leave a Reply

Your email address will not be published. Required fields are marked *