R
rajesh.shiggaon
When we declare a class with public, all the methods and variable with
no specific modifiers, will be taken as public. Am i correct.
public class Test {
static void main(String args[]){
System.ot.println("Test message");
}
}
Will this work? I have checked it this is not working ? then wht is the
use of the public class modifier??
Thanks in advance
no specific modifiers, will be taken as public. Am i correct.
public class Test {
static void main(String args[]){
System.ot.println("Test message");
}
}
Will this work? I have checked it this is not working ? then wht is the
use of the public class modifier??
Thanks in advance