Interview Questions and Answers - Order By Newest Q1981. How would you design a Thread Pool ? Design
Ans. By using Executor Framework , we can create Thread pool Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Thread Pool Asked in 1 Companies expert Q1982. Suppose you have 8 balls, one of them is either have more/less weight, In how many least possible iterations would you find that ball? Design
This question was recently asked at 'Symantec'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  puzzle  design Asked in 1 Companies Ans. Hashing is a technique to calculate the hash code for any object Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1984. Draw uml for singleton pattern. Design
This question was recently asked at 'deutche bank'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  design pattern   singleton Asked in 1 Companies Q1985. Can you name few Java packages which you frequently used ? Core Java
This question was recently asked at 'Symantec'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1986. Can you tell something about Web security ? Web
This question was recently asked at 'Symantec'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  web security Asked in 1 Companies Q1987. If we have width of an html element as 100px and a border of 10 px. What will be the effective width of the element ? Will the border start after 100 px or after 90 px ? Html
This question was recently asked at 'Symantec'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1988. Can you create html and css for a rectangular shape button with width 10px. CSS
This question was recently asked at 'Symantec'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1989. What is the difference between Java OR operator and Java script OR operator ? JavaScript
This question was recently asked at 'Symantec'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1990. What are the advantages of using cascade style sheets or css ? CSS
Ans. We can enforce consistent UI and can have single point of change for UI components.' Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1991. How do you debug Javascript code ? JavaScript
Ans. Possible Answer - I use either Firebug or Chrome Developer tool. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1992. Have you ever worked with Firebug ? Browser
Ans. Possible Answer - Yes, for debugging Javascript issues and fixing CSS and Html. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1993. How can we assign common styling attributes to html tags and how can we do that across different tag types ? CSS
Ans. Using class selector. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1994. How can we align a particular html element to the center using css ? CSS
Ans. By using attribute align:center Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  css  html Asked in 1 Companies Q1995. What is the doctype declaration at the top of html page ? Html
Ans. It is an instruction to the web browser about what version of HTML the page is written in, which specifies the rules for the markup language, so that the browsers render the content correctly. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  doctype  dom Asked in 1 Companies Q1996. In which way are you using dependency injection in Spring ? Annotation , Config or Class ? Spring
Ans. Possible Answer - We are using config file. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Dependency injection Asked in 1 Companies Q1997. How does encoding affect using Reader / writer classes or Stream classes in Java ? Core Java
Ans. Which group of bytes represent which character is defined by character encoding. So when reading character by character from a stream of bytes using Reader, specifying character encoding becomes significant as the same group of bytes can represent different character in different character encoding(Eg UTF-8 and UTF-16 etc.) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  File io  File handling  Reader  Writer  Stream Asked in 1 Companies Q1998. How many bytes a character takes with UTF-8 encoding ? Encoding
Ans. it takes 1 to 4 bytes Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  utf  unicode  utf-8 Asked in 1 Companies Q1999. How executor service is better than using primitive Threading mechanism using Thread class or runnable Interface ? Core Java
This question was recently asked at 'Symantec'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  multithreading  threads Asked in 1 Companies Q2000. Suppose we make an api call using multithreading, How would you design to make sure that we have received response for all threads before exiting the main thread ? Design
Ans. We can use HashMap for tracking response status for all threads. We can wait every n second by using Thread.sleep and exit the main thread only once we have received response for all threads. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  threads  multithreading Asked in 1 Companies basic   frequent Q2001. What is the difference between TreeSet and TreeMap ? Core Java
Ans. TreeSet contains only values as elements whereas TreeMap contains Key value pairs. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  reeMap  TreeSet  Collections  sorted collection Asked in 1 Companies   rare Q2002. Difference between static and dynamic binding ? Design
Ans. Static binding happens at the compile time whereas dynamic binding happens at runtime. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  static vs dynamic binding  overriding Asked in 1 Companies basic   frequent Q2003. Have you used Java 8 Lambda expressions ? Core Java
This question was recently asked at 'One Click Retail'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java 8  lambda expressions Asked in 1 Companies   frequent This question was recently asked at 'Western Governors University (WGU)'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2005. What is the thing that would turn you off for a company ? General
This question was recently asked at 'Canopy Tax'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2006. How do you prefer to resolve team disputes , just talking or in written ? general
This question was recently asked at 'Canopy Tax'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Library Management System has always been the favorite question. This questions is asked irrespective of level. Q2007. Write data models and service end points for Library Management System ? Architecture
Ans. Following could be the business sub domains or database schemas in such a system
1. Users / Members
2. Sourcing
3. Inventory Management
4. Operations
Following services end points could be there
1. Users - addNewUser ( put ), removeUser ( post )
2. Sourcing - addSupplier ( put ), removeSupplier ( post )
3. Inventory Management - getInventory ( get )
4. Operations - checkIn ( post ), checkout ( post )
There could be following Tables in Database
1. Users / Members - MEMBER, MEMBERSHIP_TYPE
2. Sourcing - SUPPLIER, SUPPLIER_PRODUCT, PRODUCT_REORDER_LEVELS
3. Inventory Management - INVENTORY,PRODUCTS
4. Operations - TRANSACTION Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  database  architecture  design Asked in 1 Companies Q2008. Write SQL to get all members and the count of books they have checked out , even the ones that haven't checked out anything. SQL
This question was recently asked at 'Canopy Tax'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  database  sql Asked in 1 Companies Q2009. What is MVC in GUI components ? Design
Ans. The Model/View/Controller pattern, a strategy for dividing responsibility in a GUI component.
The model is the data for the component.
The view is the visual presentation of the component on the screen.
The controller is responsible for reacting to events by changing the model.
According to the MVC pattern, these responsibilities should be handled by different objects. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  mvc  design pattern Asked in 1 Companies   rare Q2010. Please explain with example different types of testing ? Testing
Ans. Unit Testing ( Junits )
Integration Testing ( Testing overall flow by calling the entry method or by calling the service end point )
Manual Testing ( End to End Manual User Testing, they way eventually it will be used by end users )
Automation Testing ( Machine replication of end to end testing ) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   basic   frequent