access modifier

access modifier

View Answers

April 21, 2009 at 11:32 AM

Hi Friend,

Access Modifiers:

Public Modifier- The public members can be accessed anywhere by any class or package.

Private Modifier- The private members can only be accessed within the class and cannot be accessed outside the class.

Protected Modifier- The protected members can be accessed within the class.It can also be accessible to the subclasses of the class in which the member is declared, that means, if any member is declared protected then all the methods and attributes of the base class will be available to all its derived classes.

Default - If no access modifier is being specified for a member, it gets the default access.It can be accessed within the package only.

Thanks









Related Tutorials/Questions & Answers:
access modifier - Java Interview Questions
access modifier  can someone explain to me all about java access modifier including the defualt modifier.  Hi Friend, Access Modifiers... will be available to all its derived classes. Default - If no access modifier
modifier and specifier
modifier and specifier  what is diff between Access modifier and specifier
Advertisements
Access Modifier
Access Modifier       Functionality The AccessModifer Plug-in for Eclipse allows the user to change the visibility (public, protected, default, private) and other
ModuleNotFoundError: No module named 'curl-modifier'
ModuleNotFoundError: No module named 'curl-modifier'  Hi, My... 'curl-modifier' How to remove the ModuleNotFoundError: No module named 'curl-modifier' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'jaeum-modifier'
ModuleNotFoundError: No module named 'jaeum-modifier'  Hi, My... named 'jaeum-modifier' How to remove the ModuleNotFoundError: No module named 'jaeum-modifier' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'clipboard-modifier'
ModuleNotFoundError: No module named 'clipboard-modifier'  Hi, My... named 'clipboard-modifier' How to remove the ModuleNotFoundError: No module named 'clipboard-modifier' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'curl-modifier'
ModuleNotFoundError: No module named 'curl-modifier'  Hi, My... 'curl-modifier' How to remove the ModuleNotFoundError: No module named 'curl-modifier' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'jaeum-modifier'
ModuleNotFoundError: No module named 'jaeum-modifier'  Hi, My... named 'jaeum-modifier' How to remove the ModuleNotFoundError: No module named 'jaeum-modifier' error? Thanks   Hi, In your python
access
access   This is Nitha Sriram i am having a problem that, i am having a combo box in the JSP page when i select an item from that i am calling the onchange function. In javascript i am getting the value now i want to pass
ModuleNotFoundError: No module named 'circus-env-modifier'
ModuleNotFoundError: No module named 'circus-env-modifier'  Hi, My... named 'circus-env-modifier' How to remove the ModuleNotFoundError: No module named 'circus-env-modifier' error? Thanks   Hi
ModuleNotFoundError: No module named 'nose-docstring-modifier'
ModuleNotFoundError: No module named 'nose-docstring-modifier'  Hi...: No module named 'nose-docstring-modifier' How to remove the ModuleNotFoundError: No module named 'nose-docstring-modifier' error? Thanks   
ModuleNotFoundError: No module named 'wsgi-content-modifier'
ModuleNotFoundError: No module named 'wsgi-content-modifier'  Hi...: No module named 'wsgi-content-modifier' How to remove the ModuleNotFoundError: No module named 'wsgi-content-modifier' error? Thanks   Hi
ModuleNotFoundError: No module named 'circus-env-modifier'
ModuleNotFoundError: No module named 'circus-env-modifier'  Hi, My... named 'circus-env-modifier' How to remove the ModuleNotFoundError: No module named 'circus-env-modifier' error? Thanks   Hi
ModuleNotFoundError: No module named 'gulp-metadata-modifier'
ModuleNotFoundError: No module named 'gulp-metadata-modifier'  Hi...: No module named 'gulp-metadata-modifier' How to remove the ModuleNotFoundError: No module named 'gulp-metadata-modifier' error? Thanks   Hi
Class Modifier Example
Class Modifier Example       In this section you will learn how to retrieve modifier's...;(Modifier.isPublic(modifier))  System.out.println("public");   
Access Specifiers and Access Modifiers
Access Specifiers and Access Modifiers  What are Access Specifiers and Access Modifiers
access specifiers and access modifiers
access specifiers and access modifiers  I want a powerpoint presentation for access specifiers and access modifiers. Please send me the same and soon
Access Modifiers
: Its not a keyword. When we don't write any access modifier... Access Modifiers       Access Modifiers : Access modifiers are used to specify the visibility
Access Specifier
Access Specifier  What's the usage of getter and setter in access specifier? Thank You
assert,access modfier - Java Interview Questions
assert,access modfier  can someone explain to me what assertion is all about in java. and what access modifier is transient  Hi Friend.../javatutorials/use-assertion-in-java.shtml Transient Modifier: The transient
Access level
Access level  Which access level allows exclusive access to the attributes and methods that belong to a class or classes derived from that class? default protected public private
How to Access MS Access in jar.
How to Access MS Access in jar.  how do i access my Ms-Access file... to access it via Code or is their any alter-native?? Do i need any Driver to do this ... i m able to access a Ms-access via JDBC but cant find the file wen
ms access
ms access  how to delete the autonumber from ms access using java delete code
connectivity with access
connectivity with access  how to connect with data base with access...; Is this Access database or excel sheet. Do you want to display the values...;Is this Access database or excel sheet. Do you want to display the values in Textarea
MS access
MS access  how do i access my Ms-Access file placed in the same jar file where my application code/class file r present??? Want to access it via Code. Can anyone help me ? Please give reply urgent...   give me reply
Ms Access
Ms Access   How to get query for Primary key from MsAccess?   SELECT column_name FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE table_name = 'data';   SELECT column_name FROM INFORMATION_SCHEMA.KEY_COLUMN
Access specifiers
Access specifiers  Why we are giving "public static void main"? How many times declared the main()?   Hi Friend, We used this statement as it provides the "entry point" for the program. Whenever the program executes
MS-Access
MS-Access  I am trying to upload a image to ms-acess using jsp,and my problem is that it shows some error int the browser that "java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect ".I think i set
access into radio button
access into radio button  access the four fields of database called access,access file and stored in radio button.please help
ms access
has to login . i already created ms access page and inserted values throught... and password" from my ms access............and detail in register(table in my ms access) need to display values in jsp .............please help me dis is my
ms access
has to login . i already created ms access page and inserted values throught... and password" from my ms access............and detail in register(table in my ms access) need to display values in jsp .............please help me dis is my
ms access
has to login . i already created ms access page and inserted values throught... and password" from my ms access............and detail in register(table in my ms access) need to display values in jsp .............please help me dis is my
ms access
has to login . i already created ms access page and inserted values throught... and password" from my ms access............and detail in register(table in my ms access) need to display values in jsp .............please help me dis is my
MS ACCESS
-> data sources. 2)Click Add button and select the driver Microsoft Access... = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb... CONNECTION (MA ACCESS) LET ME KNOW IN MY PROGRAM WHERE I AM GOIN WRONG PLEASE
MS ACCESS
-> data sources. 2)Click Add button and select the driver Microsoft Access... = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb... CONNECTION (MA ACCESS) LET ME KNOW IN MY PROGRAM WHERE I AM GOIN WRONG PLEASE
MS ACCESS
-> data sources. 2)Click Add button and select the driver Microsoft Access... = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb... CONNECTION (MA ACCESS) LET ME KNOW IN MY PROGRAM WHERE I AM GOIN WRONG PLEASE
insert code jsp to access
insert code jsp to access   insert code jsp to access
Random Access File.
Random Access File.  Explain Random Access File
connect many access sheet to one access sheet
connect many access sheet to one access sheet   hellow sir. i have six application page it has attribute name rollno(primary key) and attendance... access sheet as name rollno attendance of 1,2nd,3rd.....6th
How to access Subclass?
How to access Subclass?  How to access subclass in java? please tell me the syntex with an example
Java access modifiers
Java access modifiers  If a class is declared without any access modifiers, where may the class be accessed
Access Infotech, Hyderabad - JDBC
Access Infotech, Hyderabad  Hello friends Access Infotech is the fast growing company in hyderabad
Access web.xml init parameters
Access web.xml init parameters  How to access web.xml init parameters from java code
VoIP Access
VoIP Access Mediatrix VoIP Access Device The Mediatrix 2102... modem - without the need for an external router. The Mediatrix 2102 VoIP access... Access Telecom carriers have been launching IP-based services to meet
ModuleNotFoundError: No module named 'access'
ModuleNotFoundError: No module named 'access'  Hi, My Python... 'access' How to remove the ModuleNotFoundError: No module named 'access'... to install padas library. You can install access python with following command
Random Access File class
Random Access File class  Write a short note on Random Access File class.   Please visit the following link: Java Random Access File
Access Infotech - Java Beginners
Access Infotech  Best Growing IT Company in hyderabad(Access Infotech) Access Infotech unit 4b,4th floor, topaz building, punjagutta, hyderabad-500082. for more queries contact tel:-04030584311 www.accessinfotech.in
Jdbc MS-Access question
Jdbc MS-Access question  How to delete records from the three table in MS-Access? They are in relationship with each other regarding to data field
Jdbc MS-Access question
Jdbc MS-Access question  How to delete records from the three table in MS-Access? They are in relationship with each other regarding to data field
Data Access Object
Data Access Object  Hi sir/madam please give me some tutorial/example about Data Access Object   Hi Please Find the example of Java Data Access Object http://www.roseindia.net/tutorial/java/jdbc

Ads