• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

So is it still Java?

 
Rancher
Posts: 4804
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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++
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 2407
36
Scala Python Oracle Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4804
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
A day job? In an office? My worst nightmare! Comfort me tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic