ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
How can a class be accessed, If no access modifiers are 
declared?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can a class be accessed, If no access modifiers are declared?
Answer
# 1
If a class is marked with no access modifiers then it is
given "package" access by default which means it can be
instantiated or subclasses by other classes in the same
package but it is inaccessible to classes outside the same
package.
 
Is This Answer Correct ?    0 Yes 0 No
Ranganathkini
 
  Re: How can a class be accessed, If no access modifiers are declared?
Answer
# 2
the default access will be resticted to the classes with in
the same package
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran(aptech Mumbai)
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is wrapper class and its uses?  2
What is deadlock and how to avoid this?  2
what is unreachable code problem in multiple catch statements  2
Hi, well i am unable to understand that why it is mandatory to have same hashcode, if two objects are same? Thanks in advance.  5
Does 'true' and 'false' are keywords?  5
How to synchonise HashMap IBM3
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set? Aricent5
what are Checked & Unchecked exceptions ?  2
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service Accenture2
Explain difference between final, finally and finalize?  2
what is Dictionary? and what purpose it is used for?  2
Difference String and String Buffer  3
what are depricated methods in threads and explain the lifecycle methods  5
What are packages and name a few?  4
what is meant by string pooling? Wipro6
I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing? KPIT5
Explain the difference between the Boolean & operator and the && operator?  1
what are the methods of an object class?  3
Hey buddy.. can you please tell me about the use of marker interface? And is there any link between marker interface and factory methods? Thanks in advance.  2
What is multiple inheritance & can we implement it in java? Satyam4
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com