Thanks to Norm and javapegiun. I think I'm understood why the output will be like this.
Type: Posts; User: lunchong
Thanks to Norm and javapegiun. I think I'm understood why the output will be like this.
Actually this is a question from my past year examination question and I'm doing my revision. The question is to trace the output. Since the output I traced doesn't same as the output after i...
I did tried to put a println after every statement but I wondering what kind of exception occur and changed the flow of execution. Any thing wrong with the way for this coding to call its function?
...
All the exceptions have been caught by the exception handle and the output for this coding is "One Three Six Two"... And I don't know how to use the command prompt to execute this coding. I'm using...
public class Test {
static String s = "One ";
public static void main(String[] args) {
new Test().method1();
System.out.println(s);
}
static void method1(){