Search:

Type: Posts; User: TheSlowLearner

Search: Search took 0.14 seconds.

  1. Replies
    17
    Views
    2,464

    [SOLVED] Re: The 'new' Keyword

    Thanks to everyone who helped. This is now a solved question.
  2. Replies
    17
    Views
    2,464

    [SOLVED] Re: The 'new' Keyword

    Thanks. This helped me understand. :D
  3. Replies
    17
    Views
    2,464

    [SOLVED] Re: The 'new' Keyword

    public class ObjectInitialization {
    Object object1;
    static Object object2;

    public static void main(String[] args) {
    Object object3;
    }
    }
  4. Replies
    17
    Views
    2,464

    [SOLVED] Re: The 'new' Keyword

    Ok, I hope these are my last questions. I just want to be sure I understand fully.

    Why would you ever WANT an object to be set to null? Would you set an object to null if you wanted it to be...
  5. Replies
    17
    Views
    2,464

    [SOLVED] Re: The 'new' Keyword

    Just wondering, what does this mean exactly? Could you give an example? For some reason I just can't picture what you're saying.
  6. Replies
    17
    Views
    2,464

    [SOLVED] Re: The 'new' Keyword

    Thanks for all the answers everyone.
    So, just to be sure I understand: without initializing the object it has a 'null' value and any attempt to call methods on it will result in a 'null pointer...
  7. Replies
    17
    Views
    2,464

    [SOLVED] The 'new' Keyword

    Hi, this is my first time posting on this forum so I'm sorry if this isn't the right place for this topic. If it isn't the right place, please tell me where a better place might have been. Also, if...
Results 1 to 7 of 8