What are predefined methods in Java give example?

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. Each and every predefined method is defined inside a class.

Sizin İçin Seçtik  Müracaat ve şikayet nasıl yapılır?

Leave a Reply

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