Jump to content

How do I know which classes to use

- - - - -

  • Please log in to reply
4 replies to this topic

#1
metalaxiz

metalaxiz

    Newbie

  • Members
  • Pip
  • 4 posts
I'm very new to java, or any programming languages for that matter. I constantly run into the problem of finding the right Classes in the Java API to use according to my requirement.

How do You really come to find out the proper classes in the API for ur requirement? Are there any advices or tips that i could use?

I mean im totally clueless where to start when i look at the API... :crying:

#2
Vladimir

Vladimir

    Learning Programmer

  • Members
  • PipPipPip
  • 79 posts
In general there is no right answer to your question. You can use google, faqs, forums, but they can't replace your experience. That's quote for Joel Spolsky ( Lord Palmerston on Programming - Joel on Software ):

Quote

Someone who is a fantastic C++ coder with no API experience only knows about 10% of what you use every day writing code that runs on an API.
So knowledge of what class to use or what method to use (API) is very important and it is actually more important then excellent knowledge of your programming language. So, the only way: write code, ask questions, gain experience :)

#3
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
You learn which classes do what through practice and experience. As you spend more time with it, you become more familiar with which classes do what, the (sometimes) subtle differences between them, etc.

In addition, as you gain more experience, you learn how to pick up on those differences with new languages/toolkits so you can learn them faster.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#4
metalaxiz

metalaxiz

    Newbie

  • Members
  • Pip
  • 4 posts
thanks for your advice Guys! :)

#5
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 763 posts
RTFM. Read The Fine Manual, first. :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users