21. Using JNI we can name characteristics which can be printed in other dialects out-of Java. Following was its pros and cons: Advantages: You want to make use of established collection that was in past times composed various other words. We want to phone call Screen API mode. With regard to execution rates. We wish to phone call API purpose of specific machine merchandise that is within c otherwise c++ regarding coffees consumer.
Disadvantages: You simply cannot say write once-run anyplace. Tough to debug runtime error inside the indigenous code. Potential security risk. You simply cannot refer to it as out of Applet.
23. What is JFC ? step one Use of interface Smaller parts: which can be software components that do not subclass a preexisting AWT software ability. They don’t really fool around with indigenous screen issues because the provided by the newest hidden windowing system. This means that he or she is less restrictive than just fundamental AWT areas. Java feel and look Support for local feel and look Properties such as for instance Java2D and you may Drag and you will Miss
Coffees Foundation Groups is: Simple AWT step 1
24. What is Difference between AWT and you will Move ? Move provides a wealthier band of parts than simply AWT. He could be a hundred% Java-oriented. AWT concurrently was developed for the mind set whenever an element or convenience of a component weren’t available on a single system, it would not be on one platform. Due to the fellow-oriented characteristics away from AWT, what would work with you to definitely execution may well not work with several other, because peer-consolidation is almost certainly not because the robust. There are lots of most other advantages to Swing more than AWT: Move will bring each other additional parts and you can added features in order to AWT-replacement parts Swing areas can change their looks based on the current «look and feel» collection that is used. Swing components proceed with the Design-View-Controller (MVC) paradigm, meaning that also have an even more versatile UI. Move brings «extras» to have portion, such as: Signs towards the many section Decorative limits to have elements Product strategies for parts Swing components was lightweight (shorter capital intense than simply AWT) Move brings established-for the twice buffering Move will bring paint debugging help getting after you create your very own components Move has also a number of cons: It requires Java dos otherwise another type of Container document If you’re not very cautious when coding, it could be reduced than simply AWT (all section try taken) Swing components appear such native elements will most likely not operate precisely eg indigenous components
What is JNI ?
25. Considering notepad/Ie and other thing since the process, What will happen for folks who start notepad otherwise Ie 3 times? Where step 3 processes is actually become or step three threads was become ? step three independent process are become.
twenty-six. How does bond synchronization happen into the a monitor ? [Matter not as obvious in my experience ] The new JVM spends locks with checks. A display is simply a protector in this they observe more than a series of password, ensuring that just one thread at once executes the newest code. For every single monitor is associated with an item site. Whenever a thread arrives at the original classes in the a great cut-off of password it will obtain good lock for the referenced target. The new thread isn’t permitted to play the password up to they receives the brand new secure. Shortly after this has gotten this new secure, the brand new thread goes into new block off protected password. In the event the bond leaves the stop, in spite of how they departs the brand new cut-off, they launches the fresh secure into relevant target.
27. How can you telephone call an enthusiastic Applet playing with a coffees Script means ? Like this: file.appletName.methodCall(. ) Does not work with Web browser whether or not
twenty-eight. Could there be one tag in the HTML to publish and you may download data ? I am not alert to HTML labels to simply help me personally upload a file, we would certianly need some server front scripting so you can procedure that. We could yes play with HTML to provide a grab link because follows: code: Follow this link in order to down load