![]() |
|
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Senior Member Join Date: Aug 2006 Age: 29
Posts: 279
Thanks: 0
Thanked 9 Times in 9 Posts
Rep Power: 7 | 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? |
| | |
| | #2 (permalink) |
| Moderator Join Date: Apr 2006 Location: India
Posts: 637
Thanks: 57
Thanked 91 Times in 70 Posts
Rep Power: 20 | 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 |
| | |
| | #3 (permalink) |
| Senior Member Join Date: Jan 2007 Age: 28
Posts: 103
Thanks: 0
Thanked 7 Times in 5 Posts
Rep Power: 6 | 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... |
| | |
![]() |
| Tags |
| anonymous , class |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 |
| More Interview Questions Here... |