What are inbuilt classes in Java?

In Java, all classes (built-in or user-defined) are (implicitly) subclasses of Object . Using an array of Object in the List class allows any kind of Object (an instance of any class) to be stored in the list. However, primitive types (int, char, etc) cannot be stored in the list.

Sizin İçin Seçtik  BNB yakımı oldu mu?

Leave a Reply

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

What are inbuilt classes in Java?

In Java, all classes (built-in or user-defined) are (implicitly) subclasses of Object . Using an array of Object in the List class allows any kind of Object (an instance of any class) to be stored in the list. However, primitive types (int, char, etc) cannot be stored in the list.

Sizin İçin Seçtik  What is meant by predefined class?

Leave a Reply

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