Q12. What is the similarity and difference between option button and check boxes?
Ans. An option button is used to display an option that can be turned on or off. Usually option buttons are used for a group of options where from user can select just one.
Check boxes are used to allow a user select multiple choices.
Though option button and check boxes appear to function similarly, yet there is an important difference. When an option button is selected, all other option button controls in its group (i.e., in the same group) are automatically unselected. On the other hand, any number of check box controls can be selected.
Q11. What is the relationship of properties, methods and events?
Ans. Although properties, methods and events do different things, yet they are interrelated.
Properties can be thought of as an object’s attributes, methods as its actions, and events as its response.
Q10. What are containers or container controls?
Ans. A container is a control that can hold other controls within it e.g., a Frame (there can be multiple controls inside a frame) or a label (it can hold an image and/or text) or simply window (we can put so many controls on it). Controls inside a container are known as child controls. The child controls can exist completely inside their containers. That means we can’t move them outside their container.
When we delete a container control, all its child controls automatically get deleted.
Q8. What do you mean by Visual programming?
Ans. Visual is a method to create GUI applications. The visual programming style involves a lot of illustrations i.e., graphics entities, rather than writing numerous lines of code to describe the appearance, functioning etc. of the application’s interface.
Q7. How are Internet applets different from stand alone applications of Java?
Ans. Internet applets cannot run on their own. They run from within a web browser whereas Java stand applications can run independently on any platform.
Q6. Name two types of Java programs?
Ans. The two types of Java applications are Internet applets and Stand alone applications.
Q5. What is Write Once Run Anywhere characteristics of Java?
Ans. The Java programs need to be written just once, which can be run on different platforms without making changes in the Java program. Only the Java interpreter is changed depending upon the platform.
This characteristic is known as Write Once Run Anywhere.
Q4. What do you understand by JVM?
Ans. The Java Virtual Machine is an abstract machine designed to be implemented on the top of existing processors. It hides the underlying operating system from Java applications. Programs written in Java are complied into Java Byte code, which is then interpreted by a special Java Interpreter for a specified platform. Actually this Java interpreter is known as the Java Virtual Machine(JVM).