This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes interface problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "interface problem?" Watch "interface problem?" New topic

interface problem?

harsh garg
Ranch Hand

Joined: Jul 13, 2008
Posts: 33
can anybody give me the example for pass by reference in interface?example should be in J2SE..
Steve Luke

Joined: Jan 28, 2003
Posts: 4180

Have you tried this page and this page?

After doing your research as above, do you think we could actually give you an example of 'Pass by Reference' in Java, using Interfaces or otherwise? Why is that?

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

you mean passing an object(which implements interface) as an argument or want to understand

pass-by-reference ?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38426
Everybody seems to be asking about pass-by-reference today. Look at this and this.
I agree. Here's the link:
subject: interface problem?