Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 02-02-07, 11:28 PM   #1 (permalink)
Senior Member
 
Join Date: Aug 2006
Age: 28
Posts: 275
Thanks: 0
Thanked 4 Times in 4 Posts
Thanks: 0
Thanked 4 Times in 4 Posts
Rep Power: 5 radhika743 is on a distinguished road
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-02-07, 05:28 PM   #2 (permalink)
Moderator
 
t_mohan's Avatar
 
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57
Thanked 77 Times in 62 Posts
Thanks: 57
Thanked 77 Times in 62 Posts
Rep Power: 17 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
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
__________________
M0h@n
t_mohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-07, 08:35 PM   #3 (permalink)
Senior Member
 
Join Date: Jan 2007
Age: 27
Posts: 103
Thanks: 0
Thanked 7 Times in 5 Posts
Thanks: 0
Thanked 7 Times in 5 Posts
Rep Power: 4 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...
__________________
" Success Is Not Measured By What One Has Achieved, But What One Has Achieved, Compared To What One Is Capable Of "
Keep Smiling :-)
PrashanthU is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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

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
J2EE - How to create the object to the anonymous class preethisingh Java Interview / Technical Questions 0 23-01-07 02:15 PM
java notes naga JAVA Technologies 5 22-09-06 10:30 PM
java JSP naga JAVA Technologies 4 21-08-06 05:03 PM
Answers Wanted to these QUESTIONS ? aparna3032 JAVA Technologies 3 23-02-06 03:23 AM
JAVA collection naga JAVA Technologies 0 21-02-06 06:01 AM


All times are GMT +6.5. The time now is 08:44 PM.





Search Engine Optimization by vBSEO 3.1.0