문제

Since I started to learn Java recently I would like to be clear on some terms. As I learn, subroutine can be called as a method ... Subroutine is an instruction that consists of the sequence of "statements" enclosed between braces... from my understanding main method public static void main (String[] args)

is subroutine am I right? Thanks in advance

도움이 되었습니까?

해결책

Yes you are right. Method is an object oriented jargon for subroutine. A method is a subroutine or function that you can call on an object in an OO language.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top