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




Have Programming Question? Ask it here!
 
 
 


samar
Java access modifiers
1 Answer(s)      3 years and 10 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
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
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 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
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
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
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
Access Report to Java Application - Java Beginners
Access Report to Java Application   Hello Sir can I connect Access Report to Java Application when i Enter Student ID in JTextField then the Appropriate Records From the Database will Be Shown in to Access Report. plz Help
java servlet connectivity problem with access
java servlet connectivity problem with access  Import java.sql javax.servlet //all packages entered try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc
how to access windows registry information using java?
how to access windows registry information using java?  can any one help me how to access windows registry information using java
MS Access connct using flex with java
MS Access connct using flex with java  Hi All, Can anybody help me how to connect to the MS access database and getting the data using flex in java technology with tomcat server
to access a date object - Java Server Faces Questions
to access a date object  How to access a date value from the screen of Visual JSF to the DataBase java-Derby using NetBeans6.5.  Hi friend, For solving the problem visit to : http://www.roseindia.net/jsf/visual
Create Reports in Java with access database - Java Beginners
Create Reports in Java with access database  Hello Sir How to Create Reports of Any Type using Java when i submit data is stored in the MS access database,but when I click on PRINT Button then it will display it into either Text
Os details access in java - Development process
Os details access in java  Hi, can anyone give me the code of accessing OS details in java such as os name,os type ,kernal etc.etc.?  Hi...() method of Java. Here is the few links which will help you in solving your problem
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, To learn Assertion, please visit the following link: http://www.roseindia.net
java to MS Access conectivity - Swing AWT
java to MS Access conectivity  give me source code to stored... database on the ACCESS.  Hi Friend, Follow these steps: 1. Open...(ODBC) 2. Open User DSN tab 3. Add a user DSN 4. Select Microsoft Access Driver
Faast Company in Hyderabad(Access Infotech) - Java Beginners
Faast Company in Hyderabad(Access Infotech)   Best for beginners Access Infotech Pvt. Ltd. Unit 5B, 4th Floor, Topaz Building, Punjagutta, Hyderabad-500082 Phone No : 040 30584310/11/12 Fax No : 040 30584315
how to access javascript in mozilla - Java Beginners
how to access javascript in mozilla  i have written javascript code in .js file and i am calling that file in .jsp file as but the script is working in IE but not working in Mozilla. can u plz solve my problem  
Problem with JRadioButton and Access Database - Java Beginners
Problem with JRadioButton and Access Database  Hello sir ,Here I have write following code to save text on JradioButton but this is not saved in Access Databse, I want to store course type in to database and also other fields
Java - Java Beginners
Java  1. What are access specifiers and access modifiers? 2. Difference between access specifiers and access modifiers
java vertual machine launcher error; cannot access jarfiles
java vertual machine launcher error; cannot access jarfiles  Hi I am getting a error while running Dos bat file Error showing as error; cannot access jarfiles D\Documents Please help Regards GP
Using a Random Access File in Java
C:\nisha>javac RandAccessFile.java C:\nisha>java RandAccessFile Enter File name : Filterfile.txt Write...: C:\nisha>java ReadAccessFile Enter File name : Filterfile.txt
how to connect java with ms access using odbc in eclipse
how to connect java with ms access using odbc in eclipse  import java.sql.*; class AccessDatabase{ public static void main(String[] args... Access Driver (*.accdb)};DBQ=student.accdb","",""); Connection con
How to Open Picture From M.S. Access Database using Java Servlet ?
How to Open Picture From M.S. Access Database using Java Servlet ?  Hi all my Friends I have below code which insert a picture into M.S. Access Database But i m still not able to open this picture through Java using M.S. Access
How to save JCombobox Selected Item in to Access Database - Java Beginners
How to save JCombobox Selected Item in to Access Database  How to save JCombobox Selected Item in to Access Database  Hi Friend, Try... SwingFrame(){ JFrame f = new JFrame("Frame in Java Swing"); f.getContentPane
How to store JComboBox selected Item into Ms Access Database - Java Beginners
How to store JComboBox selected Item into Ms Access Database  How to store JComboBox selected Item into Ms Access Database.  Hi Friend...(); } public SwingFrame(){ JFrame f = new JFrame("Frame in Java Swing
Advertisements
 

 

 

DMCA.com