Search:

Type: Posts; User: peter_parker

Search: Search took 0.13 seconds.

  1. Thread: threads

    by peter_parker
    Replies
    3
    Views
    231

    Re: threads

    I am asking that whether it is possible in the above code to have output as :
    hello
    one
    main
    hello
    two Because print statement for hello occurs after print for thread name.So is it possible...
  2. Thread: threads

    by peter_parker
    Replies
    3
    Views
    231

    threads

    I have the following code on threads.I have a doubt that is it possible that any of the two threads created ie one and two will execute the 2nd print statement in run method before the first print...
  3. Replies
    2
    Views
    204

    Re: finally block execution

    I want to know that which block executed first catch or finally..I mean to say that after return in catch the jvm should leave the block without executing finally.Then why does value of a is 10 and...
  4. Replies
    2
    Views
    204

    finally block execution

    public class HelloWorld{
    static int a;
    public static void main(String []args){
    System.out.println("Hello World");
    HelloWorld h =new HelloWorld();
    a = h.foo();
    ...
  5. Replies
    2
    Views
    130

    Re: stackoverflow

    Thank you sir actually I sort of knew the reason but was not sure..
  6. Replies
    2
    Views
    130

    stackoverflow

    This might be a very basic question but still I am not able to figure out why is the foll code giving stackoverflow exception in main??



    public class HelloWorld{
    public static void...
Results 1 to 6 of 6