Interview Questions and Answers - Order By Newest Q2291. Design a class that find all files with SSN. Core Java
This question was recently asked at 'The Home Depot'.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 Q2292. Describe inheritance and polymorphism and their importance for OOP. Core Java
This question was recently asked at 'The Home Depot'.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 Q2293. What is the difference between instantiation and initialization ? Core Java
Ans. Instantiation is the process of reserving memory for the object
For ex -
List list = new ArrayList();
Initialization is the process of setting the default value for the object or default object construction.
List list = new ArrayList(set); Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2294. Why do we need to close the Scanner ? Core Java
Ans. For releasing input stream reference (System.in), you should close scanner. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  scanner  input output  io This question was recently asked at 'Spillman Technologies,Motorola Solutions'.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 Q2296. How can we make sure that only one object of a class get's created ? Design
This question was recently asked at 'Spillman 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 Q2297. Explain your experience working on UI ? Have you worked with JSF ?
General
This question was recently asked at 'Spillman 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 Q2298. Have you faced any problem integrating software / services with any of your partners or vendors ? General
This question was recently asked at 'iHart'.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 Q2299. Can we capture the Request body within the interceptor or Filter and perform operations on it ? Spring
Ans. Yes, But with interceptor it will remove the body from the request and then we will have to explicitly add the attributes to the session to forward it to the handler. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interceptor  filter Q2300. Have you ever faced challenged with your current work ?
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 Q2301. Which of the following - arrays or LinkedList allow elements to be accessed using index and how ? Data Structure
Ans. Arrays allows elements to be accessed directly using the index.
As Array elements are stored in continuous memory locations it's very easy to find the memory address of any element using the formula as following
Memory Address of Array start or index 0 + ( Size of array element * Index ) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  arrays  linkedlist Q2302. Can we access elements at a particular index using LinkedList collection class ?
Ans. Yes we can. But as the underlying structure of the collection class is double linked list, it will eventually have to traverse to the element linearlly and hence would result in bad performance. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2303. Can we access elements at a particular index using LinkedList collection class ? Data Structure
Ans. Yes we can. But as the underlying structure of the collection class is double linked list, it will eventually have to traverse to the element linearlly and hence would result in bad performance. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2304. Can you give an example of a Get and Post Request. Web Service
This question was recently asked at 'One Click Retail,Spillman 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 2 Companies Q2305. Can you design a program that can identify if two shapes on x and y plane would intersect ?
This question was recently asked at 'Spillman 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 Q2306. How can we identify if we circle on a xy place would intersect ?
Ans. If the sum of their radius is greater than the shortest distance between them, then they will intersect. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2307. How can we identify if two squares ( given their diagonal coordinates ) would intersect on xy plane ?
Ans. Using the diagonal coordinates we can easily calculate the other 2 coordinates using Pythagoras.
Any 2 rectangles or squares will intersect if any coordinate of one square would lie within the boundary of another one. A point x,y will be inside the square ( x1,y1;x2,y1;x1,y2;x2,y2 ) is x is between x1 and y2 and y is between y1 and y2. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2308. Explain CAP Theorem.
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   Asked in 1 Companies Q2309. Have you heard of Rest method Patch ?
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   Asked in 1 Companies Q2310. Do you think we should have security Tokens in Url ? Design
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   Asked in 1 Companies Q2311. What information should be sent in url vs sent within the body in case of Post request ? Design
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   Asked in 1 Companies Q2312. What are the Messaging systems / technologies you have worked with ?
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   Asked in 1 Companies Q2313. What are the different delivery policies in Apache Kafka ? Apache Kafka
Ans. Exactly once , At least once , At max once Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies basic   frequent Q2314. What is your role in current project ? General
Ans. Possible Answer - Java Developer Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 5 Companies Q2315. Have you ever encoded the response before sending it back ?
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   Asked in 1 Companies Q2316. Have you ever encoded the response before sending it back from the service? If Yes , Which encoding was used ?
Ans. In two different situations I used UTF-8 and Base 64 encodings. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2317. Have you ever worked with single sign on ?
This question was recently asked at 'Accela'.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 Q2318. Can you explain JSON specification ? JSON
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   Asked in 1 Companies Q2319. Have you ever built an automation suite to test a cron job or command line application ? Testing
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  automation testing Q2320. How can we test invoking a command line application using Java code ?
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