Interview Questions and Answers - Order By Newest Q1901. When to use List, Set and Map in Java Core Java
Ans. I. If we want a Collection that does not store duplicate values, then we use a Set based collection.
II. If we want to frequently access elements operations based on an index value then we use a List based collection. E.g. ArrayList
III. If we want to maintain the insertion order of elements in a collection then we use a List based collection.
IV. For fast search operation based on a key, value pair, we use a HashMap based collection.
V. If we want to maintain the elements in a sorted order, then we use a TreeSet based collection. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1902. Why do you want to leave your current job ? General
Ans. The most effective and acceptable reasons for leaving your current job should be positive e.g. moving forward in your life or career Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 21 Companies Q1903. Do you like your work in current project ?
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 Q1904. Which spring boot version are you working with ?
Spring Boot
This question was recently asked at 'Western Governors University (WGU) '.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 basic   frequent Q1905. How is the culture at your current company ? general
This question was recently asked at 'Canopy Tax'.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 Q1906. What value you would like to see in an employee if you own a company ? General
Ans. The intent of this question is to see what values as a employee you have. So answer this cautiously as they will try to judge you on the basis of this answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies   rare Ans. The garbage collection is a facility wherein a program runs on the Java Virtual Machine which gets rid of objects, which are not being used by a Java application anymore. It is a form of automatic memory management and recollection. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 4 Companies Q1908. Find Intersection/union between two arrays. Core Java
This question was recently asked at 'Bristlecone,Amazon Lab126,Amazon,Microsoft,Facebook,NCR,Google'.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  arrays  code  coding Asked in 7 Companies   frequent Q1909. Find unique values between two arrays using single for loop ? Core Java
This question was recently asked at 'Net connect'.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  for loop  control statements  loop statement Asked in 1 Companies Q1910. Make "I Know Java" as "I Java Know" without using any inbuilt functions. Core Java
This question was recently asked at 'iOPEX 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 Q1911. What is the biggest learning in any of your previous jobs ?
This question was recently asked at 'iOPEX 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 Q1912. What is ViewResolver in Spring MVC ? Spring
Ans. View resolver is used to get view name from Controller and resolve the next view page Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q1913. Given the Phone keys mapping between numbers and characters as following
1 - a,b,c
2 - d,e,f
and so on, Write a Program that takes the integer as input and then print all possible combinations of characters matching those integers.
For example - 12 should return
ad,ae,af,bd,be,bf,cd,ce,cf Design
This question was recently asked at 'FlatIron Health'.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 Q1914. Given a linked list with 0 to n node references , Flaten the Linked list Algorithm
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 Q1915. Can you explain the recent bug in your project and how you fixed it. General
This question was recently asked at 'Flatiron Health'.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 Q1916. What is the structure of your team ?
This question was recently asked at 'FlatIron,Western Governors University (WGU)'.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 Q1917. Math.round method rounds the decimal to an integer by stripping off the decimal places. How can we use the same method to keep only 2 decimal places
For example -
Math.round(12.3456) will return 12. What should we do to get 12.34 without using any other class or method. Core Java
Ans. We can multiply the value by 100 and then use Math.round on that and then divide the result by 100
For example -
(Math.round(12.3456 * 100)) / 100 Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Math.round  double Q1918. Given a comma separated string that signifies the current position in 4 * 4 tic tac toes game, write a program that gives the result of the game - If anyone win and if yes then who and if the game is still open.
For example - x,0,x,x,x,0,0,0,0,x,0,x means that 00 index has x, 01 has 0 and so on with x(3,3) has last element x 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 Q1919. If a stack is implemented using an array, which end (head or tail) should represent the top ? Data Structure
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   Q1920. If a stack is implemented using linkedlist, which end (head or tail) should represent the top ? Data Structure
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   Q1921. Describe how a queue is usually created using sequential allocation. Data Structure
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   Q1922. What is the "multiplicative congruence" method for determining where an element belongs in a hash table ? Data Structure
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   Q1923. Which spring boot version are you working with ? Spring Boot
This question was recently asked at 'Western Governors University (WGU)'.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 Q1924. Which development methodology do you use ? General
Ans. http://www.itinfo.am/eng/software-development-methodologies/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 2 Companies Q1925. Are you involved in architecture and design ? General
This question was recently asked at 'Western Governors University (WGU)'.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. We are using it for computation (EC2) , Storage (S3) and Database (RDS) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  AWS Lambda Asked in 1 Companies Q1927. Are you involved in getting business requirements ? General
This question was recently asked at 'Western Governors University (WGU)'.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 Q1928. What methodology and technology stack do you use ? General
Ans. [Open Ended Answer]
Possible Answer - We are using Agile. We have daily standups, Bi weekly Backlog Grooming , Planning and Retrospective, We have a 2 week sprint and We use Jira for Scrum Management. We are using Java 8, Spring Boot, JSF , Apache Kafka , Soap as well as Rest Services. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 9 Companies Q1929. Why you chose programming as your career ? 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 Q1930. Explain your experience working on UI ? 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