what are the methods in java
Answers
Answered by
7
Answer:
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
0
Answer:
Hey there, your answer !!
A method is a set of code which is referred to by name and can be called (invoked) at any point in a program simply by utilizing the method's name. Think of a method as a subprogram that acts on data and often returns a value. Each method has its own name.
There are three main types of methods: interface methods, constructor methods, and implementation methods. Most beginner programmers are familiar with implementation methods.
Hope it works!!
Don't forget to mention as brainliest!!
Similar questions