Whenever you find yourself asking "if A is true, then how come B is true?" you should ask yourself "is A actually true?".
Neither Java nor C++ are scripts, be it client-side or server-side. They're programming languages.
Therefore, a Java or C++ program would usually not be referred to as a "script".