Statement must inclosed with semi colon...but my ques is system is class and println is method then how we close to the semicol? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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?

14th Dec 2017, 1:02 PM
Jayshri Patil
Jayshri Patil - avatar
6 Respostas
+ 2
so what's Your concept behind using semicolon
14th Dec 2017, 1:38 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
+ 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{}
14th Dec 2017, 5:09 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
+ 2
because we just pass the value direct to the paranthisis
14th Dec 2017, 5:20 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
+ 1
end the statement..that set
14th Dec 2017, 4:49 PM
Jayshri Patil
Jayshri Patil - avatar
+ 1
any class whenever open then we open with curely braces r8 then why not println...it also the method n then..
14th Dec 2017, 5:19 PM
Jayshri Patil
Jayshri Patil - avatar
+ 1
k..thank you.
14th Dec 2017, 5:23 PM
Jayshri Patil
Jayshri Patil - avatar