Results 1 to 7 of 7

Thread: OOP exercises

  1. #1
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default OOP exercises

    I recently started reading the book "Thinking in java" 4th edition. My problem is I am having a hard time maintaining interest in the book. The way he writes isn't too bad, but the examples and exercises are uninteresting and not useful for much. What I am looking for is supplemental exercises that require me to design classes to practice syntax and inheritance with useful classes.

    Most of the exercises in the book are nearly identical to examples, which just create classes that simply print "x class is being constructed". I understand it's important to know how and when classes are constructed, but seeing every examples be nearly the same seems like overkill.

    For anyone who has read this book, any recommendations for ways to enjoy the book more? I am about to start the chapter on polymorphism, while I have a decent understanding of classes from the book, and useful c++ examples/exercises in a previous book, it is challenging to understand for the wrong reasons. Does the book get more interesting?

    I have been googling around for exercises that practice creating classes and extending them, and I can't seem to find much. I recently found project euler(which I must admit, tends to have many problems that are beyond my skill level) and a website called codebat, which have useful exercises, but they are exercises on logic, strings, arrays, and primitives, not objects like I want.

  2. #2
    AcousticBruce is offline Senior Member
    Join Date
    Dec 2010
    Location
    Indiana
    Posts
    202
    Rep Power
    4

    Default

    Sams Teach Yourself Java in 24 hours or 21 days is good. I think these would fill that gap that your current book is missing. If you are having a hard time understanding the Head First into Java book is great. These books are less detailed (short wind explanations), just more projects and better examples, but that is where your other book comes in. It is almost a MUST to have multiple books.


    There is a guy on youtube called TheNewBoston he has some pretty interesting tutorials and makes learning really fun.

    if you need to work your brain a bit there is a site called Project Euler it is great for just making small projects to keep you busy in your spare time. Personally this page jump started me into coding because I had to frequent the Java Docs and Leepoints page
    Leepoints page

    I think his page explains details better then the docs. Its probably less up to date. But I havent ran into a problem yet.

    Have fun.
    Last edited by AcousticBruce; 01-09-2011 at 03:31 AM.

  3. #3
    user0 is offline Senior Member
    Join Date
    Dec 2010
    Posts
    100
    Rep Power
    0

    Default

    Hi - I have read a book called Building Java Programs and it comes with a supplementary website you can access. The book is very easy to follow and sure kept me interested enough to keep reading.

    The most knowledge I gained was when I logged in to their website - almost every programming exercise in the book is available online on a programming interface. So you can actually test yourself in each concept by writing code, and the website tests your code for you.

    The recall the OOP section to be very thorough and had many interesting examples and exercises.

    Google it and give it a try.

    Best,
    --user0--

  4. #4
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Thanks for the advice! Its not that I don't understand thinking in java, I feel like I am absorbing the material, it's just easier for me to retain the knowledge when I practice the typing. The biggest thing in Thinking in Java that's been helping me is manually copying all the examples and thinking of how stuff is performed step by step.

    Definately going to try an pick up the textbook and head first java.

  5. #5
    loja11 is offline Member
    Join Date
    Jan 2011
    Posts
    18
    Rep Power
    0

    Default

    hi guys:

    this is an interesting topic for me too.
    I would appreciate to get supplementary advice on this subject. So far i am working on euler have reached problem no 10. I feel that i need to practice non mathematical exercises as well.

    regards,

  6. #6
    AcousticBruce is offline Senior Member
    Join Date
    Dec 2010
    Location
    Indiana
    Posts
    202
    Rep Power
    4

    Default

    Quote Originally Posted by loja11 View Post
    hi guys:

    this is an interesting topic for me too.
    I would appreciate to get supplementary advice on this subject. So far i am working on euler have reached problem no 10. I feel that i need to practice non mathematical exercises as well.

    regards,
    Yes this is true. Project Euler is nice for killing time or just for extra work.

    You have to start making random programs. Some come up with ideas yourself and you will find that you need need to check the java docs or some other reference and this is a good thing. It means you are learning something :)

    Really though the Sams and Head First are Excellent for learning on a progressive level. You will still run into things that they dont explain well and use Leepoint or Java Docs or some other site or book to reference.

  7. #7
    loja11 is offline Member
    Join Date
    Jan 2011
    Posts
    18
    Rep Power
    0

Similar Threads

  1. Exercises
    By amzers in forum New To Java
    Replies: 6
    Last Post: 12-12-2010, 10:58 AM
  2. A place to post beginner/inter exercises/scenarios
    By helpisontheway in forum New To Java
    Replies: 0
    Last Post: 01-27-2010, 10:03 AM
  3. Some exercises
    By javaamateur in forum New To Java
    Replies: 7
    Last Post: 12-02-2009, 01:00 AM
  4. Exercises
    By lclclc in forum New To Java
    Replies: 3
    Last Post: 09-14-2009, 11:20 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
  •