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 type Methods with parameter and without return type Methods without parameter and with return type Methods without parameter