InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is Gwt Uibinder? |
Answer»
|
|
| 2. |
How Can You Create A Custom Gwt Widget? |
|
Answer» GWT provides THREE ways to create custom user interface elements. There are three general strategies to FOLLOW −
GWT provides three ways to create custom user interface elements. There are three general strategies to follow − |
|
| 3. |
What Is Systemloghandler In Gwt? |
|
Answer» SystemLogHandler LOGS to stdout and these MESSAGES can only be SEEN in DEVELOPMENT Mode in the DevMode window. SystemLogHandler logs to stdout and these messages can only be seen in Development Mode in the DevMode window. |
|
| 4. |
What Is Developmentmodeloghandler In Gwt? |
|
Answer» DEVELOPMENTMODELOGHANDLER logs by CALLING METHOD GWT.log. These MESSAGES can only be seen in DEVELOPMENT Mode in the DevMode window.
DevelopmentModeLogHandler logs by calling method GWT.log. These messages can only be seen in Development Mode in the DevMode window.
|
|
| 5. |
What Is Consoleloghandler In Gwt? |
|
Answer» ConsoleLogHandler LOGS to the JAVASCRIPT CONSOLE, which is USED by Firebug Lite (for IE), Safari and Chrome. ConsoleLogHandler logs to the javascript console, which is used by Firebug Lite (for IE), Safari and Chrome. |
|
| 6. |
What Is Firebugloghandler In Gwt? |
|
Answer» FIREBUGLOGHANDLER LOGS to FIREBUG CONSOLE. FirebugLogHandler logs to Firebug console. |
|
| 7. |
What Is Popuploghandler In Gwt? |
|
Answer» PopupLogHandler logs to the POPUP which resides in the UPPER left HAND corner of APPLICATION when this handler is enabled.
PopupLogHandler logs to the popup which resides in the upper left hand corner of application when this handler is enabled.
|
|
| 8. |
What Is Simpleremoteloghandler In Gwt? |
|
Answer» This HANDLER sends log messages to the SERVER, where they will be LOGGED using the server side LOGGING mechanism. This handler sends log messages to the server, where they will be logged using the server side logging mechanism. |
|
| 9. |
Which Tag Of *.gwt.xml Is Used To Support Internationalization In Gwt Application? |
|
Answer» extend-property TAG with attribute name SET as locale and VALUES as language specific locale, say de for GERMAN locale.
extend-property tag with attribute name set as locale and values as language specific locale, say de for german locale.
|
|
| 10. |
What Is Localizable Interface Internationalization Technique In Gwt? |
|
Answer» This technique is the most powerful among the THREE techniques. Implementing Localizable ALLOWS us to create LOCALIZED versions of CUSTOM TYPES. It's an advanced internationalization technique. This technique is the most powerful among the three techniques. Implementing Localizable allows us to create localized versions of custom types. It's an advanced internationalization technique. |
|
| 11. |
What Is Dynamic String Internationalization Technique In Gwt? |
|
Answer» This technique is very flexible but slower than static string internationalization. Host page CONTAINS the localized strings therefore, applications are not required to be RECOMPILED when we ADD a NEW locale. If GWT application is to be integrated with an existing server-side localization SYSTEM, then this technique is to be used. This technique is very flexible but slower than static string internationalization. Host page contains the localized strings therefore, applications are not required to be recompiled when we add a new locale. If GWT application is to be integrated with an existing server-side localization system, then this technique is to be used. |
|
| 12. |
What Is Static String Internationalization Technique In Gwt? |
|
Answer» This TECHNIQUE is most prevalent and requires very little overhead at runtime; is a very EFFICIENT technique for translating both constant and parameterized strings;SIMPLEST to IMPLEMENT. Static string internationalization uses standard Java properties files to store translated strings and parameterized messages, and strongly-typed Java interfaces are created to retrieve their VALUES. This technique is most prevalent and requires very little overhead at runtime; is a very efficient technique for translating both constant and parameterized strings;simplest to implement. Static string internationalization uses standard Java properties files to store translated strings and parameterized messages, and strongly-typed Java interfaces are created to retrieve their values. |
|
| 13. |
What Are The Ways Using Which You Can Internationalize A Gwt Application? |
|
Answer» GWT provides THREE ways to INTERNATIONALIZE a GWT APPLICATION −
GWT provides three ways to internationalize a GWT application − |
|
| 14. |
Which Interface A Java Data Object Should Implement So That It Can Be Transferred Over The Wire In Gwt Rpc? |
|
Answer» A JAVA DATA object should IMPLEMENT isSerializable INTERFACE so that it can be transferred over the wire in GWT RPC. A java data object should implement isSerializable interface so that it can be transferred over the wire in GWT RPC. |
|
| 15. |
What Are The Core Components Of Gwt Rpc? |
|
Answer» FOLLOWING are the three components used in GWT RPC COMMUNICATION MECHANISM:
Following are the three components used in GWT RPC communication mechanism:
|
|
| 16. |
What Is Gwt Rpc? |
Answer»
|
|
| 17. |
How To Create A Gwt Application? |
|
Answer» •Create a folder for the application (e.g. withoutbook) •Create a folder for the application (e.g. withoutbook) |
|
| 18. |
How To Compile The Gwt Application? |
|
Answer» Run ant build in the root folder of the application. By default gwt compiler creates optimized JS files for some BROWSERS. Run ant build in the root folder of the application. By default gwt compiler creates optimized JS files for some browsers. |
|
| 19. |
How Can You Set Browser Targeted Compilation In Gwt? |
|
Answer» •To REDUCE the compilation TIME, choose favorite browser and add the user.agent property in the module configuration file.
•To reduce the compilation time, choose favorite browser and add the user.agent property in the module configuration file.
|
|
| 20. |
How Many Modes Are Provided By Gwt To Execute Application? |
|
Answer» There are two MODES: Development mode and Web mode. There are two modes: Development mode and Web mode. |
|
| 21. |
What Are Modules, Entry Points And Html Pages In Gwt? |
|
Answer» 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.
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.
|
|
| 22. |
Can We Set Css Style In Gwt Java Code? |
|
Answer» 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. 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. |
|
| 23. |
How Can We Run Gwt Application? |
|
Answer» Two ways of running the application: Two ways of running the application: |
|
| 24. |
Why Is Stringbuffer Called Mutable? |
|
Answer» The String class is CONSIDERED as IMMUTABLE, so that once it is created a String OBJECT cannot be changed. If there is a NECESSITY to make ALOT of modifications to Strings of characters then StringBuffer should be used. The String class is considered as immutable, so that once it is created a String object cannot be changed. If there is a necessity to make alot of modifications to Strings of characters then StringBuffer should be used. |
|
| 25. |
What Is The Difference Between Stringbuffer And Stringbuilder Class? |
|
Answer» Use StringBuilder whenever POSSIBLE because it is faster than STRINGBUFFER. But, if THREAD SAFETY is necessary then use StringBuffer objects. Use StringBuilder whenever possible because it is faster than StringBuffer. But, if thread safety is necessary then use StringBuffer objects. |
|
| 26. |
Which Package Is Used For Pattern Matching With Regular Expressions? |
|
Answer» java.util.regex PACKAGE java.util.regex package |
|
| 27. |
What Is Finalize() Method? |
|
Answer» It is POSSIBLE to define a method that will be called just before an object's final destruction by the GARBAGE collector. This method is called FINALIZE( ), and it can be used to ensure that an object terminates CLEANLY. It is possible to define a method that will be called just before an object's final destruction by the garbage collector. This method is called finalize( ), and it can be used to ensure that an object terminates cleanly. |
|
| 28. |
What Do You Mean By Object? |
|
Answer» Object is a RUNTIME entity and it’s STATE is STORED in fields and behavior is shown via methods. Methods OPERATE on an object's internal state and SERVE as the primary mechanism for object-to-object communication. Object is a runtime entity and it’s state is stored in fields and behavior is shown via methods. Methods operate on an object's internal state and serve as the primary mechanism for object-to-object communication. |
|
| 29. |
Define Class? |
|
Answer» A class is a BLUE print from which INDIVIDUAL OBJECTS are created. A class can contain fields and methods to describe the BEHAVIOR of an object.
A class is a blue print from which individual objects are created. A class can contain fields and methods to describe the behavior of an object.
|
|
| 30. |
What Is A Local Variable? |
|
Answer» Variables defined INSIDE methods, CONSTRUCTORS or blocks are called LOCAL variables. The variable will be declared and INITIALIZED within the METHOD and it will be destroyed when the method has completed. Variables defined inside methods, constructors or blocks are called local variables. The variable will be declared and initialized within the method and it will be destroyed when the method has completed. |
|
| 31. |
What Is A Instance Variable? |
|
Answer» INSTANCE VARIABLES are variables WITHIN a class but outside any METHOD. These variables are instantiated when the class is loaded. Instance variables are variables within a class but outside any method. These variables are instantiated when the class is loaded. |
|
| 32. |
What Is A Class Variable? |
|
Answer» These are variables declared with in a class, OUTSIDE any METHOD, with the static KEYWORD. These are variables declared with in a class, outside any method, with the static keyword. |
|
| 33. |
What Is Singleton Class? |
|
Answer» Singleton class control OBJECT CREATION, limiting the number to one but ALLOWING the flexibility to CREATE more objects if the SITUATION changes. Singleton class control object creation, limiting the number to one but allowing the flexibility to create more objects if the situation changes. |
|
| 34. |
What Do You Mean By Constructor? |
|
Answer» Constructor GETS INVOKED when a NEW object is CREATED. Every class has a constructor. If we do not explicitly write a constructor for a class the java compiler BUILDS a default constructor for that class. Constructor gets invoked when a new object is created. Every class has a constructor. If we do not explicitly write a constructor for a class the java compiler builds a default constructor for that class. |
|
| 35. |
List The Three Steps For Creating An Object For A Class? |
|
Answer» An OBJECT is FIRST DECLARED, then INSTANTIATED and then it is INITIALIZED. An Object is first declared, then instantiated and then it is initialized. |
|
| 36. |
What Is The Default Value Of Byte Datatype In Java? |
|
Answer» DEFAULT VALUE of BYTE DATATYPE is 0. Default value of byte datatype is 0. |
|
| 37. |
What Is The Default Value Of Float And Double Datatype In Java? |
|
Answer» Default VALUE of FLOAT and double DATATYPE in different as COMPARED to C/C++. For float its 0.0f and for double it’s 0.0d Default value of float and double datatype in different as compared to C/C++. For float its 0.0f and for double it’s 0.0d |
|
| 38. |
When A Byte Datatype Is Used? |
|
Answer» This DATA type is used to save space in LARGE ARRAYS, mainly in place of integers, since a byte is FOUR times smaller than an int. This data type is used to save space in large arrays, mainly in place of integers, since a byte is four times smaller than an int. |
|
| 39. |
What Is A Static Variable? |
|
Answer» Class VARIABLES ALSO known as static variables are declared with the static KEYWORD in a class, but outside a method, CONSTRUCTOR or a block. Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block. |
|
| 40. |
What Do You Mean By Access Modifier? |
|
Answer» Java provides access modifiers to set access levels for classes, variables, methods and constructors. A MEMBER has package or default ACCESSIBILITY when no accessibility modifier is SPECIFIED. Java provides access modifiers to set access levels for classes, variables, methods and constructors. A member has package or default accessibility when no accessibility modifier is specified. |
|
| 41. |
What Is Protected Access Modifier? |
|
Answer» Variables, METHODS and constructors which are declared protected in a superclass can be ACCESSED only by the subclasses in other package or any CLASS within the package of the protected MEMBERS' class. Variables, methods and constructors which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members' class. |
|
| 42. |
Variables Used In A Switch Statement Can Be Used With Which Datatypes? |
|
Answer» VARIABLES USED in a switch statement can only be a STRING, ENUM, byte, short, int, or char. Variables used in a switch statement can only be a string, enum, byte, short, int, or char. |
|
| 44. |
Why Java Is Considered Dynamic? |
|
Answer» It is designed to ADAPT to an EVOLVING environment. Java programs can CARRY extensive amount of run-time INFORMATION that can be used to verify and RESOLVE accesses to objects on run-time. It is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time. |
|
| 45. |
How Java Enabled High Performance? |
|
Answer» Java uses Just-In-Time compiler to ENABLE HIGH performance. Just-In-Time compiler is a program that TURNS Java BYTECODE, which is a program that contains instructions that must be interpreted into instructions that can be sent directly to the PROCESSOR. Java uses Just-In-Time compiler to enable high performance. Just-In-Time compiler is a program that turns Java bytecode, which is a program that contains instructions that must be interpreted into instructions that can be sent directly to the processor. |
|
| 46. |
Why Is Java Architectural Neutral? |
|
Answer» It’s COMPILER generates an architecture-neutral object file format, which makes the COMPILED code to be executable on MANY processors, with the presence of Java RUNTIME SYSTEM. It’s compiler generates an architecture-neutral object file format, which makes the compiled code to be executable on many processors, with the presence of Java runtime system. |
|
| 47. |
List Any Five Features Of Java? |
|
Answer» Some features INCLUDE
Some features include |
|
| 48. |
What Are The Supported Platforms By Java Programming Language? |
|
Answer» Java runs on a VARIETY of platforms, such as Windows, Mac OS, and the various VERSIONS of UNIX/Linux LIKE HP-Unix, Sun Solaris, REDHAT Linux, Ubuntu, CentOS, etc. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX/Linux like HP-Unix, Sun Solaris, Redhat Linux, Ubuntu, CentOS, etc. |
|
| 49. |
What Do You Know About Java? |
|
Answer» Java is a high-level programming language originally developed by SUN Microsystems and RELEASED in 1995. Java runs on a variety of PLATFORMS, such as Windows, Mac OS, and the various versions of UNIX. Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. |
|
| 50. |
What Is The Importance Of Doctype In Html? |
|
Answer» Doctype tag is not a HTML tag, it is just an INSTRUCTION that is passed to the web BROWSER to check for the information that is being PROVIDED by the markup language in which the page is WRITTEN. Doctype is sometimes referred as Document type definition (DTD) that describes some rules that has to be FOLLOWED while writing the markup language so to make the web browser understand the language and the content correctly. Doctype is very important to be placed in the beginning of the HTML and before the <HTML> tag to allow easy rendering of the pages that are used. Doctype tag is not a HTML tag, it is just an instruction that is passed to the web browser to check for the information that is being provided by the markup language in which the page is written. Doctype is sometimes referred as Document type definition (DTD) that describes some rules that has to be followed while writing the markup language so to make the web browser understand the language and the content correctly. Doctype is very important to be placed in the beginning of the HTML and before the <HTML> tag to allow easy rendering of the pages that are used. |
|