Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Practice InterviewNew Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

GWT Interview Questions and Answers

Ques 16. What are the GWT Panels?

Ans. RootPanel is the top level panel.

For layout the page, we could use following layout panels, finally we need to add all those layout panels in RootPanel.


Use below panels inside the Layout panels for holding the widgets.

VerticalPanel ( Prefer using FlowPanel )

Is it helpful? Add Comment View Comments
Ques 17. How to create custom widgets in GWT?
Ans. Create a class that should extends Composite class of GWT.
Inside the constructor you can write you logic to create a widget and call the initWidget method().
Then you can use this class in anywhere in the application and add this widget in any panels.

private static class OptionalTextBox extends Composite implements
ClickHandler {
private TextBox textBox = new TextBox();
private CheckBox checkBox = new CheckBox();
Is it helpful? Add Comment View Comments
Ques 18. Code of entry point with onModuleLoad where split out is working.
Ans. To split your code, simply insert calls to the method GWT.runAsync at the places where you want the program to be able to pause for downloading more code. These locations are called split points. For this you should use runAsync.

public class Hello implements EntryPoint {
public void onModuleLoad() {
Button b = new Button(\"Click me\", new ClickHandler() {
public void onClick(ClickEvent event) {
GWT.runAsync(new RunAsyncCallback() {
public void onFailure(Throwable caught) {
Window.alert(\"Code download failed\");

public void onSuccess() {
Window.alert(\"Hello, AJAX\");

Is it helpful? Add Comment View Comments
Ques 19. What is AsyncDataProvider in GWT cell widgets?
Ans. When you want to display dynamic data or a range of data, not just a static list, then we should use AsyncDataProvider.
Is it helpful? Add Comment View Comments
Ques 20. What is GWT ClientBundle?
Ans. In GWT we can use ClientBundle to load all the images and CSS files in one single file and use it anywhere in the application. It provides flexible way to get the resources.

1. It creates a single image from the collection of images at compile time to reduce the image size.
2. Enable more aggressive caching headers for program resources. It will go to server for every-time to get the images.
3.Eliminate mismatches between physical file names and constants in Java code by performing consistency checks during the compile.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2020 WithoutBook