C++ vs Java for server application
Usually people want a low latency application so I don't know what you mean by low latency.
so even if i read things like java isn't today slower then native C/C++
Its still slightly slower, just not enough to matter most of the time.
For example, network IO is network IO regardless of the language you use. e.g. The language won't make your network faster or slower except in the most extreme low latency cases.
, because c/c++ is compiled to binary code, but java .class files are interpreted,
Java is compiled to native code at runtime so both system run native code in the end.
so there MUST be overhead in that translating.
There is a overhead on startup. But once the application is running, the impact is much less.
Have someone high latency app programmed?
If your network has high latency, your language is less likely to matter.
What you mean is better to use for that type of application?
I suggest you use the language you are most comfortable with.
App will be server for support real-time on web applications
In that case, your network latency is likely to be far higher than that of your application if you have coded it properly.
To give you a broad idea, a typical internet connect has a latency of 5 - 20 ms. A typical user can only react with a latency of 50 ms. A server with a latency of 20 - 50 ms can be written in just about any language. A server with a latency of 200 - 500 micro-seconds can be written in Java or C++. If you want less than 100 micro-seconds, including the latency to the client, you are looking at specialist hardware and some C++ code for your core engine. In that case, the server and the consumer will probably be in the same building, if not the same rack.