Interview Questions and Answers - Order By Rating Q631. What is method hiding in Java ? Core Java
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  method hiding Q632. Can a class extend itself in Java ? Core Java
Ans. No Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  inheritance  object oriented programming (oops)  oops concepts Q633. Why Concurrent Collection Classes are fail-fast in Java ? Core Java
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  concurrent collection classes   fail fast   fail-fast  collections  collection classes expert Q634. What is context switching wrt Threads in Java? Core Java
Ans. Context Switching is the process of storing and restoring of CPU state so that Thread execution can be resumed from the same point at a later point of time. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Threads  multithreading  context switching Q635. What are the different ways to avoid multi Threading related problems in Java ? Core Java
Ans. Synchronization,
Concurrent classes,
Volatile keyword,
Implementing concurrent Lock interface,
Immutable classes Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  multithreading  threads  ways to avoid thread related problems  synchronization  volatile  concurrent collections Intermediate Ans. Thread Scheduler is the Operating System service that allocates the CPU time to the available runnable threads. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Thread scheduler  threadsAns. Time Slicing is the process to divide the available CPU time to the available runnable threads. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Time Slicing  threads  thread scheduling   thread scheduler Q638. How does multi threading improve performance ? Core Java
Ans. Every process in it's timeline require different resources. Utilization of resources can be optimized when they are shared among different processes or threads. When one thread is sleeping waiting for a peripheral to complete (e.g. a disk write, or a key press from the keyboard), other threads can continue using processor time and hence would lead to better usage of resources. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  multithreading  threads basic   frequent Q639. Create an event class in Java. Core Java
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  event class Q640. What sets you apart from other developers ?
or
What are the distinguished qualities you have ? General
Ans. https://blog.timesunion.com/careers/the-10-most-important-personality-traits-for-career-success/633/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 32 Companies Q641. Explain Transitive equals contract. Core Java
Ans. The equals contract is said to be transitive if
obj1.equals(obj2); and obj2(.equals(obj3)
then obj1.equals(obj3) also returns true. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Transitive equals contract   rare Q642. What is a reflexive equals contract ? Core Java
Ans. An equal contract is said to be reflexive is equality between 2 objects always returns to be true.
For example -
Object o1;
Object o2;
o1.equals(o2); // returns true
o2.equals(o1); //returns true Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  reflexive equals contract 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  aws  amazon web service  Azure Q644. If a high CPU Usage happens everyday at a particular time, How would you go about fixing it ? Server
Ans. We can provision more instances for that particular time slot. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws  amazon web service   server  production support Asked in 1 Companies Q645. Have you ever used java.util.Objects class ? Core Java
Ans. Yes, We are using requireNonNull method for validating if the object is null. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  objects  util methods   rare This question was recently asked at 'Bank Of America'.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 Q647. How did you use authentication in node.js ? Node,js
Ans. Using JWT Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  authentication  node.js Asked in 2 Companies Q648. Have you ever worked with encrypted Tokens and How ? 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   Q649. Between Encrypted Password authentication and IP Authentication , which one would you prefer and why ? Authentication
Ans. IP authentication is very restrictive, if IP changes for some reason then getting the new IP white listed on the server firewall could run your day pretty long. I would prefer encrypted password authentication cause it is not affected by IP changes and not limited to a white listed IP, I could use any different machine and get through authentication without any hassle. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ip authentication   password authentication   frequent Ans. OAuth is an open-standard authorization protocol or framework that describes how unrelated servers and services can safely allow authenticated access to their assets without actually sharing the initial, related, single logon credential. Like using Google or Facebook to login to something. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 17 Companies Q651. How cookies helps by storing encrypted passwords ? Authentication
Ans. It helps user autofill password on the form where its presented for authentication Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  cookie  authentication Q652. Explain the use of Client certificates for authentication ? 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  authentication  client certificates Q653. Can an In Memory Data Management play a significant role for Big Data Analytics? BigData
This question was recently asked at 'Jean Martin'.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 Q654. How many VTables are there for each class ? Core Java
Ans. There is one VTable for each class. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  virtual table method  vtable  runtime polymorphism  object oriented programming (oops)  oops concepts   method overriding intermediate   rare Q655. How is the virtual method table implemented in Java? Core Java
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  virtual method table   method overriding  runtime polymorphism  object oriented programming (oops)  oops concepts expert   rare Q656. What is virtual table with respect to method overriding in Java ? Core Java
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  vtable  virtual method table   method overriding  runtime polymorphism  object oriented programming (oops)  oops concepts Q657. Are final methods faster than regular instance methods ? Core Java
Ans. Yes. As they cannot be overridden , there is no use of virtual table concept which is used for dynamic binding resolution. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  final methods   final keyword expert Q658. What could be the reasons for restricting inheritance using final class ? Core Java
Ans. 1. Enforcing composition over inheritance
2. Restricting overriding of certain methods
3. Final methods are faster than regular instance methods
4. Enforcing Immutability Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  final class   reasons for final class   restricting inheritance  object oriented programming (oops)  oops concepts expert Q659. Does use of Final class enforces composition over Inheritance in Java ? Core Java
Ans. Yes, to a certain extent. But the objective for Final class could be beyond just enforcing composition as certain classes might have been created without inheritance or composition in mind. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  final class   composition  object oriented programming (oops)  oops concepts  inheritance  object oriented programming (oops)  oops concepts  composition  object oriented programming (oops)  oops concepts vs inheritance  object oriented programming (oops)  oops concepts expert Q660. What are the types of authentication used in Web services ? Web Service
Ans. Encrypted User Name / Password
Encrypted Password within Cookie
Encrypted Tokens
IP
Client Certificates
Oauth Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  authentication  security  web service Asked in 12 Companies basic   frequent