Solved

Java prerequisites

Posted on 1997-12-17
1
715 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

778 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