User defined methods in java: Functions are called methods in java. Like in C, java programming has similar user defined methods. There are basically four types of user defined methods. They’re: Methods with parameter and with return typeMethods with parameter and without return typeMethods without parameter and with return typeMethods without parameter and without return