The event-delegation model has two advantages over the event-inheritance model. First,it enables event handling to be handled by objects other than the ones that generate the events (or their containers).
Latest Answer : Java Remote Method Invocation (Java RMI) enables the programmer to create distributed Java technology-based to Java technology-based applications, in which the methods of remote Java objects can be invoked from other Java virtual machines*, possibly on ...
Latest Answer : Features:-===========================================Topic Java C++ Pointer No Yes OperatorOverload No Yes Preprocessors No Yes Structures,Unions No Yes Enums No Yes Functions No(only methods within classes) Yes Goto statement No Yes Automatic Coercions ...
Latest Answer : 2-tier architecture:In a two-tier system, we have a client program and a server program. The main difference between the two is that the server responds to requests from many different clients, while the clients usually initiate the requests for information ...
Latest Answer : cookies is linking one page to another page in web pages. ...
The event-delegation model has two advantages over the event-inheritance model. First,it enables eventhandling to be handled by objects other than the ones that generate the events (or theircontainers).
Swing is an extension of, and not a replacement for the AWT. There is some overlap between AWT and Swing (for example a Swing JButton component might be viewed as an improved functional replacement for
Latest Answer : one more thing i want to add in in this answer that AWT is written in pure C and swing is written in java. ...
What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?
The vector container class generalizes the concept of an ordinary C array. Like an array, a vector is an indexed data structure, with index values that range from 0 to one less than the number of elements
Discuss the differences between creating a new class, extending a class and implementing an interface; and when each would be appropriate.
*Creating a new class is simply creating a class with no extensions and no implementations. The signature is as followspublic class MyClass(){}*Extending a class is when you want to use the functionality