• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What features C++ has, but Java is missing

 
Jane Somerfield
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Point, destructor, template?
Any more?
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
True multi-dimensional (e.g. rectangular) arrays
Pointers to primitive data types
Pointers to functions
Pointers to methods
Multiple inheritance
Functions that take variable numbers of arguments (especially the printf and scanf families)
Call-by-reference parameters
Operator overloading
 
Norm Miller
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also,
enums and unions ( although there are Java work-arounds for these )
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java and c# Comparison form the JavaRanch Newsletter.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think "missing" is a bad word to use. I think the statement should be "What features C++ has, but JAVA doesn't need."
I get tired of people comparing languages like this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic