This tutorial explains how to use default keyword in Java and explains with suitable examples. Default Keyword The following are the scenarios where default keyword can be used in Java : Can optionally be used in switch statement. Can be used to declare default value in Java annotation. From Java 8 on wards ,can be …