COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A reusable java program that can be used by any application understanding it’s format
A
Validate the design
B
JavaBean
C
Design the solution
D
Analyze the requirements
Explanation: 

Detailed explanation-1: -Java Beans are, quite simply, reusable controls written in Java, for Java application development. Beans are “capsules” of code, each designed for a specific purpose. The advantage of Java Beans over standard programming controls is that Beans are independent.

Detailed explanation-2: -yes java beans are piece of reusable codes, this means that you can reuse it any where. Following is an example. when you run this jsp page it will ask for cutomer id, quantity, total etc and after you submit it then it will insert it into database.

Detailed explanation-3: -A JavaBean property is a named attribute that can be accessed by the user of the object. The attribute can be of any Java data type, including the classes that you define. S.No. For example, if property name is firstName, your method name would be getFirstName() to read that property.

Detailed explanation-4: -JavaBeans provide default constructor without any conditions or arguments. JavaBeans are serializable and are capable of implementing the Serializable interface. JavaBeans usually have several ‘getter’ and ‘setter’ methods. JavaBeans can have several properties that can be read or written.

There is 1 question to complete.