Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

semantics

 
Mike Shn
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is semantics in Java? As I understand for example: public , private, int, double are semantcs.. Right?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The symantics of a language is the proper structure of the language.
From Dictionary.com:

se�man�tics
1. The study or science of meaning in language.
2. The study of relationships between signs and symbols and what they represent.
3. The meaning or the interpretation of a word, sentence, or other language form: We're basically agreed; let's not quibble over semantics.

And if you were looking for examples of symantical errors, just listen to Gee Dubwa for a couple of minutes.
Good Luck,
-Dirk Schreckmann
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not really sure what you are asking, but public , private, int, double are examples of keywords/reserved words in java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic