Want this question answered?
Be notified when an answer is posted
Chat with our AI personalities
Declaring a method is when you code for what the method will perform. When you call a method, you are using the method you have written in another part of the program, (or inside the method if it is recursive).
what is the difference between roster method and rule method
No, Java only allows a method to be defined within a class, not within another method.
If method A calls method B and method B throws an exception, then method A must handle that exception. It does not have to throw the exception if it is in a try-catch block, but it must do something to deal with it.Note that this only applies to checked exceptions. If method B throws an unchecked exception, then A is allowed to ignore it.
A Method was created in 2006.