Avatar of learner-security
learner-security
 asked on

java vs c++: for Native programming including Operating System calls?

Does C++  provide anything special for Native programming including Operating System calls? What is that? Also, someone working in music streaming said that they had to use C++ where Java wasn't the answer. What will be those scenarios? Scalability, code deployment on different platforms, efficiency, security - are any of these the reasons?
Java EEWeb Components

Avatar of undefined
Last Comment
dpearson

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
dpearson

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
learner-security

ASKER
Thanks Doug!
I am guessing almost all OS are written in C/C++? Isn't Java itself is written in C/C++?
SOLUTION
dpearson

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
learner-security

ASKER
Thanks Doug!  That does sound clever.

However, Java does have Runtime r = Runtime.getRuntime(); where someone call System calls. How is that different than calling OS calls from C++?


And if we don't have a way to make OS calls in Java, do we make call to C++ code from Java?
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23