methods methods in java are conceptually similar to functions and procedures in other highlevel languages in generalthey are "chunksof code that can be called on particular object (from some classmethods can accept parameters as argumentsand their behavior depends on the object they belong to and the values of any parameters that are passed every method in java is specified in the body of some class method definition has two partsthe signaturewhich defines the and parameters for methodand the bodywhich defines what the method does method allows programmer to send message to an object the method signature specifies how such message should look and the method body specifies what the object will do when it receives such message declaring methods the syntax for defining method is as followsmodifiers type name(type parameter type - parameter - /method body