• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access specifiers and modifiers

 
sano vasu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends


what is the difference between access specifiers and access modifiers
as both are prefixed to a variable or a method.
 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The two terms mean the same and can be used interchangably. The four types of access available in java for variables and methods are: Private, Default, Protected and Public. Read more about them here
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vasu:

I note that you have recently changed your display name. However, your new name still does not comply with the JavaRanch Naming Policy. Please Change your display name to comply. (We are looking for a first and last name; preferably your own, but one that is at least not obviously fictitious.)

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic