• Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions on Access modifiers....  RSS feed

Ashish Shirbhate
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!