More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. The TreeViewer class provides viewer support for displaying trees. This widget is used to display parent-child information with buttons to expand and collapse the tree.
We have to create and specify the LabelProvider and Content Provider classes. In the respective classes we specify the parent and child objects and their relationship.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Only a single class ie Button is used to create all button types. We distinguish among different types by specifying the style while creating a new button object.
Help us improve. Please let us know the company, where you were asked this question :
Ans. a. Inform the stake holders that the issue is being worked upon.
b. Login to server to see if its responding.
c. Access Application and Web Server logs to see if the application is receiving requests.
d. If not, Involve the appropriate Network Team.
e. Inform the stakeholders regarding the progress.
f. Bounce the web / application server instance , if required.
g. Close the ticket with the steps taken to resolve the problem.
h. Complete the RCA ( Root Cause Analysis ) and submit the report to stake holders.
Help us improve. Please let us know the company, where you were asked this question :
Ans. We try to look for errors in the last n minutes when the issue occurred. If the issue is still occurring intermittently, We tail the logs for different application server instances to see the error snippets coming in the live logs.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Yes we have created System as well as Log monitoring scripts to keep track of exceptions. We are also using a tool that will inform the stake holders if an exceptional event occurs with the system.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Yes , sometime we receive issues related to outdated pages being rendered to the user. In those cases we clear the cache and then try to investigate the reason for that. Sometime the issue is due to comparatively high refresh interval. In those cases we reduce the cache refresh interval.
Help us improve. Please let us know the company, where you were asked this question :
Ans. We inform the stakeholders regarding the resolution and steps taken for it. We updated the ticket notes and link it with the master / related tickets. RCA is done for the high priority and critical issues and a report is submitted.
Help us improve. Please let us know the company, where you were asked this question :
Ans. We can follow the same design which we follow in singleton Classes. We can have a static counter that will keep the count of number of objects already created, We can keep the constructor private and being called through the static method. We can keep incrementing the counter before calling the constructor and put a check to call only if it's lesser than n.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Yes its useless if we are not going to use its objects within Hash collection, For example - HashSet , HashMap. HashCode is used internally by these collections for Search.
Help us improve. Please let us know the company, where you were asked this question :
Ans. filter tag speficies the filter name and respective class for handling filter action whereas filter mapping maps the filter to the url patterns ( specifying the url that needs to be intercepted )
Help us improve. Please let us know the company, where you were asked this question :
Ans. Sitemesh is a web page layout and decoration framework by OpenSymphony. SiteMeshFilter can intercept the requests and then build UI components (based on configuration) then renders the final page.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Its used to access the object properties using the object reference or class properties using the Class Name. Moreover its used to access the classes and Interfaces of a package.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Similarities - Both and Object Oriented and Statically typed languages that runs on JVM.
Difference - Unlike Java, Scala is a Pure Object Oriented language as it doesn't use primitives and static variables.Unlike Java 8 which supports some functional programming concepts, Scala provides support for all functional programming concepts. Java 8 does not support Pattern Matching, Function Currying etc
Help us improve. Please let us know the company, where you were asked this question :
Ans. Scala is a general purpose programming language that runs on JVM. Its completely inter operable with Java, purely object oriented and has full support for functional programming and a strong static type system.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Scala code is more concise and hence easy to read and maintain. It supports all features of functional programming and provide a pure object oriented way of application creation. It is ideal for creating all scales of applications. It is inter operable with Java code and hence can import / use Java libraries and frameworks.
Help us improve. Please let us know the company, where you were asked this question :