- 2
is there any program which do not contain a semi colon ?
4 Respostas
+ 2
yes, in below is a program without ;
public class MyClass {
public static void main(String[ ] args) {
}
}
+ 1
your question seems pointless but actually whenever there's statement there is ;
0
is this also correct?
public class hello{
public static void main (String [] args){
if(System. out.println("hello"))
{
}
}
}
0
actually semi colon tells compiler that this is the end of statement.