SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




What is the use of anonymous inner class?

        

Reply
 
LinkBack Thread Tools Display Modes
Old 02-02-07, 11:28 PM   #1 (permalink)
Senior Member
 
Join Date: Aug 2006
Age: 29
Posts: 279
Thanks: 0
Thanked 9 Times in 9 Posts
Rep Power: 7 radhika743 will become famous soon enough radhika743 will become famous soon enough
What is the use of anonymous inner class?

Q.) What is the use of Anonymous Inner Class?

I know it is class to which name is not assigned.

Then what is it's use in java?

radhika743 is offline Offline   Reply With Quote
Old 05-02-07, 05:28 PM   #2 (permalink)
Moderator
 
t_mohan's Avatar
 
Join Date: Apr 2006
Location: India
Posts: 637
Thanks: 57
Thanked 91 Times in 70 Posts
Rep Power: 20 t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of t_mohan has much to be proud of
Re: What is the use of anonymous inner class?

I never used anonymous inner class so could not be clear with my answer, but pls read the explanation given in this link,
Lecture 5 - Adapters, Anonymous Inner Classes, Graphics and Legacy Collections (V1.01)
If you find it difficult to understand , pls let me know I'll do some more research and let u know the answer

Thank You
t_mohan is offline Offline   Reply With Quote
Old 08-02-07, 08:35 PM   #3 (permalink)
Senior Member
 
Join Date: Jan 2007
Age: 28
Posts: 103
Thanks: 0
Thanked 7 Times in 5 Posts
Rep Power: 6 PrashanthU is on a distinguished road PrashanthU is on a distinguished road
Re: What is the use of anonymous inner class?

Anonymous Inner Classes are basically used in Listeners where we need to create an object to override some methods but the object's existence is only for the instant the listener is called to handle some event triggered due to user interaction with an GUI object...
PrashanthU is offline Offline   Reply With Quote
Reply

Tags
anonymous , class


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
java notes naga JAVA Technologies 7 06-02-09 10:57 AM
JAVA collection naga JAVA Technologies 1 11-01-09 12:38 AM
J2EE - How to create the object to the anonymous class preethisingh Java Interview / Technical Questions 0 23-01-07 02:15 PM
java JSP naga JAVA Technologies 4 21-08-06 04:03 PM
Answers Wanted to these QUESTIONS ? aparna3032 JAVA Technologies 3 23-02-06 03:23 AM


All times are GMT +6.5. The time now is 10:50 PM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.2