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



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

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Mainak
Importing in java . . . .
0 Answer(s)      2 years and 9 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 .


Advertisement
View Answers

Related Tutorials/Questions & Answers:
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
Advertisements
importing CSV data into Database in java when the no of columns are known using javacsv
importing CSV data into Database in java when the no of columns are known using javacsv   I have imported CSV data into postgres Database in java using javaCSV jar. But now i have to convert it in such way
Importing hibernate project
Importing hibernate project  What are the steps to import hibernate project in myeclipse
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
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
importing data and edit that data
importing data and edit that data   hello sir i have data in excel sheet which contain 2 rows and i want to import that data to ms access and edit that data like adding new columns and new rows and creating new tables
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
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
Importing Preferences
Importing Preferences       This example demonstrates you how to import a file of exported...="Java Types"> <map> <entry key="String" value
java codes
java codes  why is every application allowed to use classes System and String without first importing the item
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
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
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 - 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
java
java  diff bt core java and java
java
java  what is java
Java
Java   Whether Java is pure object oriented Language
java
java  different between java & core java
java
java  explain technologies are used in java now days and structure java
java
java   why iterator in java if we for loop
JAVA
JAVA  how the name came for java language as "JAVA
java
java  what is java reflection
java
java  is java open source
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   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
 

 

 

DMCA.com