Interview Questions and Answers for 'T' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 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.
Label / Company      Label / Company / Text

   



Interview Questions and Answers - Order By Rating

   next 30
 Q1501. How are DB transactions handled in Hibernate ? Hibernate
Ans. // Non-managed environment idiom
Session sess = factory.openSession();
Transaction tx = null;
try {
tx = sess.beginTransaction();

// do some work
...

tx.commit();
}
catch (RuntimeException e) {
if (tx != null) tx.rollback();
throw e; // or display error message
}
finally {
sess.close();
}

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q1502. What are your responsibilities after the problem ticket has been closed ?Support
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 :   

   Like         Discuss         Correct / Improve     production support  system support


 Q1503. What actions you take if there is an issue related to Database server ?Support
Ans. We involve DBA and try to solve it through them. By the time they are solving it , we keep the stake holders informed regarding the progress.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     database  database server  production support


 Q1504. Have you ever faced any problem due to caching?Support
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 :   

   Like         Discuss         Correct / Improve     production support  caching


 Q1505. What all caching has been used in your application?Support
Ans. We are using Akamai as web server cache.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     caching  production support


 Q1506. Have you done any sort of automation in your system monitoring tasks ?Support
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 :   

   Like         Discuss         Correct / Improve     production support  system monitoring  log monitoring


 Q1507. How do you monitor your logs while investigating a high severity problem ?Support
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 :   

   Like         Discuss         Correct / Improve     production support  unix  application logs


 Q1508. How do you monitor the server resources if inadvertently high traffic is reported ?Support
Ans. We use SAR command for that purpose. We also have GUI system monitoring tool to keep real time check of requests, load and memory usage.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     production support  unix  SAR


 Q1509. What are the steps you follow if you receive an application outage ticket ?Support
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 :   

   Like         Discuss         Correct / Improve     production support


 Q1510. Which Web and Application server is being used by your application ?Server
Ans. We are using Apache 2.3 and Tomcat 5.6

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     web server  application server  server      Basic        frequent


 Q1511. If we need to change the cell text in tableviewer or tree viewer , which file should we make the change in ?SWT
Ans. LabelProvider

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q1512. Which class is used to create buttons and how many classes we have to create different button types ?SWT
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 :   

   Like         Discuss         Correct / Improve     


 Q1513. Have you worked with the TreeViewer ? If yes , explainSWT
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 :   

   Like         Discuss         Correct / Improve     


 Q1514. Explain Layout Managers in SWT ?SWT
Ans. A layout manager is responsible for arranging the user interface components of a container, e.g. a Composite, on the screen. SWT offers several standard layout managers.

Following are the layout managers offered by SWT

AbsoluteLayout
FillLayout
RowLayout
GridLayout
FormLayout

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q1515. How do we do event handling using SWT ?SWT
Ans. We do it by registering listeners for respective widgets

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q1516. Are SWT Widgets automatically Gabage collected ?SWT
Ans. SWT widgets are not automatically garbage collected. If you release an SWT widget, you have to call its dispose() method.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q1517. What are the key components of SWT applications ?SWT
Ans. The Display and Shell classes are key components of SWT applications.

A org.eclipse.swt.widgets.Shell class represents a window.

The org.eclipse.swt.widgets.Display class is responsible for managing event loops, fonts, colors and for controlling the communication between the UI thread and other threads. Display is the base for all SWT capabilities.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q1518. Can we run Swing objects using SWT ?SWT
Ans. Yes

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q1519. Which is the highest level container which contains other widgets in SWT ?SWT
Ans. Shell

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q1520. What is SWT ?SWT
Ans. SWT is an open source widget tool kit for developing rich, efficient and portable GUI applications.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     swt


 Q1521. What are the cursors available in Java ?Core Java
Ans. Enumeration
Iterator
List iterator

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     cursors  iterator


 Q1522. Which memory segment holds String Pool in Java ?Core Java
Ans. String Pool resides in runtime constant Pool which is a part of Heap memory segment.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     string pool  memory management      Expert        rare


 Q1523. how to access the methods of an inner class?Core Java
Ans. It depends on the type of inner class

To access non static inner class method

new OuterClass().new InnerClass().getMethod();

To access static method of static inner class

new OuterClass.InnerClass().getMethod();

  Sample Code for inner class

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     inner classes  nested aclasses     Asked in 1 Companies      Intermediate        frequent


 Q1524. Which interface is responsible for transaction management in JDBC ?Database
Ans. Connection Interface

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     jdbc


 Q1525. What is Shutdown hook ?Core Java
Ans. Shutdown hook is a thread that is invoked before the JVM is shut down. we can use it perform resource cleaning task.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     shutdown hook  jvm

Try 1 Question(s) Test


 Q1526. Difference between shallow copy and object cloning ?Core Java
Ans. Shallow copy is one of the way for object cloning, other being deep copy.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     cloning  shallow copy  object cloning      basic


 Q1527. Can we convert a numeric IP address to a web host name ?Java EE
Ans. Yes, using InetAddress.getByName("<IP Address>").getHostName();

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     ip address to hostname  INETAddress      intermediate


 Q1528. What is an IO Filter ?Core Java
Ans. It's an object that reads from one stream and writes to another.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java io  io filter      intermediate


 Q1529. What is the difference between the Reader/Writer java.io hierarchy and the Stream class hierarchy?Core Java
Ans. The Reader/Writer hierarchy is character oriented, whereas the Stream class hierarchy is byte oriented.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java io  streams      intermediate


 Q1530. What kind of thread is garbage collection thread ?Core Java
Ans. Daemon thread

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     garbage collection      intermediate

Try 2 Question(s) Test


previous 30   next 30

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: