Interview Questions and Answers - Order By Newest        Q1511. 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   Q1512. 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   Q1513. 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   Q1514. 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   Q1515. 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   Q1516. 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   Q1517. 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   Q1518. 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   Q1519. 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  Q1520. What is the difference between round and scale method of BigDecimal ?  Core Java 
Ans. Round method would round it to integer places irrespective of if it's decimal places or not whereas scale would only round the decimal places.   Help us improve. Please let us know the company, where you were asked this question   :       Like            Discuss            Correct / Improve        BigDecimal  round  scale  Q1521. What was the most complex problem you faced in your career and how you fixed it ?  General 
  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          Q1522. 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   Q1523. 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   Q1524. 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   Q1526. 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   Q1527. Do you have any problems with your team that you plan on changing ?  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   Q1528. 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   Q1529. 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   Q1530. 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   Q1531. 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   Q1532. 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   Q1533. How long will it take for you to join Canopy ?  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   Q1534. What is the Big O notation for Fibonacci series - both iterative as well as recursive ?  Algorithm 
  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        Big o Notation        Asked in 1 Companies        expert   Q1535. Write code to see if a Linked List has cycle in it ? 
 
or 
 
Write code using Floyd Algorithm to see if a linked list has cycle in it ? What is it's comlexity ?  Algorithm 
Ans. public class LinkedList { 
 
   Node start = null; 
   Node head = null; 
 
   class Node { 
      Integer body; 
      Node nextNode; 
 
      Node(Integer value) { 
         body = value; 
      } 
   } 
 
   public static void main(String[] args) { 
      LinkedList ll = new LinkedList(); 
 
      ll.addNodeToEnd(5); 
      ll.addNodeToEnd(10); 
      ll.addNodeToEnd(15); 
 
      ll.traverse(); 
 
      if(checkIfLoop(l1)){ 
         System.out.println("There is a Loop"); 
      } else { 
         System.out.println("No Loop"); 
      } 
   } 
 
   private boolean checkifLoop(Test l1) { 
      Node slow = start; 
      Node fast = start; 
      Node faster = start; 
          
      while(slow != null ) { 
         fast = slow.nextNode; 
         faster = fast.nextNode; 
         if(slow == fast || slow == faster) { 
            return true; 
         } 
         slow = slow.nextNode; 
      } 
          
      return false; 
   } 
 
} 
 
Complexity of this algorithm is O(n)   Help us improve. Please let us know the company, where you were asked this question   :       Like            Discuss            Correct / Improve        LinkedList  Cyclic LinkedList  Q1536. What is the access time for ArrayList and LinkedList ?  Data Structure 
Ans. O(1) for ArrayList  
O(n) for LinkedList   Help us improve. Please let us know the company, where you were asked this question   :       Like            Discuss            Correct / Improve              Asked in 2 Companies   Q1537. What is the runtime complexity of appending strings to string object and Why ?  Algorithm 
Ans. O(n^2) because each time a string is appended a new String is created and it runs through all the letters to copy them over.   Help us improve. Please let us know the company, where you were asked this question   :       Like            Discuss            Correct / Improve          Q1538. Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer.  Algorithm 
  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          Q1539. Write a method that returns maximum depth of a tree ?  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        tree  data structure  maximum depth of tree      Asked in 1 Companies   Q1540. Given a sorted array, write an algorithm to create a binary tree.  Algorithm 
  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