Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are different types of access modifiers?

Answer Posted / nani

Private : It can access with in the class only
public :It can Access Any where in java program
proteced:It can access with in the package and sub class of
the package also
default:it access with in the java program.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between getting and load method?

1192


What is static variable with example?

1011


what are abstract functions?

1028


What is oop principle in java?

1164


Who developed java?

990


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

989


What is derived datatype?

1218


What is Major and importance difference between for and foreach loop ?

1152


Define iterator and methods in iterator?

966


Why is inheritance used in java?

1122


Explain the differences between abstraction and encapsulation?

1055


How do you test a method for an exception using junit?

1210


What does indexof return in java?

991


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

982


What is boolean data type in java?

997