Is it possible to call disp()
method from Test
Class ?
Class Test{
Public static void main(String[] X){
System.out.println(disp());
}
int disp(){
return 10;
}
}
Is the above code correct or not? if yes what will be the output? I am very new to java.