Computer Science, asked by satyamguptaa, 10 months ago

what are the methods in java​

Answers

Answered by MrCombat
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 Naksh1234
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