Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-27-2009, 07:28 AM
Member
 
Join Date: Nov 2009
Posts: 9
Rep Power: 0
katon is on a distinguished road
Unhappy what is java logically as opposed to syntactically
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
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-27-2009, 07:33 AM
Senior Member
 
Join Date: Nov 2009
Posts: 206
Rep Power: 1
collin389 is on a distinguished road
Default
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; }
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-27-2009, 08:15 AM
Member
 
Join Date: Nov 2009
Posts: 9
Rep Power: 0
katon is on a distinguished road
Default
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 ....

if u do have any googled links it would be very helpful
thx
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-27-2009, 09:36 AM
Senior Member
 
Join Date: Nov 2009
Posts: 206
Rep Power: 1
collin389 is on a distinguished road
Default
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...
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 11-27-2009, 09:46 AM
Member
 
Join Date: Nov 2009
Posts: 9
Rep Power: 0
katon is on a distinguished road
Default
Originally Posted by collin389 View Post
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...
is this a simplistic answer?? any ideas of any links on the web on this subject?

What do u mean by "as well as what the compiler wants in the code"?

Thx
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 11-27-2009, 09:54 AM
Member
 
Join Date: Nov 2009
Posts: 3
Rep Power: 0
Crapman is on a distinguished road
Default
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.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 11-27-2009, 10:06 AM
Member
 
Join Date: Nov 2009
Posts: 9
Rep Power: 0
katon is on a distinguished road
Default
Originally Posted by Crapman View Post
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
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 11-27-2009, 10:26 AM
Senior Member
 
Join Date: Sep 2008
Location: Voorschoten, the Netherlands
Posts: 1,269
Rep Power: 3
JosAH is on a distinguished road
Default
Originally Posted by katon View Post
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
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 11-27-2009, 10:35 AM
Member
 
Join Date: Nov 2009
Posts: 9
Rep Power: 0
katon is on a distinguished road
Default
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?
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 11-27-2009, 10:44 AM
Member
 
Join Date: Nov 2009
Posts: 9
Rep Power: 0
katon is on a distinguished road
Default
Originally Posted by JosAH View Post
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
Thanks for the reply I am looking into JLS...

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?

i apologise for being repetitive
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 11-27-2009, 11:52 AM
Senior Member
 
Join Date: Apr 2009
Posts: 944
Rep Power: 1
Tolls is on a distinguished road
Default
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.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 10:24 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org