Question
What do you understand by package access specifier?

Answers

public: Anything declared as public can be accessed from anywhere
private: Anything declared in the private can't be seen outside of its class.
default: It is visible to subclasses as well as to other classes in the same package.   Your Comment




More Java Questions..
Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

What is static synchronized method in JDBC API? Give an example?

Should we override finalize method

What is object cloning in Java?

What is difference between notify() and notfiyAll()

Describe java's security model.

Is there is any error if you have multiple main methods in the same class?

What is the name of the method used to schedule a thread for execution?

1) init();

2) start();

3) run();

4) resume();

5) sleep();

Can I import the same package/class twice? Will the JVM load the package twice at runtime?

What releases of Java technology are currently available? What do they contain?

What is asymmetric clustering in WebSphere?

What is pass by value and pass by reference?

What are the actions that can occur when a thread enters blocked state

How do I launch the browser using WebDriver

What is the use of Void(0)?

How does the native language C or C++ understand data types in JAVA



Search
Can you Answer!!
  • Q Explain the purpose of keep and assume keywords?
  • Q The colony of Virginia was founded in 1607 by :
  • Q Vampire bats prefer to bite what part of a sleeping person
  • Q Which command is used to clear the screen? A. % clear B. clear C. clrscr D. either a or c
  • Q What is the tallest man made structure in the world?
  • Q This code, straight out of a book, isnt compiling
  • Q Is a breach that is so offensive that it borders on intentional behavior? (A)Gross Negligence (B)Comparative negligence (C)Contributory negligence (D)Negligence Per Se
  • Q What are Refiners and faceted navigation?
  • Q What does the below mean?
  • Q What are trade bills?
  • Q Define hard-driving or over-driving?