Why would you desing a J2EE application so user data is
entered by way of a JSP page and managed by an underlying
Java Beans class?
Answer Posted / tarun tyagi
See if you are still writing applications that use
data-aware GUI components to interface directly with the
database, you might want to reconsider. Applications built
in this manner are not object oriented. Such two-layer
(GUI/Database) applications violate one of the primary
principles of object-oriented design: encapsulation.
Encapsulation is what allows a client to interact with an
object without knowledge of its implementation details, a
primary premise for loose coupling. In applications that use
data-aware widgets, the opposite is the case. The client and
the database are very tightly coupled. GUI code, business
logic, and SQL statements are all interwoven throughout the
application source code. As a result, the application can
become a maintenance nightmare. Any changes in the database
schema will surely cascade into unexpected failures.
Thats why we design a J2EE application so user data is
entered by way of a JSP page and managed by an underlying
Java Beans class
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Can a class have an interface?
What are the different http methods?
What is qms certification?
Can we write class inside a class in java?
What is use of inner class in java?
How to sort an array from smallest to largest java?
What are the different types of constructor?
Is java still necessary?
What is the difference between length and length() method in java?
How does arraylist size increase in java?
What is difference between path and classpath variables?
Can a constructor call another constructor?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
Which of the following classes will have more memory allocated?
What does index mean in java?