Results 1 to 19 of 19
Like Tree2Likes
  • 2 Post By JosAH

Thread: I ve got some questions for Java , and I need the awnsers for a limited time ! HELP

  1. #1
    piti is offline Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0

    Default I ve got some questions for Java , and I need the awnsers for a limited time ! HELP

    1. When can an interface be extended?
    2. Can an abstract class implements methods of an interface , if this class already implementes the same interface?
    3.In java how many interface can be implemented by a class?
    4.Can an interface have a constructor?
    5.Is an abstract class forced to have an abstract methods?
    6.What does the class inherit from the subclass?

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Tell us what you think and we'll discuss your solutions.
    Nobody here will spoonfeed you the answers.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    1. why not?
    2. try it
    3. unlimited
    4. if you understood what an interface was, you wouldn't be asked this. No. Only classes can have constructors.
    5. try it
    6. oof. I want to say everything that is not private, but someone is going to correct me on this one I'm sure

    Disclaimer: I don't spoon feed, I only directly answer what I deem a fair Q&A question ;)

  4. #4
    piti is offline Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Actually I am beginner in this field and i m trying to learn with tutorials and i m not sure for these so i asked , thanks for feed back gimbal2

  5. #5
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Quote Originally Posted by gimbal2 View Post
    6. oof. I want to say everything that is not private, but someone is going to correct me on this one I'm sure
    Ahem, reread the trick question:
    6.What does the class inherit from the subclass?
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  6. #6
    piti is offline Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    so what do you think ? what about if it s protected?

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Quote Originally Posted by piti View Post
    Actually I am beginner in this field and i m trying to learn with tutorials and i m not sure for these so i asked , thanks for feed back gimbal2
    Won't work. Get a good book. Tutorials are only useful if you already have a basic understanding.

  8. #8
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,086
    Rep Power
    4

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Quote Originally Posted by piti View Post
    Actually I am beginner in this field and i m trying to learn with tutorials and i m not sure for these so i asked , thanks for feed back gimbal2
    So where does the limited time come in? Are you sure this isn't a test you have to hand in to your professor, for which you were already late and thought: "This stuff is easy, I can do this", and then hopelessly failed, trying to persuade the forum to give you the answers so you would pass, convincing the professor to give you a good grade, but you didn't really deserve it? Or am I just guessing now... You wouldn't be the first one that tried that, you know.

  9. #9
    piti is offline Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    no i m trying to learn logically , test is after a few months but i m working on it from now .. the reason why i wrote it for a limited time was cause i wanted to get faster awnsers :)

  10. #10
    piti is offline Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    so what book can you suggest me ?

  11. #11
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Quote Originally Posted by piti View Post
    I ve got some questions for Java , and I need the awnsers for a limited time ! HELP
    Please go through the Forum Rules, particularly the third paragraph.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  12. #12
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  13. #13
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Really? You recommend Thinking in Java? I rate it as horrible as any "dummies" or "learn java in XXX" book :/ Its written from the perspective of a C++ programmer. But perhaps the 4th edition is better than the edition I read.
    Last edited by gimbal2; 07-10-2013 at 04:29 PM. Reason: my keyboad is boken

  14. #14
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    It's on my list as there's also a free edition, but I'd never suggest it alone. That's why I added HFJ too.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  15. #15
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Sierra & Bates - you can hardly go wrong there.

  16. #16
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,770
    Blog Entries
    7
    Rep Power
    21

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Only in real life a super class can inherit from a sub class, e.g. parents inherit insanity from their children ...

    kind regards,

    Jos
    PhHein and gimbal2 like this.
    cenosillicaphobia: the fear for an empty beer glass

  17. #17
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Quote Originally Posted by JosAH View Post
    Only in real life a super class can inherit from a sub class, e.g. parents inherit insanity from their children ...
    Oh NOW I see what is wrong with question 6. Jeez sometimes even when the obvious is slapping me in the face with a sledgehammer I still don't see it.

  18. #18
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Quote Originally Posted by gimbal2 View Post
    even when the obvious is slapping me in the face with a sledgehammer I still don't see it.
    If I were slapped in the face with a sledgehammer, I don't think I would see anything for quite some time. Maybe forever ;)

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  19. #19
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: I ve got some questions for Java , and I need the awnsers for a limited time ! H

    Depends on what kind of Jewel in the Rough you are. If you're a diamond then probably you'll be just fine.

    (in case that seems wildly random to you, hover your mouse over those three little green bars under your name).

Similar Threads

  1. Measure limited time for a process
    By Vinn in forum New To Java
    Replies: 3
    Last Post: 03-06-2012, 09:27 PM
  2. Replies: 1
    Last Post: 08-06-2011, 03:17 AM
  3. time complexity questions
    By myst in forum New To Java
    Replies: 6
    Last Post: 07-13-2010, 12:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •