Computer Science, asked by hamza6187, 11 months ago

what are the two methods of java
...​

Answers

Answered by Anonymous
0

HEY MATE HERE IS YOUR ANSWER--

  1. WHAT ARE THE TWO METHODS OF JAVA?

Java Methods. A method is a block of code which only runs when it is called. You can pass data, known as parameters, into a method. Methods are used to perform certain actions, and they are also known as functions.

Answered by piyushsharm31
0

In Java, there are two types of methods:

User-defined Methods: We can create our own method based on our requirements.

Standard Library Methods: These are built-in methods in Java that are available to use.

Similar questions