Interview Questions and Answers - Order By Newest Q2561. How to manage transactions in distributed applications?
This question was recently asked at 'OLMeRO Italy'.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 Q2562. What is the different between collection and Stream Api ? Core Java
Ans. data under collection are actually stored in memory so that they can be retrieved when needed whereas data in streams are not stored and hence we need to construct it again when needed. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  collection classes  stream api  collection vs stream Asked in 1 Companies Q2563. What are the benefits of Java over other Programming Languages ? Core Java
Ans. 1. JVM that makes it platform independent and facilitates portability.
2. Garbage Collector that protects from Memory Leaks.
3. Only usage of references and not pointer arithmetic and hence protects the application from memory issues like dangling pointers, memory leaks etc.
4. Support for OOPs that makes application development and maintenance easy.
5. Facilitates library development through use of interface / abstract classes.
6. Facilitates creation of scalable applications.
7. Huge repository of libraries and pool of people with java skill. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  benefits of java  advantages of java basic   frequent Q2564. Design pattern used in struts. Struts
Ans. Struts controller uses the Command design pattern and the action classes use the Adapter design pattern. The process() method of the RequestProcessor uses the Template method design pattern. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Struts Design patterns Asked in 1 Companies Q2565. What will you do if your build fails and you need to fix it in an hour ? Build Management
This question was recently asked at 'Workday'.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 Q2566. How dependency injection in angular helps with loose coupling in angular ? Angular
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  Dependency injection Q2567. what is strict mode in javascript ? How is it used ? Javascript
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   Q2568. What is the main difference between unique key and primary key ? Database
Ans. Primary key will not accept NULL values whereas Unique key can accept one NULL value.
A table can have only primary key whereas there can be multiple unique key on a table.
A Clustered index automatically created when a primary key is defined whereas Unique key generates the non-clustered index. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Unique Key  Primary Key Asked in 1 Companies Q2569. Difference between ViewChild and ContentChild. Angular
Ans. Any directive, component, and element which is part of component template is accessed as ViewChild. Whereas, any element or component which is projected inside is accessed as ContentChild. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ViewChild  ContentChild   ViewChild vs ContentChild Q2570. Which change detection strategy do you use in your application and Why ? Angular
Ans. We use ChangeDetectionStrategy.Push
As the application grows bigger , The default change detection strategy could become a performance overhead and hence should be avoided. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ChangeDetectionStrategy Asked in 1 Companies Q2571. What are the different conditions that triggers view update in case of push ChangeDetectionStrategy ? Angular
Ans. 1. Any change in Input
2. Any even originating from the component or it's child components
3. Explicit trigger Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ChangeDetectionStrategy Q2572. What is interpolation in Angular ? Angular
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  interpolation Q2573. Can we use interpolation with all data types ?
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  interpolation Q2574. What are the limitations with using interpolation ? Why do we need property binding ?
Ans. Interpolation can only work with String types and hence we need property binding while working with other data types. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interpolation  property binding Q2575. Have you ever had any problem with asynchronous programming due to race condition ? Angular
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  race condition Q2576. Have you ever used sessionStorage ? What is the better way to store session information - sessionStorage or session cookie ? Session Management
Ans. Session Cookie, because session storage can be accessed from XSS (Cross site Scripting) attacks but cookies (if set with "HttpOnly" and "Secure" flags) are more safer against these attacks. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  SessionStorage  session cookie  session management  javascript Q2577. What are the benefits of using UI framework like Angular , View js etc instead of plain vanilla js and html ? Javascript
Ans. These frameworks facilitates easier product development and enhancement and maintainability by having separation of concerns ( using oops ) and helps in development of reusable libraries / components. So in nutshell , they make development and maintenance of large scale application easier. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Javascript Frameworks  Angular  View jsAns. Console - GUI Interface
gsutil - Command Line Interface
Rest API - Using JSON or XML API Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  GCP Storage 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  Google Compute Engine 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  Google Compute Engine  Google App Engine 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  GCP Pricing ModelAns. MS active directory concept and in GCP its Cloud Identity Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Google Compute Engine API  GCP Authentication 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   Q2584. Could you walk me through and draw out a sketch of a recent architecture project you completed ? architecture
This question was recently asked at 'Microsoft'.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 Asked in 1 Companies Q2585. Can you share some of the best practices while designing authentication and authorization system ? Authentication
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  best practices Q2586. How can print the whole object state in the console in javascript ? Javascript
Ans. We can JSON.stringify Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  javascript  angular Q2587. How to you resolve merge conflicts in GIT ? Git
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   Q2588. What is the difference between closing and completing the observer / listener ? Angular
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  observer   listener Q2589. What is the difference between subscribe and emit ? Angular
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  subscribe vs emit Q2590. What is the difference between Subject and Observable ? Angular
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  subject vs observable