+ 1
Statement must inclosed with semi colon...but my ques is system is class and println is method then how we close to the semicol?
6 odpowiedzi
+ 2
so what's Your concept behind using semicolon
+ 2
usually the methods which has blocks of code, they don't end with semicolon
and the single line statement ends with semi colon
And System is a class , Out is a static member of System class and println is static method.. and it ends with semicolon..
and it is one line of code it can be terminated there it and it doesn't consist further block of codes{}
+ 2
because we just pass the value direct to the paranthisis
+ 1
end the statement..that set
+ 1
any class whenever open then we open with curely braces r8 then why not println...it also the method n then..
+ 1
k..thank you.