• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

So is it still Java?

 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yohan Weerasinghe wrote: Since Java is built on C++, ...

Where did you get this idea? It is simply false. The raw data types are the same as in C, but that's it. Java was designed to be far away from C++
 
Umesh Miie
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Blaine wrote:
Does Oracle make any money off Java ?


Will for one thing there is all the fees they charge for the Certificates they issue.
 
Martin Vajsar
Sheriff
Pie
Posts: 3751
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yohan Weerasinghe wrote:Anyway I have seen symbols like "->" which are pointer method calls in C++. Since Java is built on C++, this new version means Java new classes got access to pointers?

No, Java is not by any means "built on C++". The Java syntax was undoubtedly inspired by C/C++, but there's just a superficial similarity between the two.

Java 8 doesn't introduce pointers. The "->" token is used in definition of the Lambda expressions, as far as I know.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yohan Weerasinghe wrote:
Rob Spoor wrote:You can go ahead and program exactly like you used to, plus use the new classes and interfaces. Just because the new language constructs are there doesn't mean you are required to use them. However, I do think you should at least check them out a bit. I've skipped Java 5.0 and stuck to Java 1.4 for too long just because I was afraid of everything that was new. I missed out a lot back then. I haven't made the same mistake when Java 7 came out, and I won't make that mistake when Java 8 comes out.

That is really great to know! I am really happy now!

Anyway I have seen symbols like "->" which are pointer method calls in C++. Since Java is built on C++, this new version means Java new classes got access to pointers?


If -> means something in C++, does it mean that it should means the same thing in Java, C#, Objective-C?
Guess what -> do in Clojure.

And I'm not sure what do you mean by "Since Java is built on C++", because it isn't.
 
chris webster
Bartender
Posts: 2407
32
Linux Oracle Postgres Database Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat Farrell wrote:Java was designed to be far away from C++

Not far enough in my book....
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chris webster wrote:
Pat Farrell wrote:Java was designed to be far away from C++

Not far enough in my book....


I agree. Most of what I dislike about Java's inheritance is really from C. The special handling that makes int/char/float not be objects is terrible, but was a sop to C/C++ programmers.

But the deliberate choices to not have multiple inheritance, and not have const pointers to const things, etc. were big wins.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic