+ 1

Declaration, Definition and Calling of Methods in JAVA

Q1.Can we define methods either after or before calling it? Q2. If we want to define the method after calling it, then do we need to declare it before calling it in main.... like in C.

31st Dec 2017, 7:46 AM
Shalini Jha
Shalini Jha - avatar
3 ответов
+ 2
What language are you talking about?
31st Dec 2017, 7:47 AM
1of3
1of3 - avatar
+ 1
JAVA
31st Dec 2017, 7:47 AM
Shalini Jha
Shalini Jha - avatar
+ 1
Yes you can. No, you don't have to.
31st Dec 2017, 7:56 AM
1of3
1of3 - avatar