Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

GWT Interview Questions and Answers

Ques 1. What is Google Web Toolkit (GWT)?

Ans. The Google Web Toolkit (GWT) is a toolkit to develop Ajax web application with Java. The programmer writes Java code and this code is translated into HTML and Javascript via the GWT compiler.
The compiler creates browser specific HTML and JavaScript to support all the major browsers correctly. GWT supports a standard set of UI widgets, has build in support for the browser back button and a JUnit based test framework.

GWT provides two modes:
Development Mode: allows to debug the Java code of your application directly via the standard Java debugger.
Web mode: the application is translated into HTML and Javascript code and can be deployed to a webserver.

Is it helpful? Add Comment View Comments
Ques 2. How many modes are provided by GWT to execute application?
Ans. There are two modes: Development mode and Web mode.
Development Mode: allows to debug the Java code of your application directly via the standard Java debugger.
Web mode: the application is translated into HTML and Javascript code and can be deployed to a webserver.
Is it helpful? Add Comment View Comments
Ques 3. What are Modules, Entry Points and HTML Pages in GWT?
Ans. GWT applications are described as modules. A module \"modulename\" is described by a configuration file \"modulename.gwt.xml\". Each module can define one or more Entry point classes.

An entry point is the starting point for a GWT application, similar to the main method in a standard Java program. A Java class which is an entry point must implement the interface \"com.google.gwt.core.client.EntryPoint\" which defines the method onModuleLoad().

The module is connected to a HTML page, which is called \"host page\". The code for a GWT web application executes within this HTML document.
The HTML page can define \"div\" containers to which the GWT application can assign UI components or the GWT UI components are simply assigned to the body tag of the HTML page.
Is it helpful? Add Comment View Comments
Ques 4. Can we set CSS style in GWT Java code?
Ans. The look and feel of a GWT application can be customized via CSS files. Each widget in GWT can be given a HTML \"div\" container and can therefore be individually styled by CSS. You use the Java method setStyle(String s) for this.
Is it helpful? Add Comment View Comments
Ques 5. How can we run GWT application?
Ans. Two ways of running the application:
1) Create a war file and deploy in any app server or

2) Run ant hosted in the command prompt. And click on the ‘Launch Default Browser’.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2017 WithoutBook