What do u mean by...you should know java logically and syntactically.... your reply would be of great help....any googled links out there on this?
Probably searching the wrong key words here:(
Printable View
What do u mean by...you should know java logically and syntactically.... your reply would be of great help....any googled links out there on this?
Probably searching the wrong key words here:(
You should know the logic behind what each command does, as well as what the compiler wants in the code.
the logic of an if statement would be: if a is equal to b then do c, otherwise, do d
syntactically it would be: if (a == b) { c; } else { d; }
by logic u mean an understanding of the code...that i do.....i understand the logic of the syntax-ie the sequence of code operation.....but what of what the compiler wants...pls explain what that means ....:eek:
if u do have any googled links it would be very helpful:cool:
thx
syntax is like knowing what you have to actually type in order to make a program do what you want logically. The syntax includes having to type all the braces {} and semicolons ; and knowing that in order you make a method you have to have the return type and that the parameters go inside the () etc...
Syntactically means being able to write and compile the code.
Syntax error means being unable to compile a code.
Logically means to understand what the code does.
Logic error means to be able to compile but the program is unable to work like how u want it to.
Basically Im going to do a masters course and they have said asked me to
"get your hands on java perfectly,just not syntactically but logically"
any key words I can use on google to read up on this? how can I prepare for this? Any information you've got would be helpful.
Thx for the reply
The word here is 'semantics' which means the meaning of statements, expressions and definitons in Java. The authoritative text on this is the Java Language Specification (JLS); it is a lawyer-text on the language (syntax) and its meaning (semantics).
kind regards,
Jos
in case im being ambiguous......i now understand what logic error is ...but what course of action should I take to satisfy this:
"get your hands on java perfectly,just not syntactically but logically"
I mean, how can I prepare for this?:confused:
If you read and understand the JLS, and also know Java syntax and structure, I doubt you'll have a problem.
I can't think what else they could actually mean.