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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 4 of 4

Thread: Which of the following propositions is true

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Which of the following propositions is true

    hello please who can help me in this question

    Which of the following propositions is true ?? and if false why it false ?

    (a) A class can implement many interfaces but must extend a single class true ??? right ?
    (b) A class can implement many classes but must extend a single interface
    (c) A class can implement many classes and can extend many interfaces
    (d) A class must implement a single interface and extend a single class


    thanks in advance


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Which of the following propositions is true

    So (a) is your choice? Can you give your rationale for choosing that one? Or, why do you think the other choices are not correct?

  3. #3
    Junior Member
    Join Date
    May 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Which of the following propositions is true

    a true
    b false
    b false
    b false

    (a) because as i read java only can extend one class and implement many interfaces
    (b) some help plz
    (c) some help plz
    (d) some help plz

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Which of the following propositions is true

    The word "must" is usually a disqualifier in statements like these, especially in Java. Considering that (a) is true, what single class must every Java class extend?

    (b) - Focusing on the word "must" again, is there a single interface that Java classes must extend? Do classes extend interfaces?

    (c) - No "must" here, but what else is wrong with the statement?

    (d) - Similar to (b), is there a single interface that Java classes must implement?

Similar Threads

  1. True and False that
    By kindon in forum Totally Off Topic
    Replies: 0
    Last Post: December 6th, 2013, 06:33 PM
  2. Help me to get true value.
    By Zimmer in forum Java Theory & Questions
    Replies: 4
    Last Post: May 8th, 2013, 01:01 PM
  3. A true beginner needs help
    By Zsofia in forum Member Introductions
    Replies: 1
    Last Post: May 23rd, 2012, 09:45 AM
  4. Does this still hold true?
    By April in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: February 2nd, 2010, 09:28 AM