Solved

Java prerequisites

Posted on 1997-12-17
1
710 Views
Last Modified: 2010-05-18
How much C++ should a person know in order to learn Java comfortably?

--- C
0
Comment
Question by:clara
1 Comment
 
LVL 16

Accepted Solution

by:
imladris earned 50 total points
ID: 1231693
The syntax of Java is very closely related to C and C++. So the more familiar one is with C or C++ the easier that aspect will be. Unlike those, Java is much more strongly geared towards Object Orientation. Where in C and C++ you can write procedural programs as before, in Java this is more tedious. In C and C++ you can write free standing functions. In Java you can't; everything is an Object.
The other substantive difference is the event model. This is more of an environment or Operating System issue, but as Java is multiplatform by design, it gets drawn into effort of learning the language. The event model is supported by the standard Java classes (kind of like the standard library in C) and will bear study, regardless of other experience.
On the other hand, as I'm sure you've heard, there are far fewer ways to quietly shoot yourself in the foot (i.e. without noticing until it is far too late). All the memory management issues, and the sometimes arcane rules about type casting, promotion and portability etc. etc. are done away with in Java.

So in summary, I suppose one could say that a working knowledge of C/C++ gets you half or three quarters of the way there; on the other hand it's not necessary.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now