aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes nx:All of URLy Bird 1.1.3 about interface extends multiple interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "nx:All of URLy Bird 1.1.3 about interface extends multiple interface" Watch "nx:All of URLy Bird 1.1.3 about interface extends multiple interface" New topic
Author

nx:All of URLy Bird 1.1.3 about interface extends multiple interface

liqun chang
Ranch Hand

Joined: Nov 20, 2003
Posts: 90
Hi:George and Andrew and other experts:

in other thread of this forum,Ken Krebs say:


Networking
========
Choosing RMI seemed to be a total no-brainer as it is so simple compared to using sockets. My entire networking code compiles to only 5,408 bytes of code. It consists of 2 classes, RemoteServices and RemoteServicesImpl. RemoteServices is an interface that extends Services and Remote. It has no body. This is possible because all the Services methods throw IOException and can therefore also throw a RemoteException. It's a nice trick that keeps things simple. RemoteServicesImpl extends UnicastRemoteObject and implements RemoteServices. It has 2 parts, the implementation of RemoteServices (i.e. the 2 Services methods) and static getServices methods that allow the clients to get a Services instance that is either an RMI server for the Network Server application functionality or its stub for the Network Client application functionality. The Services method implementations simply delegate all work to the ServicesImpl singleton. Since all of the locking occurs in a single method call in the Network Server's JVM, there is no need to worry about the RMI connection dieing in the middle of a locking operation


my question is:whether the interface can extends multiple interfaces.

for example:

public interface A
{
}

public interface B
{
}
public interface C extends A,B
{
}
Is this right?
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11479
    
  94

Hi Liqun,

Yes it can.

To be honest, I would have thought that you could have proved this for yourself in less time than it took to write this post - you have 3 interfaces in your post, so you could just compile them .

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
liqun chang
Ranch Hand

Joined: Nov 20, 2003
Posts: 90
Hi:Andrew i compile and run them and ok. thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: nx:All of URLy Bird 1.1.3 about interface extends multiple interface