What is method in java?

DWQA QuestionsCategory: QuestionsWhat is method in java?
Editor Staff asked 3 weeks ago

What is method in java?

1 Answers
Editor Staff answered 3 weeks ago

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.