• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Keywords doubt -Please help me

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys
whether strictfp is java keyword or not
whether main is java keyword or not
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
strictfp is a new keyword introduced for JDK 1.2. Details on it and it's uses are HERE .
main isn't a keyword. The only restriction there is on main is the signiture of the main method that is used by the JVM to run a class. You can have as many main methods in your class that you wish with any method signiture that you wish.

[This message has been edited by Carl Trusiak (edited September 18, 2000).]
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
strictfp is a keyword
main is not
I tried this program:
class A
{ int strictfp = 1; // compiler errror message
int main = 1; // it's OK
}
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

strictfp is a java keyword
main is not a java keyword
Regards,
Pragya
 
reply
    Bookmark Topic Watch Topic
  • New Topic