Interview Questions and Answers - Order By Rating Q241. what is the difference between application.properties and application.yml ?
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 Q242. What are the different versions used in your project? example spring version ,java etc
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 Q243. What are the different types of inheritance ? Core Java
Ans. Single Level
Multi Level
Hierarchical
Multiple
Hybrid Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q244. what do mean by J2EE and 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 Q245. What are the mutable and immutable data types ?
This question was recently asked at 'Technicolor,Velotio'.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 2 Companies Q246. Why in Java does it require "static" in the main function? Core Java
Ans. Because there needs to be a starting point till when there is no object created in memory and hence it needs to be run in static scope Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q247. How do you analyze memory leaks in your java application ?
Ans. https://dzone.com/articles/what-to-do-about-java-memory-leaks-tools-fixes-and Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q248. Is it possible to have a static class ? Core Java
Ans. We can have a static inner class but not static outer class. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q249. Difference between List and LinkedList ? Core Java
Ans. A List is an child interface of collection interface in java where as Linked list is and implementation class of List interface which has doubly linked as a underlying data structure Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  linkedlist  list vs linkedlist Asked in 1 Companies Q250. What are the technologies you would like to work on ? General
Ans. Java 7 , SQL Server Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 2 Companies Q251. How is Docker different than standard virtualization ? Docker
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   Q252. Give an example of a time when you recommended code changes in a code review that simplified the code ? Code Review
Ans. If there is a situation to remove duplicates values from an arrayList. Developer implemented using legacy for-loop where I suggested to use Linked hash set to remove duplicates from the list. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Clean code Asked in 3 Companies Q253. What are the best strategies to improve code readability ? General
Ans. https://dzone.com/articles/10-tips-how-to-improve-the-readability-of-your-sof Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 2 Companies Q254. Why packages are used 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   Q255. What is meant by platform ? Which platform does java provides ? Core Java
Ans. platform is the hardware or software environment in which a program runs. There are two types of platforms software-based and hardware-based. Java provides software-based platform. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q256. Can we use combination of two authentication mechanism in an application ? Narrate with an example. Authentication
Ans. Yes We can use. Negotiate is a very good example with NTLM fallback mechanism over Kerberose. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q257. What are different ways a user can be authenticated other than username / password ? Authentication
Ans. IP Authentication
IP Range Authentication
Certificates
Authentication Cards Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q258. Have you ever worked on any project dealing with authentication and authorization ? Authentication
Ans. Yes, I have worked on single sign on project. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q259. Write an algorithm for square root of a given number. Core Java
This question was recently asked at 'IBM 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 Q260. Which is faster, LinkedList or ArrayList? Core Java
Ans. ArrayList is fast for random access, but is slow on deletion and insertion.
LinkedList is slow for random access, but is fast on deletion and insertion. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q261. JWT internal working
This question was recently asked at 'HCL Technologies'.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 Q262. Difference between function overloading and method overloading? Core Java
This question was recently asked at 'BroadBridge'.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 Q263. Which interface is used for hashset implementation ? Core Java
Ans. HashSet implements Set interface. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q264. why string pool concept for only String but not for StringBuffer ? Core Java
This question was recently asked at 'oodles technology'.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 Q265. why string pool concept for only String but not for StringBuffer ? Core Java
Ans. As String is immutable so by maintaining pool area we can refer the object to same area if they are with same content. But when it comes to string buffer or builder then due to mutable property if we do so then all the objects referring to that area will from now has new content.. So as to avoid this pool is present only in string. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q266. Explain your project details. General
This question was recently asked at 'snipe tech'.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 'Compro Technologies'.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 Q268. What is runtime Polymorphism ? Design
This question was recently asked at 'OFS Technologies'.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 Q269. Can you give me a use case where you utilized serialization in your project code? Core Java
Ans. we use serialization when we send response to client in JSON format.(the process of converting model object into json is nothing but serialization Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  serialization Asked in 1 Companies This question was recently asked at 'Jefferies'.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