JNI is an acronym out-of Java Native Software

JNI is an acronym out-of Java Native Software

21. What exactly is JNI ? Using JNI we could phone call functions which can be written in most other languages from Coffee. Adopting the try its advantages and disadvantages: Advantages: We should make use of present library that was prior to now composed various other code. We should call Window API setting. With regard to execution price. We would like to telephone call API reason for specific server merchandise that is within c or c++ away from coffees consumer.

23. What exactly is JFC ? Coffee Foundation Groups tend to be: Important AWT step 1.step 1 Access to software Tiny areas: which happen to be screen parts that do not subclass a preexisting AWT interface function. They do not use native program facets because the available with this new underlying windowing system. Java feel and look Service for local appearance and feel Characteristics such as for instance Java2D and you can Pull and you will Miss

twenty four. What’s Difference in AWT and you can Move ? Move brings a wealthier number of section than just AWT. He is 100% Java-built. AWT on top of that was made on the mind set that if an element or capability of a component weren’t offered on a single program, it wouldn’t be available on people program. As a result of the peer-built nature off AWT, what might work on one implementation might not work with another, since the fellow-combination may possibly not be while the sturdy. You can find almost every other advantages to Swing over AWT: Swing brings both a lot more section and you can additional capability so you can AWT-replacement for components Swing parts changes their appearance according to research by the newest “feel and look” library that’s being used. Swing portion proceed with the Design-View-Control (MVC) paradigm, and therefore can provide a far more versatile UI. Move provides “extras” having portion, including: Icons into of many elements Attractive limitations getting components Unit techniques for elements Move areas try small (less financial support intense than just AWT) Swing provides dependent-in the double buffering Move brings painting debugging assistance for once you help make your very own areas Move also has several downsides: It takes Coffees 2 or a separate Container file If you are not as mindful when www.datingmentor.org/escort/vista/ programming, it could be much slower than simply AWT (most of the parts try taken) Move components appear eg indigenous section may not act just like native portion

25. Considering notepad/Ie and other thing because process, What happens for people who begin notepad or Internet explorer 3 x? Where 3 procedure are become or 3 threads was become ? 3 independent processes are started.

Hard to debug runtime error during the indigenous code

26. How does bond synchronization takes place into the a display screen ? [Question much less clear in my opinion ] The brand new JVM uses hair alongside inspections. A screen is actually a guardian in that it watches more a sequence off password, making certain only 1 thread at the same time works the fresh new code. For each and every display screen is actually for the an item site. When a thread finds the first education from inside the good take off out-of password it should get a great lock toward referenced object. The brand new thread isn’t permitted to carry out new code up to they receives the newest secure. Just after it offers gotten the fresh lock, new bond gets in the latest take off away from protected code. If bond makes the fresh stop, regardless of how it simply leaves the brand new stop, it releases the brand new secure with the related object.

As a result he is less strict than just fundamental AWT portion

twenty-seven. How will you phone call an enthusiastic Applet having fun with a coffees Program form ? In this way: document.appletName.methodCall(. ) Can not work that have Internet explorer even if

twenty eight. Can there be people mark for the HTML so you can upload and you can obtain records ? I am not conscious of HTML labels to assist me upload a document, we could possibly certianly need some host front side scripting in order to procedure that. We could certainly play with HTML to include a get hyperlink because the follows: code: Just click here to down load

Leave a Comment

Your email address will not be published. Required fields are marked *