public static void main( String  args )
System.out.println( Hello, world );
System.exit( 0 );
A method in object-oriented programming like Java, Python is a procedure associated with a class. A method defines the behavior of the objects that are created from the class. Another way you can say that this is that a method is an action that an object is able to perform. The association between method and class is called binding. Method and a function are the same, with different terms. A method is a procedure or function in object-oriented programming.