answersLogoWhite

0


Best Answer

It means that the method is visible from only within the current method. Also, any class that wants to use or invoke the private method has to create an object of the class in which the method is created in order to access/invoke it. The private access modifier is the most restrictive of the four java access modifiers. The total opposite of private is public which gives access to everyone.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

If we are giving private accessibility to the method then it is not possible to access that method from outside the class.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is meant by private visibilty of a method?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is meant by method related charges in construction?

Method related charges


What does private thoughts mean?

Private thoughts are thoughts that are not meant for everyone to know.


Any method in a super class can be overridden in its subclass?

False.Any method declared as final cannot be overridden by any subclasses.You also cannot technically override a private method. While your subclass can have a method with the same definition as a private method in the superclass, it does not actually override that method.


What is meant by private enterprises?

A private enterprise is a business run for-profit and not owned by a government.


Can a private method be overridden?

No. A method that is declared as private in a class is not inherited by any other class and hence if another class that extends this class declares a method with the same name and signature, it does not mean that this method is overridden. It is an entirely separate entity.


What causes a white out in the the tudra?

Lack of visibilty can be caused by snow, sleet, or hail in the tundra.


What is it meant by private?

Private means for use by one person or by selected people. Non-public.


Why Polling method is used?

to private theft of votes


What happen if Private is applied to a method in a class?

The method is only accessible to the class and friends of the class.


Private Finance Initiative?

is a method to provide financial support for 'public-private partnerships' (PPPs) between the public and private sectors.


What are public goods and private goods?

Public goods are goods meant for everyone to share. Private goods are goods meant for one person or one small group of people.


Can the void run method be declared as private?

Sure you can. The run method is just another java method that you can modify to be private or protected or have return types as Strings etc. But, this run method will not be invoked when you start the thread. Only the default public void run() will be invoked when you do a thread.start()