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: Do I HAVE to learn Generics?

  1. #1
    Member hexwind's Avatar
    Join Date
    May 2011
    Location
    Tunisia
    Posts
    48
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default Do I HAVE to learn Generics?

    Hello everyone,
    I hope i'm asking in the right part of the forum.
    I just started learning about Generics but i just got bored of it and the rest of chapters in the book seem more interesting (more about Collection Framework, I/O Stream, Concurrency programming and GUI !! )
    Do you guys think that it's okay to skip this chapter and then go back to it later on or Generics is something I HAVE to know in order to write a Java program?
    Thanks!
    My website : MediDev


  2. #2
    Member
    Join Date
    Aug 2011
    Posts
    48
    My Mood
    Fine
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Re: Do I HAVE to learn Generics?

    Quote Originally Posted by hexwind View Post
    Do you guys think that it's okay to skip this chapter and then go back to it later on or Generics is something I HAVE to know in order to write a Java program?
    Thanks!
    I think you could skip the rest of chapters if their examples do not use generics, otherwise you should have a basic understand about generics before moving on. Only read the basics of generics, do not read everything, then you will go back to learn more later.

    immutable objects
    Last edited by ha.minh.nam; December 4th, 2011 at 07:28 PM.

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Do I HAVE to learn Generics?

    You need to have a basic understanding of how to use generics. The compiler will complain about unchecked methods being used if you don't use generics:
    warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.ArrayList
    Basically generics is a way have the compiler check that you are using the correct data types when putting objects into a collection and/or taking them out.

  4. #4
    Member hexwind's Avatar
    Join Date
    May 2011
    Location
    Tunisia
    Posts
    48
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default Re: Do I HAVE to learn Generics?

    I can get a quick view on generics without reading this chapter whihc is very detailed and continue to other chapters. Thanks a bunch guys
    My website : MediDev

Similar Threads

  1. [SOLVED] Trying to learn and I'm stuck
    By knightknight in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 1st, 2011, 04:17 PM
  2. New to this..so lost trying to learn...
    By ryan1234 in forum Object Oriented Programming
    Replies: 5
    Last Post: September 21st, 2010, 05:35 PM
  3. How long did it take you to learn?
    By JavaLearner in forum The Cafe
    Replies: 5
    Last Post: March 24th, 2010, 04:42 PM
  4. here to learn and grow
    By cejay in forum Member Introductions
    Replies: 2
    Last Post: March 1st, 2010, 03:04 AM
  5. Learn applets in java
    By mohsendeveloper in forum Java Applets
    Replies: 2
    Last Post: June 25th, 2009, 02:50 PM