A method in Java is a set of instructions that can be called for execution using the method name.
There are mainly two types of methods in Java: pre-defined methods and user-defined methods.
Pre-defined methods are already available in the Java class library, while user-defined methods are created by the programmer to perform specific tasks within a program.
User-defined methods can further be categorized into static methods, which belong to the class itself and can be called without an instance, and non-static methods, which are associated with an instance of a class.