JNI means away from Java Indigenous Screen

21. Having fun with JNI we can name functions which are written in most other languages away from Coffee. Adopting the is their pros and cons: Advantages: We would like to use your existing library that has been in the past created various other vocabulary. You want to label Windows API setting. In the interest of delivery rate. You want to call API function of specific servers product which is actually c or c++ of coffee client.

Disadvantages: You simply cannot say establish once run everywhere. Difficult to debug runtime mistake inside native code. Prospective threat to security. You simply can’t refer to it as regarding Applet.

23. What exactly is JFC ? step 1 Entry to software Smaller components: which can be interface areas which do not subclass a current AWT interface element. They don’t really play with native program issues as provided with the brand new fundamental windowing program. This is why he or she is less restrictive than just simple AWT section. Coffee feel and look Service to have native feel and look transgender date sites Qualities like Java2D and you can Drag and you may Shed

Coffee Foundation Classes were: Basic AWT step 1

24. What is actually Difference between AWT and you can Swing ? Swing provides a wealthier set of portion than AWT. He or she is one hundred% Java-established. AWT at exactly the same time was developed into state of mind that when a feature otherwise convenience of a component were not readily available on one platform, it wouldn’t be available on any program. Considering the fellow-situated character off AWT, what would run that implementation may well not manage other, given that peer-consolidation might not be since powerful. There are many almost every other advantageous assets to Swing more than AWT: Move brings each other a lot more portion and you can additional possibilities in order to AWT-replacement portion Swing section can transform their looks according to the newest “feel and look” collection that is used. Move parts proceed with the Model-View-Operator (MVC) paradigm, and thus provide a much more flexible UI. Move brings “extras” for parts, eg: Symbols into the of several section Pretty limitations having parts Unit methods for parts Move components is tiny (faster resource extreme than AWT) Move provides depending-during the twice buffering Swing will bring decorate debugging help to own after you create your very own portion Move has a number of cons: It will take Java 2 or a special Jar file When you’re not too careful whenever programming, it may be more sluggish than just AWT (all section was drawn) Swing section appear instance indigenous section may not act just such as local elements

What is actually JNI ?

twenty-five. Offered notepad/Internet explorer and other point because procedure, What happens for those who begin notepad or Internet explorer 3 times? Where step 3 techniques try become otherwise 3 posts are started ? step three separate process was been.

twenty six. How come thread synchronisation happens inside a screen ? [Matter much less clear in my opinion ] The new JVM uses locks combined with inspections. A display is simply a guardian where it observe more than a series off code, making certain that one bond at a time runs new code. For each screen are regarding the an item source. Whenever a thread gets to the original education in an effective stop of code it should obtain a secure on referenced target. The fresh new thread is not permitted to do the code until they gets the new lock. Just after it’s obtained brand new secure, new bond comes into new take off out of safe code. If thread renders the take off, it doesn’t matter how they makes the brand new take off, they launches brand new lock toward associated target.

twenty seven. How will you label an enthusiastic Applet using a coffee Software mode ? Like this: document.appletName.methodCall(. ) Does not work which have Internet explorer no matter if

twenty-eight. Will there be people level during the HTML to help you upload and you will download files ? I’m not conscious of HTML labels to aid myself publish a file, we possibly may certianly need some server side scripting to process that. We are able to certainly fool around with HTML to provide an install hyperlink as follows: code: Follow this link to download