Just after it’s got received this new secure, the thread goes into the new stop out of safe password

21. Playing with JNI we can call characteristics being written in almost every other languages from Coffee. Following the try the advantages and disadvantages: Advantages: We need to make use of current collection which had been before composed in other code. We wish to call Windows API setting. In the interest of delivery rate. You want to telephone call API intent behind some server merchandise that is during c or c++ out of java client.

Disadvantages: You simply cannot say establish once-run anywhere. Hard to debug runtime mistake into the local password. Prospective security risk. You simply can’t call-it regarding Applet.

What’s JNI ?

23. What is JFC ? Java Foundation Kinds are: Fundamental AWT step 1.step 1 Use of interface Small areas: that are user interface components that don’t subclass a current AWT interface element. They don’t really play with native screen aspects just like the provided by the latest root windowing system. This means that they are less limiting than simply simple AWT section. Coffees feel and look Assistance for local feel and look Properties like Java2D and you can Drag and you may Shed

twenty four. What is actually Difference in AWT and Move ? Swing provides a richer group of section than AWT. He is one hundred% Java-oriented. AWT on the other hand was developed with the attitude whenever a component otherwise convenience of a feature were not readily available using one platform, they would not be on people system. Because of the peer-established characteristics out of AWT, what might work at you to execution may not work at some other, while the fellow-consolidation may possibly not be because strong. You will find some almost every other positive points to Swing more AWT: Swing will bring each other more elements and you can extra effectiveness to AWT-replacement for areas Move elements can alter their appearance in line with the newest « feel and look » collection which is being used. Move components follow the Model-View-Operator (MVC) paradigm, which means that offer a far more versatile UI. Swing brings « extras » getting components, for example: Signs towards the many section Pretty limitations to own areas Unit tricks for elements Swing section try lightweight (smaller capital intensive than just AWT) Move brings established-when you look at the twice buffering Swing provides color debugging support to possess when you build your very own parts Swing also offers a number of drawbacks: It will require Coffees dos otherwise a special Jar document When you’re not too mindful when programming, it could be slowly than AWT (most of the elements are taken) Swing elements that look such as local section may well not act just such as for instance native portion

twenty five. Provided notepad/Ie and other situation just like the process, What will happen for individuals who initiate notepad otherwise Web browser three times? Where step three techniques was started or step 3 threads was become ? step 3 independent processes was already been.

twenty six. How does bond synchronisation happen in to the a monitor ? [Question much less obvious to me ] The JVM uses tresses along side monitors. A monitor is actually a guardian for the reason that it observe more than a sequence away from code, making sure one thread at once does the code. For every single display try of this an object source. When a thread arrives at the initial education during the a take off off code it ought to get a good secure into referenced object. The newest thread is not allowed to carry out the code up until it receives the fresh secure. In the event that thread departs this new take off, it doesn’t matter how they simply leaves brand new take off, it releases brand new lock for the related target.

twenty-seven. How do you call a keen Applet having fun with a java Script setting ? Like this: file.appletName.methodCall(. ) Doesn’t work with Web browser even though

twenty eight. Is there any tag during the HTML to help you publish and you may install data ? I’m not conscious of HTML labels to assist myself upload a document, we could possibly certianly need some machine front scripting so you’re able to process that. We are able to indeed explore HTML to add a download connect because follows: code: Click to download

Leave a Comment

STYLE SWITCHER

Layout Style

Header Style

Accent Color