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  >>  Advanced 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
can we write implementation for a method with in another 
method?
 Question Submitted By :: Sudheerj2ee
I also faced this Question!!     Rank Answer Posted By  
 
  Re: can we write implementation for a method with in another method?
Answer
# 1
Yes, a method can be implemented within another method 
using anonymous class.
using anonymous class: new ClassName({...});
For more details regarding anonymous class refer any java 
document.
 
Is This Answer Correct ?    18 Yes 2 No
Sharan Raj
 
  Re: can we write implementation for a method with in another method?
Answer
# 2
No, you cannot implement a method in side a method.it gives 
you a compile error.
 
Is This Answer Correct ?    3 Yes 8 No
Krish
 
 
 

 
 
 
Other Advanced Java Interview Questions
 
  Question Asked @ Answers
 
How do you maintain a stateful session object across the session HCL2
What are different types of layout managers in java.awt package? CA2
What is waiting state? In what ways a thread can enter into waiting state? Wipro2
What is an applet?  5
What state a thread enters, When it blocks on I/O?  2
can we write implementation for a method with in another method? Cap-Gemini2
wahts is mean by dynavalidatorform in struts/ SolutionNET1
What is preemptive and Non-preemptive Time Scheduling?  1
what is heepStored?  1
difference between applicationserver and webserver SolutionNET2
Differences between applications and applets?  3
What is the difference between RMI and Socket?  1
Name the method to find, if a thread is active or not?  2
What is Introspection?  2
What is source and listener?  1
Explain the purposes of methods wait(), notify(), notifyAll ()?  1
What is Remote Interface?  1
In HashTable I am storing null value..then what is the error it will show GM-General-Motors1
What is thread deadlock? How to resolve thread deadlock?  2
How is serialization used generally ?  2
 
For more Advanced 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