Professional Documents
Culture Documents
Discussion Forum
Discussion Forum
Meaning. A java program with a syntax error cannot be compiled. A program with a
Semantic error can be compiled and run, but gives an incorrect result. A missing
Find the error and report it. If N is an integer variable, then the statement "franc =
1/N;" is probably an error of semantics. The value of 1/N will be 0 for any N greater
Name. The box is holds a value of some specified type. A variable declaration
Into x;
Which creates the variable x. When is the computer executes a variable declaration, it
Creates the box in memory and associates a name (in this case, x) with that box.