Styrow.dev
Question 194 of 247
Java Topic: General medium

What is the use of Marker interface if they don't hold anything?

Question

What is the use of Marker interface if they don’t hold anything?

Answer

As the name suggest , They just mark a class and just indicate something to compiler and JVM.