Interview Questions and Answers - Order By Newest Q3181. What is the use of toString method ? Core Java
This question was recently asked at 'Jibe Technology Services'.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 Q3182. How multiple catch block works ? Core Java
This question was recently asked at 'Capgemini'.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 Q3183. How does Garbage Collector work? What are the realizations of Garbage Collector. Core Java
This question was recently asked at 'ExpertSoft'.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 Q3184. How to build applications and integrate with jenkins? Jenkins
This question was recently asked at 'Capgemini India'.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 Q3185. What is the O notation for the ArrayList and List? And which one would you choose to insert item in the middle? Data Structure
This question was recently asked at 'ExpertSoft'.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 Ans. Using Collections.sort() Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q3187. Differentiate osi and tcp/ip models and describe them Networking
This question was recently asked at 'Informatica'.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 'Informatica'.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 Q3189. What is size of structure in c ? C++
This question was recently asked at 'Informatica'.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 Q3190. What are reference variables in c C++
This question was recently asked at 'Informatica'.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 Q3191. Explain memory allocation and deallocation. C++
This question was recently asked at 'Informatica'.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 Q3192. How many threads can access a concurrent hashmap when the hashcode is overridden and always returns a zero. Data Structure
Ans. The impact of both cases (fixed hashcode or random hashcode for keys) will have same result and that is "unexpected behavior". The very basic need of hashcode in HashMap is to identify the bucket location where to put the key-value pair, and from where it has to be retrieved.
If the hashcode of key object changes every time, the exact location of key-value pair will be calculated different, every time. This way, one object stored in HashMap will be lost forever and there will be very minimum possibility to get it back from map.
For this same reason, key are suggested to be immutable, so that they return a unique and same hashcode each time requested on same key object. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q3193. Difference between Tomcat and IBM Websphere. Server
This question was recently asked at 'MagicBricks Noida'.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 Q3194. All the meaningful words that can be formed from a phone keypad
This question was recently asked at 'Oracle'.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 Q3195. What are the disadvantages of Maven ? Maven
Ans. Maven requires installation in the working system and the Maven plug-in for the IDE.
If the Maven code for an existing dependency is unavailable, you cannot add that dependency using Maven itself.
Some sources claim that Maven is slow. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q3196. Write a program to find the intersection of four rectangles provided.
This question was recently asked at 'Samsung India'.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 Q3197. How to find if any employees address is null or not during Junit testing JUnit
Ans. By using assertNotNull(employee_address) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q3198. How to find the duplicate elements in the list given
Ans. use collections.frequency() method to find out the frequency, if it is greater than 1 then it is a duplicate element. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q3199. Find the duplicate numbers and missing numbers in a given array of n numbers
This question was recently asked at 'Samsung India'.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 Q3200. FInd the longest palindrome in a given string
This question was recently asked at 'Samsung India'.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 Q3201. What are the scenarios you consider in code reviews General
Ans. https://www.evoketechnologies.com/blog/code-review-checklist-perform-effective-code-reviews/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  clean code Asked in 1 Companies Q3202. Why should we go for custom defined exceptions even if we have many exceptions provided already using throw keyword Core Java
Ans. It gives us the liberty to throw the specific exceptions which are required and also we can control the handling of exceptions Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Ans. Java Comparator compares two Java objects in a “compare(Object 01, Object 02)” format. Using configurable methods, Java Comparator can compare objects to return an integer based on a positive, equal or negative comparison Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q3204. Explain life cycle of Spring Application ? Spring
Ans. Instantiation by using:
InitializingBean callback interface.
Custom init() method from the bean configuration file.
Aware interfaces for distinct actions.
PostConstruct and PreDestroy annotations.
Destruction.
DisposableBean callback interface Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q3205. How to make a collection thread safe? Core Java
This question was recently asked at 'Amodcs'.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 Q3206. How to delete a node from linked list if u do not have head and only have a pointer to the element which has to be removed ? Data Structure
This question was recently asked at 'LifCare'.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 Q3207. What is string pool and what is the use of intern() function ? Core Java
Ans. The Java String class intern() method returns the interned string. It returns the canonical representation of string. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q3208. What is Defer Parsing JavaScript ? 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   Q3209. How do you test object construction or constructors using junit ? Junit
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  Ans. Throwable in java is a class that is the superclass of all exceptions and errors which may occurs in java program.It extends obcect class. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  exception handling   throwable Asked in 1 Companies basic