Multiple choice technology architecture

You are designing a new web application. You need to display data in tables and dropdowns. Your team which has expert JavaScript developers suggest to build these controls using JavaScript rather than Servlets/JSP. What are the main disadvantages with this approach?

  1. Developing the code.

  2. Confidentiality of code

  3. It is very hard to deploy.

  4. Javascript should never be used for Java EE applications. Java EE specification does not mention about javascript.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When building UI controls with JavaScript, all the code runs on the client side in the browser. This means the entire source code is visible to anyone who uses View Source or browser developer tools - there's no way to hide or protect it. This exposes business logic, algorithms, and proprietary implementation details. Options A and C are incorrect - JavaScript development is standard and deployment is simply hosting files. Option D is false.