Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions on Access modifiers....

 
Ashish Shirbhate
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers this one would sound silly..but can anyone please help me understanding the questions on access modifiers
one of the question :
Which of the following are Java modifiers?

1) public
2) private
3) friendly
4) transient
5) vagrant

I thought the answers must be 1 and 2 only since as per K&B
access Modifiers : public,protected & private
non access modifiers : strictfp,abstract and final
access levels : default,public,protected & private

but the answer to the question is 1,2 and 4..Can somebody please explain how???
 
wise owen
Ranch Hand
Posts: 2023
 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!