Java is similar in syntax to what other high level language?

Java is similar in syntax to what other high level language?

a) Pascal
b) Ada
c) C++
d) FORTRAN
e) BASIC

Answer:  c.

Explanation:  The creators of Java decided to use syntax similar to C++ so that C++ programmers could easily learn Java.  Variable declarations, assignment statements, loops, selection statements and comments are among the features that have nearly identical syntax.  There are many differences however, so don’t assume that any C or C++ programmer will easily or instantly be able to program in Java.


Java

Learn More Multiple Choice Question :