21. What’s JNI ? Using JNI we are able to call attributes being printed in almost every other languages off Coffee. Following the is actually its advantages and disadvantages: Advantages: We need to make use of current dating sites for Top people collection that has been prior to now written various other code. We wish to call Windows API mode. For the sake of execution speed. We wish to label API function of some machine product that is during c or c++ from coffees customer.
23. What is actually JFC ? Java Base Classes is: Practical AWT 1.1 Usage of screen Lightweight portion: that are interface parts which do not subclass an existing AWT software feature. They do not explore native program elements due to the fact provided with the latest fundamental windowing program. Coffee appearance and feel Assistance getting local look and feel Characteristics such as for example Java2D and you will Drag and Miss
twenty four. What exactly is Difference in AWT and Swing ? Move provides a wealthier number of components than simply AWT. He is one hundred% Java-depending. AWT additionally was developed into mind set whenever a component or capability of an element weren’t offered on one program, they wouldn’t be on people platform. Because of the peer-centered character off AWT, what can work on you to execution will most likely not work at various other, since the fellow-combination may not be as sturdy. There are a few most other advantages to Swing over AWT: Swing brings both extra parts and you can added capabilities to help you AWT-replacement section Move elements can change their looks according to the most recent “feel and look” collection which is getting used. Move section proceed with the Design-View-Control (MVC) paradigm, which means that can provide a far more versatile UI. Move brings “extras” getting parts, such: Signs toward many parts Pretty limitations having elements Product suggestions for components Swing parts is actually smaller (less funding intensive than simply AWT) Move brings founded-in the double buffering Move will bring paint debugging help to have once you help make your individual components Move has also several disadvantages: It entails Coffee dos otherwise a different Jar document If you are not as careful whenever coding, it could be slowly than AWT (all of the section are drawn) Move parts appear such as for example local section may well not operate exactly instance local parts
twenty-five. Provided notepad/Ie or other situation since the process, What are the results for people who initiate notepad or Internet explorer 3 x? Where step 3 procedure is actually been otherwise step 3 threads was started ? step three independent procedure was already been.
Difficult to debug runtime error into the local password
twenty six. Why does bond synchronization happens into the a screen ? [Question not too clear if you ask me ] This new JVM spends tresses along side checks. A display screen is simply a guardian in that it observe more a series out-of code, making certain just one bond at once works the fresh new code. Each display try regarding the an item source. Whenever a bond arrives at the original classes inside the good cut-off away from code it should obtain an effective secure into the referenced object. The fresh new thread is not allowed to play the code up until it obtains the new secure. Once it’s got gotten the fresh new lock, new thread goes into the new take off out of protected password. In the event that thread renders the stop, no matter what they renders brand new stop, it releases this new lock towards the related target.
As a result he is less limiting than simple AWT parts
27. How will you name a keen Applet having fun with a coffee Program means ? Along these lines: document.appletName.methodCall(. ) Does not work having Web browser even if
28. Could there be one tag inside the HTML in order to publish and you can install data files ? I am not saying conscious of HTML tags to help me personally upload a file, we might certianly require some servers front scripting so you can procedure that. We are able to yes fool around with HTML to provide a get hyperlink because the follows: code: Follow this link to help you download