Home Answers Viewqa Java-Beginners Importing in java . . . .

 
 


Mainak
Importing in java . . . .
0 Answer(s)      a year and 2 months ago
Posted in : Java Beginners

We all know that when we are importing a class of a package in another package , the methods which are public are only available and we can use it . But suppose the method has default access specifier , yet we can use the method . With default access specifier it is only available to classes inside the same package and not in any other packages . Then how is it possible ?? For instance , I import the java.util.BitSet . Then I instantiate bits (an object) BitSet bits=new BitSet(16) ; After that if I want to use set() like bits.set() how can I use it since set() is not public .

View Answers









Related Pages:
Importing in java . . . .
Importing in java . . . .   We all know that when we are importing a class of a package in another package , the methods which are public are only available and we can use it . But suppose the method has default access specifier
Importing in eclipse - Java Beginners
Importing in eclipse  I'm using eclipse for designing struts application... I'm manually copying the tld files and creating struts-config.xml file for my project... Is there the best way to import the tld files or to add
importing excel file
importing excel file  Hi All I am developing a java application whre we upload a excel file in to database and all excel value should import in to the database column. I am using below logic for inserting value. it shwoing some
importing client side web history
importing client side web history  Hello, i am just trying to import the web history of client in lan through java.... can u plz help me
Packages - Importing
Java NotesPackages - Importing Multiple classes of larger programs..., which is in a directory named java. Importing classes explictly If you need... packages Java libraries are organized in packages (directories). The most
Importing Preferences
Importing Preferences       This example demonstrates you how to import a file of exported...="Java Types"> <map> <entry key="String" value
Importing hibernate project
Importing hibernate project  What are the steps to import hibernate project in myeclipse
Importing Your Own Package
Importing Your Own Package  I would like to know if it is possible to create a class with your own methods so that you can import them when writing programs
Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests?
Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests?  Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import
Importing data into sql plus from a text file...
Importing data into sql plus from a text file...  How to import a text file into oracle 10g enterprise edition directly to create tables and data
Importing data into sql plus from a text file...
Importing data into sql plus from a text file...  How to import a text file into oracle 10g enterprise edition directly to create tables and data
importing excel file and drawing multiple graphs from one excel file
importing excel file and drawing multiple graphs from one excel file  thanks a lot sir for replying with code for importing excel file and then plotting grph:) it really helped me:):) If you can please help me with one more thing
java codes
java codes  why is every application allowed to use classes System and String without first importing the item
Java - Java Beginners
, Ragavendran.R  Hi Friend, This error occurs when you are importing a package... the package 'form' but in jsp page, you are importing Hello class from the package... it, set the classpath and confirm that the class you are importing must exist
JavaScript addImport example
by importing the style sheets collection. Here in this example we have added... to the importing collection.  index : it specifies the position of the style sheet... importing the CSS the functionality of the CSS can be used in that HTMl page
Java - Java Beginners
Java  write a program in java to illustrate importing classes from other packages?  Hi Friend, We have created a package form, where we...; } } We have called this java class from the outside of this package using
Date in JSP
Date in JSP          To print a Date in JSP firstly we are importing a class named... of its attributes named import which is used for importing the class and package
java methods - Java Interview Questions
java methods  what are native methods? how and when they are use?   Hi friend, The ability to write just one set of code in Java and have it run on every system with a Java run-time is one of Java's primary
Copy Files - Java Beginners
into a .txt file, importing that, and then somehow having Java read the filenames...Copy Files  I saw the post on copying multiple files (http://www.roseindia.net/java/example/java/io/CopyMultipleFiles.shtml) and I have something
JSP Directive Tag
JSP Directive Tag  What is JSP Directive tag?   Hi, The answer is: The directive tag gives special information about the JSP Engine. The directive tags are used for simple java programming call like importing
about static import - Java Beginners
); } }   Hi Friend, No,it is not correct.The class you are importing
Java Import Statement Cleanup - Java Tutorials
Java Import Statement Cleanup 2002-06-18 The Java Specialists' Newsletter [Issue 051] - Java Import Statement Cleanup Author: Dr. Cay S. Horstmann.... Welcome to the 51st edition of The Java(tm) Specialists' Newsletter sent
Java Programming: Section 4.5
of the computations they perform. The Java programming language is supplemented... associated routines, and the System.out.print() routines. The standard Java API... of these routines as being built into the Java language, but they are technically
java
java  diff bt core java and java
tomcat server - Java Server Faces Questions
) at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector. java:1326...) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39... at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector. java:1328
java
java  what is java
Synchronization probleam - Java Server Faces Questions
Synchronization probleam   Hi friends My java multithreading..." to solve the probelm and visit to : http://www.roseindia.net/java/example/java/awt/ Thanks   Hi friend, I saw your sending code but i does
Many Public Classes in One File - Java Tutorials
Many Public Classes in One File 2003-10-13 The Java Specialists' Newsletter.... Welcome to the 80th edition of The Java(tm) Specialists' Newsletter... Java classes in China. I was talking about Java only allowing one public
JAVA
JAVA  how the name came for java language as "JAVA
java
java   why iterator in java if we for loop
java
java  explain technologies are used in java now days and structure java
java
java  different between java & core java
java
java  is java open source
java
java  what is java reflection
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
java
java   What is ?static? keyword
java
java  RARP implementation using java socket
java
java  sample code for RARP using java
java
java  Does java allows multiline comments
Java
Java  how to do java in command prompt
java
java  give a simple example for inheritance in java
java
java  give a simple example for inheritance in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  Write a java code to print "ABABBABCABABBA
java
java  write a program in java to acess the email
java
java  send me java interview questions

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.