Question :What is the difference between local inner class and non-local inner
class? (CoreJava)
Answer :Local inner classes may only access the local variables or method
parameters of the code block in which
they are defined. Local inner classes may only access final variables which
have been assigned a value.
A non-local inner class has access to all variables declared within the
encapsulating class
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Thursday, March 12, 2009
What is the difference between local inner class and non-local inner
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment