This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread 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

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: 4181

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: 43924
Everybody seems to be asking about pass-by-reference today. Look at this and this.
I agree. Here's the link:
subject: interface problem?
It's not a secret anymore!