M
M
Moolzv Rivers2019-07-21 17:21:11
Java
Moolzv Rivers, 2019-07-21 17:21:11

What is JAVA cross-platform?

Hello! I write in C ++, it’s difficult to learn further, but somewhere I’m looking for strength. I came across a bunch of people who advised me JAVA. I want to develop applications for all platforms (at least Windows, Linux). When I started writing in JAVA, I had a question - "What is its cross-platform?". After all, I can’t still run something written in JAVA on Linux, on Windows, for example. So also there you need to write 150 lines of code for the sake of a simple program. But in C ++ you can write a program, compile it for Windows and for Linux, and it will not be difficult, and the programs written in C ++ will work forever, because they do not depend on the system. So - "Why is JAVA cross-platform, if compared to C ++, there is more to scold, but at the same time in C ++ I can run applications on both Linux and Windows,

Answer the question

In order to leave comments, you need to log in

9 answer(s)
A
Andrew, 2019-07-21
@SaddledSharp

In short:
The fact that the bytecode for the JVM can be executed wherever the JVM is installed.
The code does not need to be recompiled for each of the platforms.
https://stackoverflow.com/a/5978036/2981702

S
Sergey Gornostaev, 2019-07-21
@sergey-gornostaev

How is creating a JVM for specific platforms "better", "simpler", "more advanced", "more correct" than writing compilers for the same platforms?

R
Ronald McDonald, 2019-07-21
@Zoominger

Java is cross-platform in that you can run your code on all popular platforms, including ancient mobile phones and microwaves.
To be honest, I read some nonsense.
Yes, C++ can be compiled for all popular platforms, but not, for example, for my old Symbian phone and a dozen other platforms dominated by Java.

V
vanyamba-electronics, 2019-07-21
@vanyamba-electronics

There are two ways to distribute a C++ program: as a binary and as source code.
As a binary, you will need to compile each new version for different versions of Windows and different Linux distributions. I have no idea how much such a program would have to cost to make it profitable.
The Java program is distributed as a zip archive with source code and only requires the user to install the Java distribution on their computer. Which is much more convenient for the developer. And it is able to work even in Android (relatively speaking).

O
Olga Isakova, 2017-11-09
@elmurzaalchakov

I advise you to read online publications, as books often do not keep pace with the development of technology. There are excellent fundamental works in English here: nakamotoinstitute.org/literature/.
Useful Russian-language sites: https://forklog.com/, https://bitnovosti.com/
A good video about the basics of cryptocurrencies: https://www.youtube.com/watch?v=bBC-nXj3Ng4 (there are subtitles in Russian from me :))
Also, to understand ICO, you need to understand Ethereum a little. Good materials are here: https://ethclassic.ru/
And if English is OK, listen to the speeches of the most sane blockchain researcher: https://www.youtube.com/channel/UCJWCJCWOxBYSi5DhC...
He has a book (the first 5 chapters are not very technical) : mirknig.su/knigi/programming/161246-mastering-bitc ... bitcoinbook.info/translations-of-maste...

R
Ruslan Rabii, 2019-03-07
@ravvi20

Independently collected a textbook, who needs it - write in a personal.

F
fdroid, 2017-10-31
@fdroid

But take it and write how, how and, most importantly, why you can use the blockchain in the work of, for example, a store. Specific situations and solutions, and not just try to ride on a fashionable topic.

A
Anatoly Pontyuko, 2017-11-01
@Pointman

alas, I haven’t seen anything suitable in Russian, as only English-language sources wrote above

A
alexdora, 2017-11-05
@alexdora

According to the classics of the genre, you first need to buy one bitcoin and fuck it))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question