• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question For Cay Horstmann  RSS feed

 
Bahram Ismayilov
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome DR. Horstmann. I have a question about your "Core Java: Volume I" book. Now I am really a beginner in programming. Beginner means only some C and C++ knowledge I have. Can I start to learn Java with starting to study your book directly?
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends how much object‑oriented programming you understand.
 
Cay Horstmann
author
Ranch Hand
Posts: 197
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, it depends on how much C/C++ knowledge you have. I am just now teaching a college course where we use Core Java. It is meant for students who are fluent in C/C++ and want to master Java. So, on day 1, I gave two assignments. In their choice of C or C++.

Assignment 1: Given an array, swap the smallest and largest value.
Assignment 2: Given two strings, intermingle their characters. For example, "Hello" and "World" turn into "HWeolrllod".

More than half of the class dropped the course right then and there.

If you can implement these two assignments in C or C++, Core Java is for you. If not, you need to get up to speed in programming. One good free resource is the online Udacity course CS046, https://www.udacity.com/course/intro-to-java-programming--cs046. (Just say "no" when they ask you to pay for tutoring or a certificate--the course was originally developed to support high-school and college students, and then they changed their business model.)

Cheers,

Cay
 
meenakshi sundar
Ranch Hand
Posts: 163
1
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I would highly recommend finding some resources that highlight the differences between Java and C++. This is very useful because the subtle differences can throw you off, I myself shifted from other background to Java (16 years ago). It took me a while to reconcile to the fact that you cannot do certain things in java which can in languages such as C++ ....override private methods (functions) ,,,.

And then jump to,

Headfirst java orielly

cay horstmann's "core java" ,The Author we are in discussion with in this thread,Welcome Cay!

Java Concurrency in Practice by Brian Goetz( is an awesome book on threads and the java.util.concurrent packages. A definite read if you'll be doing any type of threaded programming)

Effective Java


And some fantastic valuable resources available in,

javaranch.com
infoq.com
theserverside.com
javaworld.com
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
meenakshi sundar wrote:. . . resources that highlight the differences between Java and C++ . . . because the subtle differences can throw you off . . .
Agree. I am not aware of that many references which explain such differences, but here is one.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!