ALLInterview.com :: Home Page            
 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                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Core Java
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1721)
 Advanced Java interview questions  Advanced Java Interview Questions (331)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (146)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
they asked class A{}
class B{}
class c{}
all the three class saved as a single file,there is no main
method in the file
and anothe class
M.java
class m
{
psvm(String args[])
{
// here the parent class can access
}
}
 Question Submitted By :: Core-Java
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
Yes. You can call parent classes ( i.e A or B or C) inside
of class M by instantiate and invoke methods. If parent
classes have static methods you can directly access without
instantiating.
 
Is This Answer Correct ?    1 Yes 0 No
Suresh
 
Answer
# 2
What is the Question? Please explain... 
Is This Answer Correct ?    0 Yes 1 No
Cool_duzz
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is run-time class and system class? what is their purpose?   1
write java code to print second max number in the array Huawei 12
There can be a abstract class without abstract methods, but what is the need to declare a class abstract if it doesn't contain abstract methods? HCL 4
What is interface and its use? HCL 7
what is difference between method overloading & method overridding with example? IBM 4
What is meant by Encapsulation? Can you write a class to explain encapsulation? Ness-Technologies 8
when asub class inherits a super class and overrides a public method of super class in sub class(public method in super class). why these methods needs to be public in sub class. (otherwise compile time error).   3
wahts is mean by thread? HCL 22
Which Java operator is right associative?   3
when we write class.forName("any one class"); what happens actually?what it will return?explain stepwise?   6
What is the use of static keyword in "public static void main()" Infosys 10
What happens when a class is made static like if a field or member is made static it becomes class variable and is shared by all the object of the class?   1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com