answersLogoWhite

0


Best Answer

We define the access specifier of a function at the place of its method signature(The place we write the method's name).

for example,

public void sample()

{

}

here "public" is the access specifier of function name-sample.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Where do you define the access specifier for a java method properties?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is an access specifier?

An access specifier is a keyword applied to a variable, or method, which indicates which parts of the program are permitted to access it.


What does In public mean?

The keyword public is an access specifier. A variable or a method that is declared public is publicly accessible to any member of the project. Any class or method can freely access other public methods and variables of another class.


What type of logical access control method allow you to define who can access an object and the type of access that they will have to that object?

Access control list


Which is java default access specifier?

There is no such thing as an access specifier in Java. There are access modifiers.The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'


Does an access method define the way information is transported through the network?

true


Access specifier in java?

There is no such thing as an access specifier in Java. There are access modifiers.An Access Modifier is a key word in java that determines what level of access or visibility a particular java variable/method or class has. There are 4 basic access modifiers in java. They are:1. Public2. Protected3. Default and4. PrivatePrivate is the most restrictive access modifier whereas public is the least restrictive. The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'.


If a data-item is declared as a protected access specifier then it can be accessed?

A class method or attribute (data item) that is declared protected can be accessed only by methods of the same class or by methods of derived classes of the class.


Name and define the method dos used to speed up disk access?

backup method involves not using tapes by making day to day work.


What is the tabular method?

define tabular method


Can we write static public void main in java?

the method of an class that can is triggered when starting a Java application e.g. by running the command: "java MyProgram" Answer Public is an Access Specifier,static is a keyword which illustrates that method shared along all the classes.void illustrates that this method will not have any return type.main is the method which string has an argument. Public specifier makes the method visible outside the Class and because of the static nature of the method, JVM can call this main method without instantiating the class 'MyProgram'.


What does public mean in java?

The keyword public is an access specifier. A variable or a method that is declared public is publicly accessible to any member of the project. Any class or method can freely access other public methods and variables of another class.


The frist step of the scientific method is to define or identify the blank?

The first step of the scientific method is to define or identify the problem.