Interview Questions and Answers - Order By Newest Q2461. 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 Q2462. 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 Q2463. 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 Q2464. 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 Q2465. 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 Q2466. 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 Q2467. 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 Q2468. 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 Q2469. 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 Q2470. 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   Q2471. 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 Q2472. 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 Q2473. 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 Q2474. 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 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 Q2476. 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 Q2477. 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. Q2478. 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 Q2479. 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 Q2480. 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 Q2481. Can you name some of the field which you set while configuring a Jenkins Job ? Jenkins
Ans. Project Name , Type , Repository information , JDK, Build Triggers , Release build , Pre Build and Post Build steps. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2482. Can we have a Jenkins job that would build from different project branches in SCM ? Jenkins
Ans. Yes , there is a facility to provide wild cards within repository branches to build. It will pick any branch for build that matches the wild card. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2483. 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   Q2484. 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 Q2485. 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 Q2486. 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 Q2487. 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 Ans. https://www.geeksforgeeks.org/arrays-sort-in-java-with-examples/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  array  sorting Asked in 16 Companies basic   frequent Ans. == compares values === is used in scripting languages for comparing two values as well as there data tpe. like in js,php. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ==  ===  == vs === Asked in 13 Companies basic   frequent Q2490. What is the difference between abstraction and abstract class ? Core Java
Ans. Abstract class is one of the facility for achieving abstraction in Java. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies