jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes semantics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "semantics" Watch "semantics" New topic


Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
What is semantics in Java? As I understand for example: public , private, int, double are semantcs.. Right?
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
The symantics of a language is the proper structure of the language.
From Dictionary.com:

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

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
I'm not really sure what you are asking, but public , private, int, double are examples of keywords/reserved words in java.

SCJP 1.4
Have you checked out Aspose?
subject: semantics
It's not a secret anymore!