Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
Java access modifiers
1 Answer(s)      4 years and 3 months ago
Posted in : Java Interview Questions


If a class is declared without any access modifiers, where may the class be accessed?

Advertisement
View Answers

October 28, 2010 at 1:05 PM


Hi,

Here is the answer,

A class that is declared without any access modifiers is said to have package access. Thismeans that the class can only be accessed by other classes and interfaces that are definedwithin the same package.

Thanks.



Related Tutorials/Questions & Answers:
Java access modifiers
Java access modifiers  If a class is declared without any access modifiers, where may the class be accessed
Access Modifiers in java
Access modifiers are used to specify the visibility and accessibility of a class, member variables and methods. There are four type of access modifiers public protected private default For more details about access
Advertisements
what is the difference between access specifiers and access modifiers in java?
what is the difference between access specifiers and access modifiers in java?  what is the difference between access specifiers and access modifiers in java
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
Explain various access modifiers and their visibility.
Explain various access modifiers and their visibility.  Explain various access modifiers and their visibility.   Please visit the following link: Java Access Modifiers
Access Modifiers
Access Modifiers       Access Modifiers : Access modifiers are used to specify the visibility... some access modifiers like: public, private etc.. These can also be used
Java modifiers
Java modifiers   What modifiers can be used with a local inner class
Java modifiers
Java modifiers  What modifiers are allowed for methods in an Interface
Java modifiers
Java modifiers  What modifiers may be used with top-level class?  The top level class may used only public,final or abstract modifiers
Nonaccess Member Modifiers - Java Beginners
Nonaccess Member Modifiers  what is Nonaccess Member Modifiers give me the simple programs thxx   Hi friend, Non-access modifiers... be variously applied to different Java elements. An abstract class cannot
Modifiers are allowed in interface
Modifiers are allowed in interface  hello, What modifiers are allowed for methods in an Interface?   hello, Only public and abstract modifiers are allowed for methods in interfaces
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
Access and Java - Java Beginners
Access and Java  A construction company has specialized in planning...: MS Access, A employee database using Access and SQL which keeps the records... the employee records in EXCESS and convert it to JAVA programing with solid and simple
java access resource bundle
java access resource bundle  java access resource bundle   //resource bundle <resource-bundle> <base-name>/resources...; // access bundle import java.util.ResourceBundle; ResourceBundle rb
how to access the MS ACCESS database with java
how to access the MS ACCESS database with java   how to access the MS ACCESS database with java how can we insert,delete,update,search records of ms access with java   Java MS Access database connectivity Follow
Access Modifiers and Garbage Collection
Access Modifiers and Garbage Collection  ... provide public and private access modifiers as well. 3. @protected accessifier... Objective-C's ability to integrate with C++ code and libraries Access Privileges
What modifiers are allowed for methods in an Interface?
What modifiers are allowed for methods in an Interface?   Hi, What modifiers are allowed for methods in an Interface? thanks
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
how to access the MS ACCESS database with java - Java Beginners
how to access the MS ACCESS database with java  how can we insert,delete,update,search records of ms access with java
Access - Java Beginners
Access  Access infotech Best growing company in IT industry in hyderabad Best place to work beginning IT careers  Expert:peter Access infotech Best growing company in IT industry in hyderabad Best place to work
java &ms access - JDBC
java &ms access  Seasons Greetings, Am, creating an application for a food festival using Java swing as front end and MS access as Backend... ve managed to populate the JComboBox using MS Access. The problem is only 8 per
Access Modifier
modifiers (final, static, synchronized) of Java classes, interfaces, methods... Access Modifier       Functionality The AccessModifer Plug-in for Eclipse allows the user
stock checking in java with backend as access
stock checking in java with backend as access  Hi, I am doing a project in java,Can i able to know how to check the stock availability of a product in java...my back end connectivity is ms-access from the database ,i hv
Access Infotech, Hyderabad - Java Beginners
Access Infotech, Hyderabad  Access infotech is the best suitable for every software compay
how to access the details - Java Beginners
how to access the details  how to access the detailsclass E { String name; String no;string place; E(String n,String n,String p) { ... ... .... } public String... no)and retrive all the details of the person which is not given
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
methods and access specifiers in java - Java Beginners
methods and access specifiers in java  i am a java beginner..give me the rules f methods and access specifiers  Hi friend, visit for more information: http://www.roseindia.net/java/ http://www.roseindia.net
Accessing Ms access data in JAVA GUI Envi.
Accessing Ms access data in JAVA GUI Envi.  Q.How to insert data into ms access data in java using swing ? Q.How to slove (access denided ("java.lang.RuntimePermission" "accessClassInPackage.sun.jdbc.odbc")" these exception
JAVA DB connenting Office access..
JAVA DB connenting Office access..  hai friends....iam shackir.. i did 1 program to connect OfficeAccess...in this program everything except insertions are working fine...i cant understand what is the problem..."ANY ONE PLEASE
Package Access Specifier - Java Beginners
Package Access Specifier  Hello Friends, I have created a Pkg named BCA , iN this Package i declare two classes name : - Test Class & House Class House is the Public Class I saved it with House.java File
Advertisements
 

 

 

DMCA.com