Interview Question and Answers | Search Coding Interview Questions - 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
 Q2191. Do you feel that its useless to define hashCode method for a class ?Core Java
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 :   

   Like         Discuss         Correct / Improve     hashcode  hash collections  search


 Q2192. How can be restrict creation of more than n objects in Java ?Core Java
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 :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q2193. How to use Find command in Unix ?Unix
Ans. http://javasearch.buggybread.com/UnixCommand/searchUnixCommandsScripts.php?keyword=find

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

   Like         Discuss         Correct / Improve     find command     Asked in 1 Companies


 Q2194. 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


 Q2195. 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


 Q2196. Do you use command aliases while doing your work ?General
Ans. Yes , I have created many aliases and saved them within my .profile file so that the system loads them, the each time i logs onto the server.

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

   Like         Discuss         Correct / Improve     unix  command aliasis


 Q2197. 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


 Q2198. 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


 Q2199. 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


 Q2200. 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


 Q2201. 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


 Q2202. 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


 Q2203. 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


 Q2204. 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


 Q2205. 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     


 Q2206. 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     


 Q2207. 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     


 Q2208. 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     


 Q2209. 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     


 Q2210. 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     


 Q2211. 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     


 Q2212. 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     


 Q2213. 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     


 Q2214. 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


 Q2215. 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


 Q2216. 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


 Q2217. 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


 Q2218. 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


 Q2219. 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


 Q2220. 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


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: