What is the difference between type and class Java?

The term type is more general than class. Types in Java include primitive types and reference types – and the reference types include classes and interfaces. So “type” can mean primitive, class, or interface, while “class” means only class .

Sizin İçin Seçtik  What should I learn first to develop an app?

Leave a Reply

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