You cannot inherit a constructor. That is, you cannot create a instance of a subclass using a constructor of one of it's super classes. One of the main reasons is because you probably don't want to override the constructor of super class', which would be possible if they were inherited. By giving the developer the ability to override a super class constructor you would erode the main feature of encapsulation abilities of the java programming language.
Asynchronous Communication Advantages: Requests need not be targeted to specific server. Service need not be available when request is made. No blocking, so resources could be freed. Could use connectionless protocol Disadvantages: Response times are unpredictable. Error handling usually more complex. Usually requires connection-oriented protocol. Harder to design apps Synchronous Communication Advantages: Easy to program Outcome is known immediately Error recovery easier (usually) Better real-time response (usually) Disadvantages: Service must be up and ready. Requestor blocks, held resources are “tied up”. Usually requires connection-oriented protocol
Comments
Post a Comment