Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

what is java modifeir

Thread view: 
gk - 04 Sep 2006 18:27 GMT
i find this keyword somewhere ..."Java modifiers" ....what is it ?

it seems , it modifies something....really ? what it modifies ?

say i write  int x=5 as a  class  member variable.....is there any
modifier here ?
Arne Vajhøj - 04 Sep 2006 18:33 GMT
> i find this keyword somewhere ..."Java modifiers" ....what is it ?
>
> it seems , it modifies something....really ? what it modifies ?

It is very easy to find with Google.

http://www.javacamp.org/javaI/modifier.html
http://www.uni-bonn.de/~manfear/javamodifiers.php
etc.

Arne
Stefan Ram - 04 Sep 2006 18:45 GMT
>i find this keyword somewhere ..."Java modifiers" ....what is it ?

 I've started a home page for Java modifiers:

http://purl.net/stefan_ram/garnoo/XOCONCEPTXSNOTATIONXSYJAVAXOSOURCEXGMODELXOSX7
9ZMBOLXSYMODIFIER


 From there, one can reach a page about access modifiers:

http://purl.net/stefan_ram/garnoo/XOCONCEPTXSNOTATIONXSYJAVAXOSOURCEXGMODELXSACC
ESSXGMODIFIER


 But I believe that this semantic net is still incomplete,
 so there might be other types of modifiers missing in this net.
gk - 04 Sep 2006 19:33 GMT
I saw the JAVACAMP site.

the  reason i posted  i am bit confused with java modifier and java
access specifier.

whether both are same or one is subset of other or the superset of
other.

access specifier is private,protected,public,defult....right ?

does all other things apart from these above speciffiers be called
"java modifier" ?

see,  there are so many of them like..static,final.....blah blah ...so
these are MODIFIER ?

MODIFIER AND ACCESS SPCIFIER  AND KEYWORD .....this is bit confusing

> >i find this keyword somewhere ..."Java modifiers" ....what is it ?
>
[quoted text clipped - 8 lines]
>   But I believe that this semantic net is still incomplete,
>   so there might be other types of modifiers missing in this net.
Stefan Ram - 04 Sep 2006 19:37 GMT
>the  reason i posted  i am bit confused with java modifier and
>java access specifier. whether both are same or one is subset
>of other or the superset of other.

 In such cases, it is best to load the Java Language Specification

http://java.sun.com/docs/books/jls/download/langspec-3.0.pdf

 and then look up the terms in the index, which is also online at

http://java.sun.com/docs/books/jls/third_edition/html/j3IX.html

 or do a full-text search in the PDF, if the index-approach
 does not give the answer.

 I believe that an access specified is a special case of a
 modifier.
gk - 05 Sep 2006 14:12 GMT
>I believe that an access specified is a special case of a
>modifier.\

OK.

there is  "KEYWORD" also ....whats that  then ? how can we
differentiate with modifier,access specifier and keyword ?

> >the  reason i posted  i am bit confused with java modifier and
> >java access specifier. whether both are same or one is subset
[quoted text clipped - 13 lines]
>   I believe that an access specified is a special case of a
>   modifier.
Chris Uppal - 05 Sep 2006 16:03 GMT
> there is  "KEYWORD" also ....whats that  then ? how can we
> differentiate with modifier,access specifier and keyword ?

Modifiers are part of Java's semantics -- part of the /meaning/ of a Java
program.  And, as such, they are equally important no matter how you are
handling Java.  For instance if you are using reflection, you can still ask
whether a particular method is public, or static, or synchronised, even though
you have no access at all to the source for that class.

Keywords are part of the /syntax/ of the Java language.  There are many
keywords, some of them are used to tell the Java compiler what modifiers to
apply to a method (or whatever), others are used for different purposes (such
as "for", "case", "return").  The important thing is that by the time the
compiler has finished reading your source code, they are no longer important.
They are gone, forgotten...   You could trivially design a different language
with a completely different set of keywords (and generally different syntax),
where the programs /meant/ exactly the same as some Java program (and compiled
to exactly the same bytecode, and ran identically) but where the expression as
source code was completely, but superficially, different.

Keywords are part of how Java is written down; modifiers (including access
specifiiers) are part of the meaning of what you write.

   -- chris


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.