Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

public static

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello can you please tell me that why is public and static are used in program lso tell that what does final reffer to
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public is used while declaring classes and variables to make accesable to all other classes (i.e why we make them public ).
On other hand static variables and functions are used in a public static void main (String arg[]) block ....any prb yet ..write to me .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic