|
| ||||||||||
| Tags: concept of delegates, delegates, delegates in java, java |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| ||||
| ||||
| Basic concept of delegates in java
I have sound knowledge about java programming. But the one concept of java I am not able to understand i.e delegates. Is delegated in java is similar as compare to C#? I read lots of book for this topics but it was too complicated. Can anybody able to sort-out this problem?... |
|
#2
| ||||
| ||||
| Re: Basic concept of delegates in java
When an object receives a request, the object can handle the request itself or forward the request to next object . If the object forward the request to next object, It means that the object has passed responsibility for handling the request to the another object. See the below example of stack composition: Quote:
|
|
#3
| ||||
| ||||
| Re: Basic concept of delegates in java
Hi Friends I am also have difficulties to understand the delegates concept in the java. I think this is because it is very complicated. But the only thing which I know is basic concepts of delegate in java and C# is same, but the way of implementing delegates is different. If you know more than this please let me know.
__________________ Grand Theft Auto 4 PC Video Game |
|
#4
| ||||
| ||||
| Re: Basic concept of delegates in java
In JAVA , delegate is like to a listener . A delegate is one class which is referenced by another class. A class that has a delegate will call methods on the delegate to identify how and when to do certain task. see following example: Quote:
__________________ The FIFA Manager 2009 PC Game Last edited by opaper : 17-11-2009 at 08:14 AM. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Basic concept of delegates in java" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic Java question | colby02184 | Software Development | 2 | 11-11-2011 04:08 PM |
| Concept of Scrollpane Container in Java | Adrina_g | Software Development | 3 | 10-12-2009 08:23 AM |
| Concept of java beans | Jabeen | Software Development | 4 | 01-12-2009 09:59 AM |
| threads concept in java | vijji191 | Software Development | 2 | 30-11-2009 02:44 PM |
| What do you mean by Csharp Delegates? | Jarini | Software Development | 3 | 11-11-2009 08:57 PM |