YouTube Icon

Interview Questions.

Top 100+ Java-google Web Toolkit (gwt) Interview Questions And Answers - May 31, 2020

fluid

Top 100+ Java-google Web Toolkit (gwt) Interview Questions And Answers

Question 1. What Is Gwt?

Answer :

Google Web Toolkit (GWT) is a improvement toolkit for constructing and optimizing complicated browser-based packages. GWT is used by many merchandise at Google, along with Google AdWords and Orkut.

Question 2. What Are The Features Of Gwt?

Answer :

Following are the features of GWT −

Google Web Toolkit (GWT) is a improvement toolkit to create RICH Internet Application(RIA).
GWT presents builders choice to write customer aspect application in JAVA.
GWT compiles the code written in JAVA to JavaScript code.
Application written in GWT is go-browser compliant. GWT robotically generates javascript code appropriate for every browser.
GWT is open supply, absolutely unfastened, and used by hundreds of developers around the world. It is certified below the Apache License model 2.0.
Adv Java Interview Questions
Question 3. What Are The Core Components Of Gwt?

Answer :

Following are the middle components of GWT −
GWT Java to JavaScript compiler − This is the most essential a part of GWT which makes it a powerful tool for building RIAs. The GWT compiler is used to translate all of the software code written in Java into JavaScript.
JRE Emulation library − Google Web Toolkit consists of a library that emulates a subset of the Java runtime library. The list consists of java.Lang, java.Lang.Annotation, java.Math, java.Io, java.Sq., java.Util and java.Util.Logging.
GWT UI constructing library − This part of GWT includes many subparts which incorporates the actual UI components, RPC guide, History control, and lots more.
GWT Hosted Web Browser − GWT Hosted Web Browser lets you run and execute your GWT packages in hosted mode, wherein your code runs as Java inside the Java Virtual Machine with out compiling to JavaScript.

Question 4. What Are The Components Of A Gwt Application?

Answer :

A GWT application includes following four vital parts out of which ultimate component is non-obligatory however first three components are mandatory −

Module descriptors
Public sources
Client-facet code
Server-facet code
Adv Java Tutorial
Question five. What Is Module Descriptor In Gwt?

Answer :

A module descriptor is the configuration record within the form of XML which is used to configure a GWT utility. A module descriptor file extension is *.Gwt.Xml, in which * is the name of the software and this report need to reside inside the mission's root.

J2EE Interview Questions
Question 6. What Is The Purpose Of 'module' Tag In *.Gwt.Xml File In Gwt?

Answer :

This affords name of the software.

 

Question 7. What Is The Purpose Of 'inherits' Tag In *.Gwt.Xml File In Gwt?

Answer :

This adds different gwt module in application just like import does in java programs. Any quantity of modules may be inherited in this manner.

J2EE Tutorial Core Java Interview Questions
Question eight. What Is The Purpose Of 'access-point' Tag In *.Gwt.Xml File In Gwt?

Answer :

This specifies the name of class if you want to start loading the GWT Application.

Question nine. Can You Have Multiple Entry-point Classes In A *.Gwt.Xml File?

Answer :

Yes! Any range of entry-factor training may be introduced.

JSP Interview Questions
Question 10. Which Method Of A Entry-point Class Is Called When Gwt Application Starts?

Answer :

onModuleLoad() function receives known as and acts similar to important method of a java application.

Core Java Tutorial
Question eleven. How Onmoduleload() Functions Get Called If Multiple Entry-factor Classes Are Specified In *.Gwt.Xml?

Answer :

They are known as sequentially in the order in which entry-factor instructions appear in the module document. So while the onModuleLoad() of your first access point finishes, the next entry factor is called right now.

Java-Springs Interview Questions
Question 12. What Is The Purpose Of 'supply' Tag In *.Gwt.Xml File In Gwt?

Answer :

This specifies the names of supply folders which GWT compiler will search for source compilation.

Adv Java Interview Questions
Question 13. What Is The Purpose Of 'public' Tag In *.Gwt.Xml File In Gwt?

Answer :

The public direction is the area in your undertaking in which static assets referenced by way of your GWT module, which include CSS or images, are saved.

JSP Tutorial
Question 14. What Is Default Public Path For Static Resources In Gwt Application?

Answer :

The default public route is the general public subdirectory underneath where the Module XML File is saved.

Question 15. What Is The Purpose Of 'script' Tag In *.Gwt.Xml File In Gwt?

Answer :

Automatically injects the external JavaScript record positioned on the region particular via src.

JMS(Java Message Service) Interview Questions
Question 16. What Is The Purpose Of 'stylesheet' Tag In *.Gwt.Xml File In Gwt?

Answer :

Automatically injects the outside CSS record placed on the place unique by means of src.

Java-Springs Tutorial
Question 17. What Is An Entry-point Class?

Answer :

A module entry-point is any class that is assignable to EntryPoint and that can be constructed with out parameters. When a module is loaded, every entry factor elegance is instantiated and its EntryPoint.OnModuleLoad() approach gets called.

Java applet Interview Questions
Question 18. What Is *.Nocache.Js File In Gwt?

Answer :

It carries the javascript code required to resolve deferred binding configuarations (for instance, browser detection) and to apply lookup desk generated by using GWT compiler to discover one of the .Cache.Html.

 

J2EE Interview Questions
Question 19. What Is .Cache.Html File In Gwt?

Answer :

It contains the real application of a GWT software.

Java Tutorial
Question 20. Explain Bootstrap Procedure For Gwt Application?

Answer :

Following are the stairs of bootstrap proceure for GWT application whilst a browser loads the GWT application −

Browser masses the host html page and .Nocache.Js document.
Browser executes the .Nocache.Js document's javascript code.
.Nocache.Js code resolves deferred binding configuarations (for example, browser detection) and use research desk generated by way of GWT compiler to locate one of the .Cache.Html.
.Nocache.Js code then creates a html hidden iframe, inserts that iframe into the host web page's DOM, and loads the .Cache.Html report into the identical iframe.
.Cache.Html contains the actual application of a GWT software and once loaded in iframe indicates the GWT utility in the browser.
Java Interview Questions
Question 21. Why Should A .Nocache.Js File Never Be Cached?

Answer :

GWT compiler generates .Nocache.Js record every time with the equal call every time a GWT utility is compiled. So browser must always download the .Nocache.Js record to get the trendy gwt application. Gwt.Js code definitely appends a completely unique timestamp on the cease of the file name so that browser constantly treat it a brand new document and need to by no means cache it.

Question 22. What Is The Purpose Of Host Page?

Answer :

The maximum crucial public resource is host web page that is used to invoke real GWT utility. A standard HTML host web page for an utility might not encompass any seen HTML frame content material in any respect but it is constantly expected to include GWT application through a <script.../> tag.

Drools Tutorial
Question 23. What Is The Default Style Name Of Any Gwt Widget?

Answer :

By default, the class call for every element is gwt-<classname>. For example, the Button widget has a default style of gwt-Button and similar way TextBox widgest has a default style of gwt-TextBox.

Drools Interview Questions
Question 24. Do Gwt Compiler Creates Default Id Attribute For Its Widget By Default?

Answer :

No! By default, neither the browser nor GWT creates default identification attributes for widgets.

Core Java Interview Questions
Question 25. What Is The Purpose Of Setstylename() Function Of A Gwt Widget?

Answer :

This method will clean any present patterns and set the widget fashion to the new CSS elegance provided the use of fashion.

Java eight Tutorial
Question 26. What Is The Purpose Of Addstylename() Function Of A Gwt Widget?

Answer :

This technique will upload a secondary or based fashion call to the widget. A secondary style call is a further style name this is,so if there were any preceding fashion names carried out they're saved.

Java eight Interview Questions
Question 27. What Is The Purpose Of Removestylename() Function Of A Gwt Widget?

Answer :

This approach will do away with given fashion from the widget and leaves any others associated with the widget.

JSP Interview Questions
Question 28. What Is The Purpose Of Getstylename() Function Of A Gwt Widget?

Answer :

This approach gets all the object's style names, as a area-separated listing.

JBOSS Tutorial
Question 29. What Is The Purpose Of Setstyleprimaryname() Function Of A Gwt Widget?

Answer :

This technique sets the item's number one fashion name and updates all established fashion names.

 

JBOSS Interview Questions
Question 30. What Is The Difference Between Primary Style And Secondary Styles Of A Gwt Widget?

Answer :

By default, the primary style name of a widget could be the default fashion name for its widget magnificence. For example, gwt-Button for Button widgets. When we add and put off style names using AddStyleName() approach, the ones patterns are known as secondary styles.
The final appearance of a widget is determined by means of the sum of all the secondary patterns added to it, plus its primary fashion. You set the primary fashion of a widget with the setStylePrimaryName(String) method.

 

Question 31. How You Can Attach A Css File With Your Gwt Module?

Answer :

There are more than one procedures for associating CSS files together with your module. Modern GWT applications normally use a aggregate of CssResource and UiBinder.

Using a <link> tag in the host HTML page.
Using the <stylesheet> detail inside the module XML file.
Using a CssResource contained within a ClientBundle.
Using an inline <ui:style> detail in a UiBinder template.
Lucene Tutorial
Question 32. Which Class Is The Superclass Of All User-interface Classes?

Answer :

The magnificence UIObject is the superclass for all consumer-interface objects.

Java Management Extensions (JMX) Interview Questions
Question 33. Explain Uiobject Class.

Answer :

 

The magnificence UIObject is the superclass for all consumer-interface gadgets. It without a doubt wraps a DOM detail, and cannot get hold of occasions. It affords direct child instructions like Widget, MenuItem, MenuItemSeparator, TreeItem.
All UIObject objects may be styled using CSS.
Every UIObject has a number one style call that identifies the key CSS fashion rule that should continually be implemented to it.
More complex styling conduct can be finished by using manipulating an object's secondary fashion names.
Java-Springs Interview Questions
Question 34. Explain Widget Class?

Answer :

The magnificence Widget is the bottom class for the majority of user-interface objects. Widget adds support for receiving occasions from the browser and being delivered without delay to panels.

Question 35. What Is The Purpose Of Label Widget Of A Gwt?

Answer :

This widget carries text, not interpreted as HTML the use of a <div>detail, causing it to be displayed with block layout.

Question 36. What Is The Purpose Of Html Widget Of A Gwt?

Answer :

This widget can incorporate HTML textual content and presentations the html content the use of a <div> element, inflicting it to be displayed with block layout.

JMS(Java Message Service) Interview Questions
Question 37. What Is The Purpose Of Image Widget Of A Gwt?

Answer :

This widget displays an image at a given URL.

Question 38. What Is The Purpose Of Anchor Widget Of Gwt?

Answer :

This widget represents a simple <a> element.

 

Question 39. Which Widget Represents A Standard Push Button In Gwt?

Answer :

Button widget represents a standard push button.

Question forty. What Are Layout Panels In Gwt?

Answer :

Layout Panels can incorporate other widgets. These panels controls the way widgets to be proven on User Interface. Every Panel widget inherits properties from Panel elegance which in turn inherits homes from Widget elegance and which in turn inherits properties from UIObject magnificence.

Java applet Interview Questions
Question 41. Which Class Is The Base Class Of All Layout Panel Classes?

Answer :

Panel is the abstract base magnificence for all panels, that are widgets that can contain different widgets.

Question 42. Which Gwt Widget Represents A Panel That Lays All Of Its Widgets Out In A Single Horizontal Column?

Answer :

HorizontalPanel widget represents a panel that lays all of its widgets out in a unmarried horizontal column.

 

Java Interview Questions
Question 43. Which Gwt Widget Represents A View Of A Tree?

Answer :

CellTree widget represents a view of a tree. This widget will only work in requirements mode, which requires that the HTML page in which it's far run have an explicit <!DOCTYPE> statement.

 

Question 44. Which Gwt Widget Represents A Browsable View Of A Tree In Which Only A Single Node Per Level May Be Open At One Time?

Answer :

CellBrowser widget represents a browsable view of a tree in which best a single node in step with degree can be open at one time. This widget will best paintings in requirements mode, which requires that the HTML page wherein it's far run have an express <!DOCTYPE> declaration.

Question 45. Which Gwt Widget Represents A Standard Hierarchical Tree?

Answer :

Tree widget represents a trendy hierarchical tree widget. The tree contains a hierarchy of TreeItems that the person can open, close, and choose.

Question 46. Which Widget Represents A Rich Text Editor In Gwt?

Answer :

RichTextArea widget represents a rich text editor that lets in complex styling and formatting.

 

Question forty seven. Which Widget Acts As A Suggestion Box In Gwt?

Answer :

SuggestBox widget represents a textual content container or text region which displays a pre-configured set of choices that healthy the user's enter. Each SuggestBox is related to a unmarried SuggestOracle. The SuggestOracle is used to provide a fixed of selections given a specific query string.

Question 48. Which Widget Represents A Single Line Text Box In Gwt?

Answer :

TextBox widget represents a unmarried line text box.

 

Question forty nine. How To Enable History Support In Gwt Application?

Answer :

In order to use GWT History aid, we should first embed following iframe into our host HTML page.
<iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>

 

Question 50. What Is Gwt Logging Framework?

Answer :

The logging framework emulates java.Util.Logging, so it makes use of the same syntax and has the equal behavior as server facet logging code.
GWT logging is configured using .Gwt.Xml documents.
We can configure logging to be enabled/disabled; we will allow/disable unique handlers, and trade the default logging degree.




CFG