answersLogoWhite

0


Best Answer

The JVM knows about all of your classes, no matter what package they are in or what access specifier you declared them with. The access specifier is only used to limit access from other classes.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How the jvm is able to access your class even you declare it using default access specifier but the same class is not accessed from other class which is declared in another package?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you declare printf for integer variable?

printf is declared in stdio.hFormat specifier for an integer value is %d.


What is another word for declared?

Tell, announce.


What is the past participle for declare?

The past participle for "declare" is "declared."


Can you declare a function in the body of another function in c language?

yes, we can not declare a function in the body of another function. but if we declare a function in the body of another function then we can call that very function only in that particular function in which it is declared; and that declared function is not known to other functions present in your programme. So if a function is required in almost all functions of your programme so you must declare it outside the main function i.e in the beginning of your programme.


What is past participle of declare?

The past participle of "declare" is "declared."


What did the declaration declare?

it declared beliefs


Is declared a past tense?

Yes, declared is the past tense of declare.


What is a sentence with declare in it?

The doctors declared her fit to work.I declare that our team should win.Their team declare to be on yellow team.


Why all variables are declared with in the function?

It is not necessary to to declare variables inside the function in C. If you declare a variable inside a function, the variable becomes local for the function and another variable of same name can be declared in any other function, but you can not use the variable declared in other function. When you declare any variable outside the function body then the variable becomes global and can be used in any function of the program. Note: errno is an example for a variable declared outside any function.


From whom did India declare Independence?

they declared it from the British


What did Napoleon declare in 1804?

He declared himself Emperor.


What did the Parliament declare?

The parliament declared that they be free from the king.