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   SiteMap shows list of All Categories in this site.
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
What is the difference between a public and a non-public 
class?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between a public and a non-public class?
Answer
# 1
public class is the one whose memebers can get an access to
all the classes in the same package and out of the package
 
Is This Answer Correct ?    5 Yes 0 No
Ravikiran(aptech Mumbai)
 
  Re: What is the difference between a public and a non-public class?
Answer
# 2
public class is a class that can be accessed from anywhere in the package and outside the package, this public means access globaly.
there is no such non-public class in java. so we can consider private, protected, friendly classes as a non-public classes.
 
Is This Answer Correct ?    0 Yes 0 No
Javachi
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
how session will be expired ? Satyam2
Thanks A.jyotsna, Can u tell me differnce between abstract class and interface vikash  3
could you run the java program without main method?  1
What is encapsulation? Elaborate with example? BMC1
byte a=5; byte b=5; byte c=a+b; System.out.println(c); whats the o/p? Wipro5
Can a Byte object be cast to a double value?  2
How you can create a radio buttion using Checkbox class?  1
What is the protocol is used in type4 driver? CMC2
How to add two numbers with out using Arithmetic , union operators in java....? But we can use bitwise operators... but how...? CTS2
Explain about Superclass and Subclass?  4
Functionality of JVM? Infosys4
What is Overriding and how can it be used? Wipro5
Explain the concept of polymorphism with examples?  4
Can a for statement loop indefinitely?  3
printstream class method println() is calling using System class and its static object out .how it is explain any one in detail with example ? TCS1
Can we place the any object to key attribute of HashMap<key,value>? HCL3
how to call a method in different package?  4
Where the CardLayout is used?  1
what is an object class?Explain its methods?  3
What is the difference between Abstract Class and Interface AMDOC6
 
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