Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

How to start learning Java

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to learn how to code using Java but don't know where to start. any suggestions will be deeply appreciated. tnx.
 
Marshal
Posts: 68148
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

If you can find a decent course in your area, where you will be taught proper computer sciences, that might be the best thing to do. I doubt whether it is possible to learn programming from a book, but try Head First Java by Sierra and Bates. Make sure to get the newer edition; since even that is old, don't buy a brand‑new copy or pay full price.
 
author
Posts: 23868
141
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The first question would be "what is your experience level with programming?". There is a big difference between someone who has zero programming experience, and wants to start with Java, versus an experience developer with zero Java experience. And of course, many different levels of programming experience... so, many different ways to "start".

Henry
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

A good place to start is Oracle's Java Tutorials.
 
Bartender
Posts: 1748
17
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Welcome to the Ranch

If you can find a decent course in your area, where you will be taught proper computer sciences, that might be the best thing to do. I doubt whether it is possible to learn programming from a book, but try Head First Java by Sierra and Bates. Make sure to get the newer edition; since even that is old, don't buy a brand‑new copy or pay full price.



I totally agree.

Java is so extensive and you'll have so many questions, taking a class at a community college is a great idea using a book like "Java, How to Program" by Deitel.

The Lynda.com site also has a Java class, but my experience with those videos is there in no way deep enough for really learning something. Good intros, however.

The Head First books, as recommended, are also good, but I would still start with a class.

Think about a small "hello world" Java project and build from there.

And, don't forget the Ranch here. I still use it often...always learning something new not covered in a book (usually) or in a class!

Enjoy .... Java's the best!

- mike
 
lorenzo martinez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Henry Wong wrote:
The first question would be "what is your experience level with programming?". There is a big difference between someone who has zero programming experience, and wants to start with Java, versus an experience developer with zero Java experience. And of course, many different levels of programming experience... so, many different ways to "start".

Henry



I have basic java programming skills. i often get stuck on the algorithms and functions. i'm trying to recall my previous lessons but it's just too many of them. i get confused on where should i start.
 
Henry Wong
author
Posts: 23868
141
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

lorenzo martinez wrote:
I have basic java programming skills. i often get stuck on the algorithms and functions. i'm trying to recall my previous lessons but it's just too many of them. i get confused on where should i start.



Well, it looks like you already started. And it looks like you also answered your own question. You know what you got stuck on. You know you need to review your previous lessons. So, you just need to just do it.

I understand that you want to make progress, instead of just "reviewing", but think of it like this... the basics are your foundation. And if you don't build a strong foundation, understanding new stuff, is going to be more difficult.

Henry
 
Mike London
Bartender
Posts: 1748
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Henry Wong wrote:

lorenzo martinez wrote:
I have basic java programming skills. i often get stuck on the algorithms and functions. i'm trying to recall my previous lessons but it's just too many of them. i get confused on where should i start.



Well, it looks like you already started. And it looks like you also answered your own question. You know what you got stuck on. You know you need to review your previous lessons. So, you just need to just do it.

I understand that you want to make progress, instead of just "reviewing", but think of it like this... the basics are your foundation. And if you don't build a strong foundation, understanding new stuff, is going to be more difficult.

Henry



EVERYBODY gets stuck ... all the time! It's normal. You'll have to get used to that.

In any case, having a good foundation with something as HUGE (HUGE HUGE) as Java is really is critical.

When I write code, like this morning, I am constantly doing searches to see little examples here and there. I understand Java quite well, am certified, and have been doing Java for 15 years, but every time you sit down to write something, it's usually just a little different than anything you've done before.

Take a class. Write lots of code. Watch videos. Get some books. Join a user group. Etc.

In five years (my opinion), for the average developer, you'll be competent (and confident)....though you'll still do lots of searching when you write code.

Java is huge. That's both a plus and (for beginners) a minus perhaps.

Just hang in there and have fun too.

- mike
 
Campbell Ritchie
Marshal
Posts: 68148
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quite right that everybody else forgets things and everybody else gets stuck. I suggest you identify one feature that you have difficulty with, and practice that. But don't simply write code. Write down what you think will happen with a pencil and paper (and an eraser, preferably a very large one), and compare that with what actually happens. If you have a data structure you are having difficulty with, draw it on your paper. And keep at it. Every time something goes wrong, working out why it went wrong will help you remember it.
 
Mike London
Bartender
Posts: 1748
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Quite right that everybody else forgets things and everybody else gets stuck. I suggest you identify one feature that you have difficulty with, and practice that. But don't simply write code. Write down what you think will happen with a pencil and paper (and an eraser, preferably a very large one), and compare that with what actually happens. If you have a data structure you are having difficulty with, draw it on your paper. And keep at it. Every time something goes wrong, working out why it went wrong will help you remember it.



Exactly. As a CS teacher once told me: "If you can't solve it on paper FIRST, don't expect to be able to solve it on a computer". Plus, going to the computer before figuring out the entire solution (step-wise refinement, etc.), will usually mean you'll never get any project done either.

HOPE THIS HELPS.

- mike
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lorenzo martinez,

Here are some good collection for java

1) Head and First(Core java as well as for servlet, JSP)
2) OCJP by Kaithi Sierra
3) The complete Reference
4) Effective java by Joshua Bloch
5) clean code by Robert C. Martin
 
Campbell Ritchie
Marshal
Posts: 68148
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I would suggest you forget about exam books until you have more experience. You will also find much of Effective Java™ difficult to read until you have more experience. I would suggest there are better books than the Complete Reference.
 
Sheriff
Posts: 15048
252
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One book I'd suggest is Think Like a Programmer by V. Anton Spraul. The book is about problem solving strategies and ways to attack a large problem systematically and logically. This is really where most people get stuck. The book's examples are in C++ but that's only a slight hindrance; the content is what is important and it's applicable in any language.
 
Ranch Hand
Posts: 514
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

lorenzo martinez wrote:i want to learn how to code using Java but don't know where to start. any suggestions will be deeply appreciated. tnx.


Hi Lorenzo, I would be glad to learn two things from you if you can and like to reply.
The first one is why you want to learn to code using Java, and the second one is did you try to find on the internet on a search engine  the keywords beginner Java? if so what is your major problem with that. Coding is about solving problems, continuosly.. what is the problem that obstacle you from learning java?
Thank you
 
Giovanni Montano
Ranch Hand
Posts: 514
10
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Giovanni Montano wrote:

lorenzo martinez wrote:i want to learn how to code using Java but don't know where to start. any suggestions will be deeply appreciated. tnx.


Hi Lorenzo, I would be glad to learn two things from you if you can and like to reply.
The first one is why you want to learn to code using Java, and the second one is did you try to find on the internet on a search engine  the keywords beginner Java? if so what is your major problem with that. Coding is about solving problems, continuously.. what is the problem that obstacle you from learning java?
Thank you


I missed your middle post. I got it where is the issue.
First of all you gotta love coding and reinforce the positive achievements you have it. If you are curious and get bored soon by things, coding is for you, because is an universe that will challenge you all your life, and month by month, day by day you will look back and you are going to see how much way you paved. If you forget things, repeat them regularly. if you do not understand concept give it time and earnests, but also let them go, is while you sleep that you consolidate the structure in your mind. Enjoy the feeling to see how things that were look mysterious after a while become simple.
If you do not understand something, internet and this forum are your friend. Once you consolidated java core the best is still to come, frameworks, design, testing, libraries, java official source, reviewing github code, debugging existing projects, understanding the so called "under the wood" will teach you a lot. Even the algorithms you mention.  If you enjoy the path more than the point of arrival, or in other words if you like coding more than anything else you will be successful, there is any other prescription in coding that being enthusiastic and focused keeping going whatever will happen, even if the results are not immediate, the seed needs time to grow under the soil, but once starts to bloom become always more magnificent
 
Ranch Hand
Posts: 570
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apart from the programming book, there are some useful programming forums you can find from internet such as coderanch, codeproject,dreamincode and stackoverflow
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!