JNI is an acronym out-of Coffee Native Program

JNI is an acronym out-of Coffee Native Program

Immediately after it has acquired the fresh new lock, the newest bond gets in the new cut-off of protected code

21. Playing with JNI we can phone call characteristics which are printed in almost every other languages from Coffee. After the are their advantages and disadvantages: Advantages: We should make use of your present library that has been in the past composed in other code. We should call Window API setting. For the sake of delivery rates. We want to name API aim of specific machine product which is in c otherwise c++ regarding java customer.

Disadvantages: You can not say create once run anyplace. Tough to debug runtime error within the native code. Prospective threat to security. You can not call it regarding Applet.

What is JNI ?

23. What is actually JFC ? Coffee Base Categories become: Fundamental AWT 1.1 The means to access program Lightweight section: which can be user interface components that don’t subclass an existing AWT interface ability. They don’t explore indigenous software issues because available with this new hidden windowing system. Because of this he could be less limiting than simple AWT section. Java appearance and feel Help to possess local feel and look Functions instance Java2D and Pull and Shed

twenty four. What is actually Difference in AWT and you may Swing ? Swing brings a wealthier selection of elements than simply AWT. He or she is a hundred% Java-built. AWT simultaneously was developed for the attitude if a component or convenience of an element just weren’t readily available on a single program, it wouldn’t be available on any system. Considering the peer-depending characteristics out of AWT, what might work on that implementation will most likely not work with various other, because fellow-integration may possibly not be once the powerful. You can find other positive points to Swing more than AWT: Swing provides one another even more elements and additional effectiveness in order to AWT-substitute for elements Swing portion can change their looks based on the latest “feel and look” collection that’s getting used. Swing components follow the Model-View-Operator (MVC) paradigm, and thus also provide a far more versatile UI. Swing will bring “extras” to possess parts, such: Symbols towards of numerous portion Decorative borders getting areas Tool techniques for section Swing elements are little (reduced investment rigorous than just AWT) Swing will bring centered-inside the twice buffering escort girl Peoria Move will bring color debugging support getting after you build your individual portion Move even offers a few drawbacks: It entails Java dos otherwise another type of Jar document Whenever you are not as mindful when programming, it can be more sluggish than simply AWT (all of the areas is drawn) Swing areas that look such as native elements will most likely not work exactly such as for instance native areas

twenty five. Provided notepad/Ie or any other issue due to the fact techniques, What the results are if you start notepad otherwise Internet explorer three times? Where step 3 techniques try come or step 3 posts are become ? step 3 separate procedure is started.

26. How does thread synchronization occurs into the a screen ? [Question not very clear to me ] This new JVM spends locks with monitors. A display screen is actually a protector for the reason that it watches more a sequence away from code, making certain that only 1 bond immediately carries out the brand new code. Each screen try of this an item site. When a bond arrives at the first training into the an effective cut-off away from password it must obtain a great lock on referenced object. The fresh bond is not permitted to play the new password up to it gets brand new lock. When the thread simply leaves the fresh new block, regardless of what they departs the fresh new take off, they releases this new secure with the associated target.

27. How can you label an enthusiastic Applet using a coffees Program function ? Along these lines: document.appletName.methodCall(. ) Does not work with Web browser even though

28. Could there be any mark in the HTML to upload and you can obtain data files ? I am not saying familiar with HTML labels to help me upload a document, we would certianly require some host front side scripting so you’re able to process that. We are able to certainly explore HTML to add a download back link given that follows: code: Follow this link in order to obtain

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Başa dön