using keyword '
void
/
int
' and you can give any name according to your requirement, that's called is user defined function....
For Example:----
class niitian
{
public void manish()
{
System.console.WriteLine("This is the example of creating function");
}
}
class second_niitian
{
Public Static Void Main(String args[])
{
niitian obj=new niitian();
obj.manish();
}
}
In above Example,
manish()
is a user defined method..