What are the predefined methods in Java?

Predefined Method Some pre-defined methods are length(), equals(), compareTo(), sqrt() , etc. When we call any of the predefined methods in our program, a series of codes related to the corresponding method runs in the background that is already stored in the library.

Sizin İçin Seçtik  What are two types of methods?

Leave a Reply

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