Talk:Comparison of Java and C++: Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
m Signing comment by 79.113.42.109 - "Syntax power!: "
Line 637:
If someone could explain this organization to me, then that would be great, and perhaps we could explain it in the intro. Otherwise, does anyone object to me trying to reorganize it? I can place my suggestions for difference categorization here first.
[[ User:dmyersturnbull | &nbsp;<font color="#005000">dm</font><font color="#555555">yers</font><font color="#005000">t</font><font color="#555555">urnbull</font>&nbsp; ]] ⇒ [[User_talk:Dmyersturnbull|talk]] 21:42, 22 May 2009 (UTC)
 
== Some missing points ==
 
I think there are a few points that are either glossed over or not discussed thoroughly enough in this article. Here's a list of what I think could be covered better:
* Java is a typesafe language. Many errors that can happen in C++ are either disallowed by Java's bytecode verifier or trapped at runtime. [[Buffer overflow]] problems are just one example.
* Java does not have the [[fragile binary interface problem]] problem that C++ does. This is glossed over by the general term "binary compatibility", but the article doesn't seem to explain the repercussions of binary compatibility or the lack of it.
* Java does not have separate [[header files]] as C++ does. This could be consider a strength or weakness, but some advantages are that makefile dependencies do not need to be updated in Java, and Javadoc comments allow documentation for classes and interfaces separate from the source code.
* C++ must be recompiled for each different platform.
I'm not trying to advocate Java over C++. I like both languages, and each has its strengths and weaknesses, but Java's main strengths seem to be mentioned only in passing in this article. -- [[User:Schapel|Schapel]] ([[User talk:Schapel|talk]]) 13:56, 13 May 2011 (UTC)