What are field types in Java?

A field may be either of primitive or reference type. There are eight primitive types: boolean , byte , short , int , long , char , float , and double . A reference type is anything that is a direct or indirect subclass of java. … The syntax for the type name is described in Class.

Sizin İçin Seçtik  Do all classes have a no-arg constructor?

Leave a Reply

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