Interview Questions and Answers - Order By Rating Q871. How to calculate string length without using inbuilt function Core Java
This question was recently asked at 'Softenger'.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  code  coding  design  string length Asked in 1 Companies basic Q872. Can we use Prototype Bean scope with Autowiring ? Spring
Ans. Default Bean scope in auto wiring is Singleton but Yes, that can be changed by specifying the Bean scope explicitly. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  spring boot   spring mvc  autowiring  bean scope   prototype bean scope intermediate Q873. What is the difference between Maven and Jenkins ? Tools
Ans. Maven is a build tool whereas Jenkins is continuous integration system.
Maven deals with application compilation, build and packaging whereas Jenkins tracks SCM for triggering builds and packages, triggering parent project builds upon dependencies, initiating builds and performing alerts. So Jenkins is kind of a wrapper around SCM and Build Tool for continuous integration and deployment. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  maven  jenkins  build tools Q874. 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 Q875. What version of Maven are you working with ? Are you aware of changes in the most recent version of Maven ? Maven
Ans. 3.3.9 Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q876. What is the following code doing ?
private static final String[] COLORS = new String[] { "Red", "Green", "Blue" }; Core Java
Ans. We are initializing a static and constant string array named as COLORS using Strings "Red","Green" and "Blue". Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q877. 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 Q878. 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 Library Management System has always been the favorite question. This questions is asked irrespective of level. Q879. 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 Q880. 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 Q881. What is the Big O notation for Fibonacci series - both iterative as well as recursive ? Algorithm
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  Big o Notation   Asked in 1 Companies expert Q882. 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 Q883. What value you would like to see in an employee if you own a company ? General
Ans. The intent of this question is to see what values as a employee you have. So answer this cautiously as they will try to judge you on the basis of this answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies   rare Q884. How is the culture at your current 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 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 Q886. Do you have any problems with your team that you plan on changing ? General
This question was recently asked at 'Expedia'.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 Q887. 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 Q888. Write a Program to print a pattern ? Core Java
This question was recently asked at 'Real come info'.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 basic Q889. 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 Q890. Which of the following is insertion heavy - HashSet or TreeSet ? Core Java
Ans. TreeSet as it needs elements in a particular order Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q891. 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 Q892. 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 Q893. 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 Q894. 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 Q895. 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 Q896. 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 Q897. 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 Q898. 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 Q899. 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 Q900. 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