Actualités

To invoke non-static method we crate an object instance in the main function (InvokeNonStaticMethod insm = new InvokeNonStaticMethod (); ) then call the non static method (i.e insm.doSomething ();) .