Hi could someone please explain to me why you have to create an instance before calling a non static method to the main function in java? What is the reasoning behind this?<
Static methods are class-level methods, so no instance is required.
Non-static methods are instance methods. Hence an instance is required.