Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: need answer for these

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Thanked 0 Times in 0 Posts

    Post need answer for these

    hi all . im new to this forum and java . I need answers for these questions cuz im not clear with them.

    1.What is a class? What is the difference between a class and an object?

    2.Does java support the concepts of multiple inheritance & pointers? If not why?

    3.What is a Null object?

    4.Which part of Java is platform independent ? Explain how Architecture neutral is achieved in Java.

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default Re: need answer for these

    What did a web search tell you? The answers are there, with probably a lot more detail than we can reiterate and within a few milliseconds rather than waiting for someone to respond. Just do the search
    Google: What is a class
    and if you have more specific questions feel free to ask

  3. #3
    Grand Poobah
    Join Date
    Mar 2011
    My Mood
    Thanked 167 Times in 158 Posts

    Default Re: need answer for these

    Quote Originally Posted by satishbs View Post
    3.What is a Null object?
    I will answer this one as many people misinterpret this and it may not be explained sufficiently.

    There is no such thing as a null object, only null references.
    Foo f = new F();
    In this code the variable f is not a Foo object. It is a variable that holds a reference to a Foo object. If you set the variable to null it becomes a null reference not a null object.

Similar Threads

  1. Help please - urgent (Project due and not done) - Easy answer
    By Bagzli in forum Java Theory & Questions
    Replies: 1
    Last Post: March 2nd, 2011, 06:36 PM
  2. Does anyone have answer of this Assignment??
    By lulzimfazlija in forum Java Theory & Questions
    Replies: 3
    Last Post: January 21st, 2011, 05:02 AM
  3. [SOLVED] Begginer Question please help ASAP! (Easy to Answer)
    By Bagzli in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 11th, 2010, 10:00 PM
  4. Replies: 5
    Last Post: August 5th, 2010, 09:16 PM
  5. Arrays.equals not returning correct answer.
    By Anyone in forum Collections and Generics
    Replies: 2
    Last Post: February 11th, 2010, 10:12 AM