12 June 2019 1 Interview –Fullstack In Earlier Days, A person who sacrificed his sleep, forgot his family, forgot his food, forgot laughter were called “SADHU” But now they are called… -Software Engineer
12 June 2019 2 Agenda •Introduction - Tell Me about yourself - What is project - Domain choice of Project? - Domain v/s Platform? - Project v/s Product - learning’s of Project - Product Company & Service Company • SDLC - SDLC - Scrum Process - Planning Poker - Version Management - architecture Problem Solving - Aptitude, Logical and Reasoning -Top Most important Programs
12 June 2019 3 Agenda • Core Java • Restful webservice • Hibernate • Spring & Spring boot • HTML5, Bootstrap, javasqscript, Angular • Data base • Manager Round • HR Round • Snipe Assassments
12 June 2019 4 INTRODUCTION - session 1
12 June 2019 5 Tell Me about yourself The future depends on what we do in the present - Mahatma Gandhi Born and brought up in Patna, Bihar, I studied in a convent school and it was around my ninth grade where I developed a keen interest in Internet and Technology. Following my interest, I pursued my Bachelors in Computer Application from men’s College, Patna. As part of my curriculum, I particularly found the subjects of Computer Networks and Design of Algorithms highly intriguing, as these subjects created in me a passion to study the computer related courses in much more detail. Alongside, I also started preparing for my Master of Computer Application course. Besides my curriculum, I participated in various events pertaining to art and culture held in my college. Talking about my profession, now I am qualified computer programmer where I work on various programming languages such as C, Java, PHP, JavaScript, C++, Python, Shell, Ruby, Objective-C and C#. Besides my work and academic, I am extremely passionate about playing Guitar, which is a great stress- buster for me. I am very much greatful to my esteem college, faculty and supported my current company which developed myself to effective quality professional. That's all about myself, my quote is "Life is all about grabbing the opportunity". thank you so much for giving me the opportunity to introduce me.
12 June 2019 6 Introduction • What is Project? •A project is a temporary effort to create a unique product or service. Projects usually include constraints and risks regarding cost, schedule or performance outcome.. The future depends on what we do in the present - Mahatma Gandhi
12 June 2019 7 Project Overview • Domain choice of the project ? The difference between a successful person and others is not a lack of strength, not a lack of knowledge, but rather a lack of will.-Vince Lambardi
12 June 2019 8 Introduction • Domain v/s Platform ? Domain Platform It is a field study that defines a set of common requirement Terminology and functionality for any software program constructed to solve a problem in the area of computer programming. EX: PLM, CRM, RETAIL A platform is a “Blue print for the evolution of popular software or specification.” It depends a standard around which a system can be developed. EX: Java platform .Net platform People rarely succeed unless they have fun in what they are doing.-Dale Carnegie
12 June 2019 9 Introduction • Project v/s Product ? Do what you can, with what you have, where you are. -Theodore Roosevelt
12 June 2019 10 Introduction • Project Learning’s ? Anyone who has never made a mistake has never tried anything new. -Albert Einstein
12 June 2019 11 Service & Product Company • People rarely succeed unless they have fun in what they are doing.-Dale Carnegie “Service Based Companies are driven by customer needs. They offer services and solutions as per customer requirements. Features of these type of companies:- 1. High pressure work environment. 2. Completing deadline is most. 3. Person should be multitasking. 4. Should be willing to become a victim of office politics for better appraisal from senior. 5. Less scope of R&D. But would be able to learn new things a lot. Product Based Companies are driven by an idea to help different customers. Here the main focus would be what should i do to make my product better. Features of these type of companies are:- 1. Cool and healthy environment. 2. Better flow of thoughts. Help an individual to think out of the box. 3. Person need not be multitasker. Instead be good at its respective field. 4. Pressure is there but comparative less. 5. More job satisfaction as mind will be less stressful.
12 June 2019 12 SDLC - session 1
12 June 2019 13 SDLC • • Waterfall Model. • V-Shaped Model. • Evolutionary Prototyping Model. • Spiral Method (SDM) • Iterative and Incremental Method. • Agile development.
12 June 2019 14 Agile Methodology-Scrum Process •
12 June 2019 15 Agile Methodology-Scrum Process •
12 June 2019 16 Planning Poker Card • “
12 June 2019 17 Version Management •These are the problems source code management is intended to solve. Effectively it is a database for source code that eases the problems of – Multiple people in many places working on the same code – Retrieving old versions of files – Keeping logs about what changed in a file – Integrating changed code – Generating release builds Version Management also called Version Control or Revision Control, is a means to effectively track and control changes to a collection of related entities. The term "Versioning" is also sometimes used but the difference is that "Versioning" typically refers to when someone manually applies a version number or label to something for easier communication or simplification such as "draft", "beta", or "1.0". In the context of an information solution version control is most often used to track and control changes to source code. It is a very important tool within an overall life cycle management strategy for information solutions.
12 June 2019 18 Version Management •Centralized Version Control A single server holds the code base Clients access the server by means of check- in/check-outs Examples include CVS, Subversion, Visual Source Safe. Advantages: Easier to maintain a single server. Disadvantages: Single point of failure. Distributed Version Control Each client (essentially) holds a complete copy of the code base. Code is shared between clients by push/pulls Example Git Advantages: Many operations cheaper. No single point of failure Disadvantages: A bit more complicated!
12 June 2019 19 Version Management: GIT •o GIT is a Distributed Version Control System. oIt is a content addressable file system, used to track directory trees. oIt handles all the things like merging of source code and maintaining versions. oGIT is optimized for Complex Merges and Fast. oIt follows Trunk Base Development. oIt allows for code collaboration with anyone online. oUsers keep entire code and history on their location machines oUsers can make any changes without internet access Linus uses BitKeeper to manage Linux code o In 2005, BitKeeper suddenly became unavailable. o Linus decided to create a tool with Distributed Source Management System. o Linus Torvalds developed GIT in June 2005.
12 June 2019 20 Terminology • o DIRECTORY : A folder is used for storing multiple files. o REPOSITORY : A collection of all the files and their history organized in folders, branches, tags. o CLONE : Act of copying a repository from a remote server. o BRANCH : It is a pointer to a commit(save the files). o MERGE : Combination of one or more branches into the current branch. o ORIGIN : The default name of the remote repository o MASTER : It is just another branch, but is the default one which gets created. o STAGE FILES : These are the files we have told GIT that are ready to committed. o SNAPSHOT : In general is just the "entity" that GIT uses to store its data. o INTEGRATORS : It can review and bring changes to reference code asynchronously to central repository.
12 June 2019 21 Architecture •o
12 June 2019 22 Data Platform Analytics ARCHITECTURE •o
12 June 2019 23 SOA •o
12 June 2019 24 Architecture v/s architecture patterns v/s Design Patterns •o Architecture Style – Component-based – Monolithic application – Layered – Pipes and filters – Event-driven – Publish-subscribe – Plug-ins – Client-server o Architecture Pattern – Three-tier – Microkernel – Model-View-Controller – Model-View-ViewModel o Design Patterns o GOF Patterns – Creational, Behavioral and Functional Patterns o Important one are Singleton, Factory Method, Command Pattern, Proxy and Decorator o https://springframework.guru/gang-of-four-design-patterns/ o o Database Patterns – DAO Pattern o UI Patterns.. - http://ui-patterns.com/patterns
12 June 2019 25 PROBLEM SOLVING - session 2
12 June 2019 26 APTITUDE •o Quantitative Aptitude o Logical Reasoning o Verbal ohttp://placement.freshersworld.com/ , https://www.indiabix.com/aptitude/questions-and- answers/ o Quantitative Aptitude o Time and Work o Number Systems o Probability, Permutation & Combination o Time and Distance o Percentage & Ratios o Profit & Loss o Stock & Shares o Race & Game of Skill o Logarithm o True Discount o Banker’s Discount o Logical o Series Completion o Puzzle Test o Blood Relations o Direction Test o Coding Decoding o Verbal o Comprehension, Synonyms & Antonyms
12 June 2019 27 Top 50 IMPORTANT PROGRAMS • o 1. Fibonacci series oWrite a simple Java program which will print Fibonacci series e.g. 1 1 2 3 5 8 13 ... . up to a given number. Be prepare for cross questions like using iteration over recursion and how to optimize the solution using caching and memorization. o2. Prime number oWrite a Java program to check if a given number is prime or not. Remember, a prime number is a number which is not divisible by any other number e.g. 3, 5, 7, 11, 13, 17 etc. Be prepared for cross e.g. checking till the square root of a number etc. o3. String Palindrome oYou need to write a simple Java program to check if a given String is palindrome or not. A Palindrome is a String which is equal to the reverse of itself e.g. "Bob" is a palindrome because of the reverse of "Bob" is also "Bob". Though be prepared with both recursive and iterative solution of this problem. The interviewer may ask you to solve without using any library method e.g. indexOf() or subString() so be prepared for that. o 4. Integer Palindrome oThis is generally asked as follow-up or alternative of the previous program. This time you need to check if given Integer is palindrome or not. An integer is called palindrome if its equal to its reverse e.g. 1001 is a palindrome but 1234 is not because the reverse of 1234 is 4321 which is not equal to 1234. You can use divide by 10 to reduce the number and modulus 10 to get the last digit. This trick is used to solve this problem.
12 June 2019 28 Top 50 IMPORTANT PROGRAMS • o 6. Avoiding deadlock in Java oThis is one of the interesting programs from Java Interviews, mostly asked to 2 to 3 years of experienced programmers or higher. Interviewer simply asked you to write code where a resource is accessed by multiple threads. You need to write code in such a way that no deadlock should occur. The trick to solving this problem is acquiring resources in an order and release them in reverse order e.g. first acquire resource R1 and only if you have got R1 go for R2. This way you can avoid deadlock. o7. Factorial oThis is one of the simplest programs you can expect on interviews. It is generally asked to see if you can code or not. Sometimes interviewer may also ask about changing a recursive solution to iterative one or vice-versa. o8. Reverse a String oThis problem is similar to the String Palindrome problem we have discussed above. If you can solve that problem you can solve this as well. You can use indexOf() or substring() to reverse a String or alternatively, convert the problem to reverse an array by operating on character array instead of String. o 9. Remove duplicates from array oWrite a program to remove duplicates from an array in Java without using the Java Collection API. The array can be an array of String, Integer or Character, your solution should be independent of the type of array.
12 June 2019 29 Top 50 IMPORTANT PROGRAMS • o 0. Printing patterns o11. Print repeated characters of String? o12. GCD of two numbers o13. Square root of number oYou need to write a program to calculate the square root of a number without using the Math.sqrt() function of JDK. You need to write your logic and method to calculate the square root. You can though use popular algorithm e.g. Newton's method. o14. Reverse array in place o15. Reverse words of sentence o16. Leap year o17. Binary search o18. String Anagram oWrite a program to check if two given String is Anagram of each other. Your function should return true if two Strings are Anagram, false otherwise. A string is said to be an anagram if it contains same characters and same length but in different order e.g. army and Mary are anagrams. You can ignore cases for this problem but you should clarify that from your interview. o.
12 June 2019 30 Top 50 IMPORTANT PROGRAMS • o 19. Design a Vending Machine oThis one of the popular OOAD (object oriented analysis and design) question from Java Interviews. You will be given 3 hours to design and code a vending machine satisfying some of the business requirements. You also need to write unit tests to prove your code satisfy those requirements. You can see this article for more object oriented analysis questions. o20. Reverse a number o21. The first non-repeated character of String o22. Finding Middle element of linked list in one pass o23. Pre-order traversal o24. Pre-order traversal without recursion o25. In order traversal o26. In order traversal without recursion o27. Post-order traversal o28. Post order traversal without recursion o29. Print all leaves of binary tree
12 June 2019 31 Top 50 IMPORTANT PROGRAMS • 30. Sort array using quicksort You need to write a Java program to sort an array of integers using quick sort algorithm. You cannot use any library method e.g. JDK or a third party library, which means, you need to first implement the quicksort algorithm and then sort the array. 31. Insertion sort Write a program to implement the insertion sort algorithm in Java. The program should take an unsorted array and sort it using insertion sort algorithm Also explain the best case and worst case time and space complexity of Insertion sort algorithm. 32. Bubble sort Write a program to implement the bubble sort algorithm in Java. You can use basic operators and functions but sorting functions from Java API is not allowed. 33. Transpose a matrix 34. Print all permutations of String Write a Java program to print all permutations of a given String. For example, if given String is "GOD" then your program should print all 6 permutations of this string e.g. "GOD", "OGD", "DOG", "GDO", "ODG", and "DGO".
12 June 2019 32 Top 50 IMPORTANT PROGRAMS • o35. Reverse a String in place o36. Adding two matrices in Java o37. Matrix multiplication o38. Removal all white space from String o39. Reverse a linked list oWrite a program to reverse a singly linked list in Java. You can use iteration and recursion to solve this problem but you should reverse linked list in place. o40. Find the length of linked list oJust write a program in Java to find the length of a singly linked list in one pass i.e. in just one iteration of singly linked list. o41. Check if linked list has loop oWrite a program to check if given linked list has a loop or not. Sometimes a linked list get corrupt and two nodes point to the same node, which forms the loop or cycle in the linked list. o42. Find the start of loop in linked list
12 June 2019 33 Top 50 IMPORTANT PROGRAMS • o43. Find middle element of linked list o44. Find the 3rd element from the tail linked list oYou need to write a program to find the 3rd element from the tail of a singly linked list. You need to solve this problem without iterating twice o 45. Sort a linked list oYou need to given an unsorted linked list and you need to write a program in Java to sort them in ascending order of the values in each node. o46. Iterative Quicksort oYou need to write a Java program to implement quicksort sorting algorithm without recursion. You can use essential JDK classes and programming constructs, but recursion is not allowed. o46. Bucket sort oThis program is increasingly getting popular on Java interview because it sorts a given array in linear time. Though there are a lot of prerequisite e.g. you must know the maximum value present in the array, it is a very interesting problem from interview point of view. You need to write a program to implement bucket sort algorithm in Java. If you are not familiar with Bucket sort or any other linear sorting algorithm,
12 June 2019 34 Top 50 IMPORTANT PROGRAMS • o48. Check if two string rotation of each other oWrite a program which accepts two given String and checks if they are the rotation of each. If they then return true otherwise return false. A String is said to be a rotation of other string if they contain same characters and the sequence is rotated across any character e.g "dabc" is a rotation of "abcd" but "dbac" is not. If you want to practice more string based questions, o49. LRU cache in Java oWrite a program to implement an LRU cache in Java. An LRU cache means Least Recently Used Cache which removes the least recently used element if the cache is full. You can use LinkedHashMap to implement LRU cache in Java. o50. Merge sort oImplement the merge sort algorithm in Java. You can write a recursive or iterative solution, whichever you like. You also need to explain the time and space complexity for the best, worst, and average case.
12 June 2019 35 CORE JAVA •o - OOPs Concepts(Data Abstraction, Encapsulation, Inheritance, Polymorphism) - String handling - Collection framework. - Exception handling. - Multithreading - Generics
12 June 2019 36 CORE JAVA, SPRING, SPRING BOOT , HIBERNATE - session 2
12 June 2019 37 • OOPs Concepts In Java ? 1. What is Data Abstraction, Encapsulation, Inheritance, Polymorphism? 2. What is the diamond problem in inheritance ? 3. Why Java does not support multiple inheritance ? 4. What is Static Binding and Dynamic Binding? 5. What is the meaning of “IS-A” and “HAS-A” relationship? 6. What is the difference between Association and Dependency? 7. Write a program in Java to check if a number is even or odd in Java? Core Java Overview
12 June 2019 38 • String handling? 8. Why is String final in Java? 9. What is the difference between String and StringBuffer in Java? 10. Why char array is better than String for storing password ? 11. Can we compare String using == operator? What is the risk ? 12. What is String pool in Java? 13. Write a Java program to reverse String in Java without using any API 14. How to remove all duplicates from a given string? url:-https://javarevisited.blogspot.com/2012/10/10-java-string-interview- question-answers-top.html Core Java Overview
12 June 2019 39 • Collection framework 15. How does HashMap work in Java ? 16. What is the difference between poll() and remove() method of Queue interface? 17. How do you remove an entry from a Collection? and subsequently what is the difference between the remove() method of Collection and remove() method of Iterator, which one you will use while removing elements during iteration? 18. What is the difference between Synchronized Collection and Concurrent Collection? 19. What is the difference between Iterator and Enumeration? 20. How does HashSet is implemented in Java, How does it use Hashing? Core Java Overview
12 June 2019 40 • Collection framework 21. What do you need to do to use a custom object as a key in Collection classes like Map or Set? 22. When do you use ConcurrentHashMap in Java? 17. What is the difference between Vector and ArrayList? 23. Which one you will prefer between Array and ArrayList for Storing object and why? Url: https://javarevisited.blogspot.com/2011/11/collection-interview- questions-answers.html#ixzz5qWkygUmX Core Java Overview
12 June 2019 41 • Exception handling 24. What is the difference between error and exception in java? 25. There are three statements in a try block – statement1, statement2 and statement3. After that there is a catch block to catch the exceptions occurred in the try block. Assume that exception has occurred in statement2. Does statement3 get executed or not? 26. What is unreachable catch block error? 27. Why do you think Checked Exception exists in Java, since we can also convey error using RuntimeException ? 28. What is Exception chaining in Java? Core Java Overview
12 June 2019 42 • Multithreading 29. What is Thread in JAVA and how do you implement it? 30. How do you differentiate between a thread and a process? 31. Why is it said that Thread behavior is unpredictable? 32. What is a use of synchronized keyword? What is the difference between synchronized and volatile keywords? 33. Why methods like wait(), notify() and notify all() are present in object class and not in Thread class? Core Java Overview
12 June 2019 43 • Generics 34. How Generics works in Java ? What is type erasure ? 35. What is difference between List<? extends T> and List <? super T> ? 36. How to write a generic method which accepts generic argument and return Generic Type? 37. Write a program to implement LRU cache using Generics ? 38. Can we use Generics with Array? 39. What is Bounded and Unbounded wildcards in Generics ? Url: https://javarevisited.blogspot.com/2012/06/10-interview-questions-on- java-generics.html#ixzz5qWouuJjV Core Java Overview
12 June 2019 44 RESTful Overview RESTful Web Services: 1. What REST stands for? 2. Name some of the commonly used HTTP Methods used in Rest based architecture. 3. What is your understanding of Restful Web Services? 4. Name the protocol which is used by Restful Web Services. 5. Explain the term Addressing with respect to Restful Web Services. 6. What is a Resource in Rest? 7. How to represent a Resource in Rest? 8. What is messaging in Restful Web Services? 9. What is the difference between a Rest Web Service and a SOAP Wen Service? 10. What is URI?
12 June 2019 45 RESTful Overview 11. What is the purpose of URI in REST based web services? 12. What are the core components of a HTTP Request? 13. What are the core components if HTTP Response 14. What is Statelessness in Restful Web Services? 15. What is the format of URI in Rest Architecture? References: • https://www.techbeamers.com/rest-api-interview-questions-answers/ • https://www.javatpoint.com/web-services-interview-questions • https://www.wisdomjobs.com/e-university/restful-java-web-services-interview- questions.html • https://www.tutorialspoint.com/restful/restful_interview_questions.htm
12 June 2019 46 HIBERNATE HIBERNATE 1. What is Hibernate? 2. What is ORM (Object Relational Mapping)? 3. What are the advantages of Hibernate over JDBC? 4. What is Hibernate Configuration file? 5. What is Hibernate Mapping file? 6. Name some important interfaces of Hibernate framework. 7. What is Hibernate sessionFactory and How to configure it? 8. Hibernate sessionFactory is Thread safe?
12 June 2019 47 HIBERNATE 9. What is Hibernate Session and How to get it? 10. Hibernate session is Thread safe? 11. What is Hibernate Caching? Explain Hibernate 1st level Cache. 12. Which method is used to create a SQL query? 13. What is transaction in Hibernate? 14. What is hql? 15. Which method is used to create a hql query? 16. What are persistent classes in Hibernate? 17. What is lazy loading?
12 June 2019 48 HIBERNATE 18. What is 2nd level Cache in Hibernate? 19. What is many-to-many association? 20. What is one- to-one association? 21. What is many-to-one association? References: •https://www.onlineinterviewquestions.com/hibernate-interview-questions-answers/ •https://www.journaldev.com/3633/hibernate-interview-questions-and-answers •https://www.javatpoint.com/hibernate-interview-questions •https://career.guru99.com/hibernate-interview-questions/ •https://www.tutorialspoint.com/hibernate/hibernate_interview_questions.htm
12 June 2019 49 SPRING & SPRING BOOT 1) What is Spring? 2) What are the advantages of spring framework? 3) What are the modules of spring framework? 4) What is IOC and DI? 5) What is the role of IOC container in spring? 6) What are the types of IOC container in spring? 7) What is the difference between BeanFactory and ApplicationContext? 8) What is the difference between constructor injection and setter injection? 9) What is autowiring in spring? What are the autowiring modes? 10) What are the different bean scopes in spring? 11) In which scenario, you will use singleton and prototype scope? 12) What are the transaction management supports provided by spring? 13) What are the advantages of JdbcTemplate in spring? 14) What are classes for spring JDBC API? 15) How can you fetch records by spring JdbcTemplate? 16) What is the advantage of Named ParameterJdbcTemplate? 17) What is the advantage of SimpleJdbcTemplate? 18) What is AOP? 19) What are the advantages of spring AOP? 20) What are the AOP terminology?
12 June 2019 50 SPRING 21) What are the types of advice in AOP? 22) What is the front controller class of Spring MVC? 23) What does @Controller annotation? 24) Describe some of the standard Spring events? 25) How can JDBC be used more efficiently in the Spring framework? 26) @Autowired annotation ,@Qualifier annotation and @Required annotation 27) What are inner beans in Spring? 28) Which are the important beans lifecycle methods? Can you override them? 29) Are Singleton beans thread safe in Spring Framework? 30) What are the ways to access Hibernate by using Spring? References: https://mindmajix.com/java-spring-interview-questions https://www.edureka.co/blog/interview-questions/spring-interview- questions/
12 June 2019 51 SPRING-BOOT 1) What is Spring Boot? 2) What are the advantages of Spring Boot? 3) What are the features of Spring Boot? 4) How to create Spring Boot application using Maven? 5) What is thymeleaf? 6) How to use thymeleaf? 7) List minimum requirements for Spring boot System. 8) What are the other Starter Project Options that Spring Boot provides? 9) Is Spring Initializr the only way to create Spring Boot Projects? 10) Why do we need spring-boot-maven-plugin? 11) How can I enable auto reload of my application with Spring Boot? 12) What is Spring Data REST? 13) What is the difference between RequestMapping and GetMapping? 14) What is the difference between JPA and Hibernate? 15) How do we connect to a external database like MSSQL or oracle? 16) What is the use of @SpringBootApplication annotation References: https://www.javatpoint.com/spring-boot-interview-questions https://www.springboottutorial.com/spring-boot-interview-questions https://www.onlineinterviewquestions.com/spring-boot-interview- questions/page/2/
12 June 2019 52 BUILD MANAGEMENT,HTML5, BOOTSTRAP, JAVASCRIPT, TYPE SCRIPT, ANGULAR -Session 3
12 June 2019 53 Front end BUILD 1 . what is the purpose of bower.json? 2. Difference between grunt,npm and bower? 3. Explain what are the key features of AngularJS ? 4. Explain what is services in AngularJS ? 5. Explain what is Angular Expression? Explain what is key difference between angular expressions and JavaScript expressions? 6. Explain what are directives ? Mention some of the most commonly used directives in AngularJS application ? 7. Mention what are the advantages of using angularJS? 8. Explain what Angular JS routes does ? 9. Explain what is data binding in AngularJS ?
12 June 2019 54 HTML5 1. How do you indicate the character set being used by an HTML5 document? How does this differ from older HTML standards? 2. Briefly describe the correct usage of the following HTML4 semantic elements: <header>, <article>, <section>, <footer>. 3. What is HTML5 web storage? Explain Local Storage and Session Storage. 4. What is the difference between span and div? 5. What is Geolocation API in HTML5? 6. What is the need of mentioning <!DOCTYPE HTML> at the beginning of an HTML page.? 7. List out new structural elements in HTML5. 8. Define Meta tags.
12 June 2019 55 9. List few input type attributes that are new in HTML5 10. How is it possible to insert a copyright symbol in a web page? 11. What is Server Side Events in HTML5? 12. What are Web Sockets? 13. Can you use SVG tags directly in HTML5 without any plugin? 14. What is Canvas in HTML5? How to write a Canvas? 15. What is the importance of Drag and Drop in HTML5? References: • https://www.greycampus.com/blog/programming/html-five-interview-questions-and- answers • https://www.toptal.com/html5/interview-questions • https://www.tutorialspoint.com/html5/html5_interview_questions.htm • https://www.softwaretestinghelp.com/html5-interview-questions/ • https://www.onlineinterviewquestions.com/html5-interview-questions/
12 June 2019 56 BOOTSTRAP 1. Explain why to choose Bootstrap for building the website? 2. What are the types of layout available in Bootstrap? 3. Explain Bootstrap Grid System. 4. What are offset columns? 5. Define the key components of Bootstrap. 6.What do you mean by class loaders? 7. Why do we use Jumbotron in Bootstrap? 8. What is the role of pagination in Bootstrap and what are their classifications?
12 June 2019 57 9. What is normalize in Bootstrap? 10. What are Glyphicons? 11. Explain the use carousel plugin in Bootstrap. 12. Explain Modal plugin in Bootstrap. 13. Explain Bootstrap Collapsing Elements. 14. Differentiate between Bootstrap and Foundation. 15. Explain what are the steps for creating basic or vertical forms. References: https://career.guru99.com/top-25-bootstrap-interview-questions/ https://www.tutorialspoint.com/bootstrap/bootstrap_interview_questions.htm https://www.softwaretestinghelp.com/bootstrap-interview-questions/ https://www.onlineinterviewquestions.com/bootstrap-interview-questions-answers/ https://www.wisdomjobs.com/e-university/bootstrap-interview-questions-answers.html
12 June 2019 58 JAVASCRIPT 1. Enumerate the differences between Java and JavaScript. 2. Difference between undefined and not defined in javascript. 3. Drawback of creating true private methods in javascript? 4. What is a “closure” in javascript? Provide an example. 5. How to use external JavaScript file? 6. What is DOM? What is the use of document object? 7. What is the use of window object? 8. What are the JavaScript data types?
12 June 2019 59 9. How to write HTML code dynamically using JavaScript? 10. What is 'this' keyword in JavaScript? 11. What is the difference between ViewState and SessionState? 12. What is the difference between == and ===? 13. How to create objects in JavaScript? 14. How to create an array in JavaScript? 15. What does the isNaN() function? References: https://www.guru99.com/javascript-interview-questions-answers.html https://www.javatpoint.com/javascript-interview-questions https://www.codementor.io/nihantanu/21-essential-javascript-tech-interview-practice-questions- answers-du107p62z https://www.edureka.co/blog/interview-questions/javascript-interview-questions/
12 June 2019 60 ANGULAR 10 . What makes AngularJS better ? 11. Explain what is directive and Mention what are the different types of Directive? 12. Explain what is factory method in AngularJS? 13. Mention what are the characteristics of “Scope”? 14. Explain what is DI (Dependency Injection ) and how an object or function can get a hold of its dependencies ? 15. What is TypeScript and why do we need it? 16. What are the benefits of TypeScript? 17. What are different components of TypeScript? 18. What is Type assertions in TypeScript? 19. What are all the other access modifiers that TypeScript supports? 20. What are disadvantages of TypeScript? 21. Explain in details about the compiler using by the Angular, called AOT (Ahead of time)? 22. Demonstrate navigating between different routes in an Angular application.
12 June 2019 61 23. Enumerate some salient features of Angular 6. 24. What are the building blocks of Angular6? 25. How to use Angular Material? 26. What is Data Binding? How many ways it can be done? 27. What is architecture Overview of Angular6? 28. What is ngOnInit ()? How to define it? 29. Differentiate between Components and Directives 30. What is the use of @Input and @Output? 31. What is RouterOutlet? 32. Explain the usage of {{}}? 26. What is Data Binding? How many ways it can be done? 27. What is architecture Overview of Angular6? 28. What is ngOnInit ()? How to define it? 29. Differentiate between Components and Directives
12 June 2019 62 30. What is the use of @Input and @Output? 31 . What is RouterOutlet? 32. Explain the usage of {{}}? 33. What are the Pipes? 34. What is Pure and Impure Pipes? 35. What is Angular Cookies?
12 June 2019 63 • What is the difference between BETWEEN and IN operators in SQL? • Write an SQL query to find names of employee start with ‘A’? • What is the difference between primary key and unique constraints? • What is a view in SQL? • What is a join in SQL? What are the types of joins? • What is ACID property in a database? • Explain different types of Normalization. • Explain different types of index. • What is the difference between cross join and natural join? • Write a SQL query to get the third highest salary of an employee from employee_table? • What is the difference between ‘HAVING’ CLAUSE and a ‘WHERE’ CLAUSE? • Name the operator which is used in the query for pattern matching? DATABASE
12 June 2019 64 MANEGER ROUND
12 June 2019 65 Manager Round Technical 1 Explain your Project Architecture 2 Explain the Functionality of the Project 3. Explain the advantages and disadvantages of Spring 4. What were the Challenges while Development 5. Advantages and disadvantages of Struts . 6. Explain the various components you developed 7. Explain the Request Response flow from front end to backend . 8. What are the Tools used 9. Which .IDE you used . 10 Which Server , Database you used . 11. Which Deployment t cool you used 12. Explain the Life Cycle 13. Were you involved in all phases of the Life cycle . •Roles and Responsibilities • o
12 June 2019 66 Manager Round • People rarely succeed unless they have fun in what they are doing.-Dale Carnegie Roles and Responsibilities What was the nature of work 2What were your roles and Responsibilities 3 Were you testing the Application you developed and was it Bugfree 4.How were the Time lines for.your tasks . 5.What were the toughest situations you faced during project work and how you do code review Software Development Life cycle activities . Explain Life cycle phases of the project . What Documentation you did and know . What are the different types of Testing . Did you do Unit Testing . What was the percentage of Code Coverage was it 100 % Complaint. Who estimated your Efforts . Were you managing requirements on your own or were you given Requirements .
12 June 2019 67 HR ROUND
12 June 2019 68 HR Round •oWHAT CHALLENGES ARE YOU LOOKING FOR IN THIS HR POSITION Tell me about yourself. What are your strengths and weaknesses. ... How you feel about working late or during the weekends? ... Have you faced any challenging situation? ... Where do you see yourself in the next five years? ... Why should I hire you? ... How you define success? Why do you want this job? ... Why are you looking for job change?
12 June 2019 69 HR Round •oTell me about yourself.  Connect personal strengths with supporting exs. Avoid summarising your resume word for word. Align your current job responsibilities to the role. Avoid mentioning personal information related to your marital status ,children, political or religious views. Highlight your personality. Connect your skills to the job description. Briefly mention about hobbies, intellectual, development and community involvement.
12 June 2019 70 HR Round •oWhat are your strengths and weaknesses. ...  The best way to handle this question is to minimize the trait and emphasize the positive. Select a trait and come up with a solution to overcome your weakness. Stay away from personal qualities and concentrate more on professional traits.  For example: "I pride myself on being a 'big-picture' guy. I have to admit I sometimes miss small details, but I always make sure I have someone who is detail-oriented on my team.“  Being too critical of yourself.  Attempting to please everyone.  Being unfamiliar with the latest software.
12 June 2019 71 HR Round •oWhat are your strengths and weaknesses. ...  The best way to handle this question is to minimize the trait and emphasize the positive. Select a trait and come up with a solution to overcome your weakness. Stay away from personal qualities and concentrate more on professional traits.  For example: "I pride myself on being a 'big-picture' guy. I have to admit I sometimes miss small details, but I always make sure I have someone who is detail-oriented on my team.“  Being too critical of yourself.  Attempting to please everyone.  Being unfamiliar with the latest software.
12 June 2019 72 HR Round • How you feel about working late or during the weekends? ... • Giving positive perspective and not feeling pressurized to work at weekends. • I enjoy work because to me it's a very peaceful . However, I need my weekends to refresh and recharge. • I can stay focused for a long period of time without getting tired. • If there is an urgent need or an emergency I’ll definitely work whatever shifts you need; the company's growth and success are mine as well.
12 June 2019 73 HR Round • How you feel about working late or during the weekends? ... • Giving positive perspective and not feeling pressurized to work at weekends. • I enjoy work because to me it's a very peaceful . However, I need my weekends to refresh and recharge. • I can stay focused for a long period of time without getting tired. • If there is an urgent need or an emergency I’ll definitely work whatever shifts you need; the company's growth and success are mine as well.
12 June 2019 74 HR Round • Have you faced any challenging situation? ... • Describe a difficult situation you encountered in a previous job, and how you resolved it.” •“Can you provide an example of a time when you (made a mistake at work, under-performed on a task, etc.) and how you overcame this.”
12 June 2019 75 HR Round • How you define success? To me, success means to have a goal, plan the steps to achieve the goal implement the plan, and finally achieve the goal. "Success means to achieve a goal I have set for myself”
12 June 2019 76 HR Round • Have you faced any challenging situation? ... • Describe a difficult situation you encountered in a previous job, and how you resolved it.” •“Can you provide an example of a time when you (made a mistake at work, under- performed on a task, etc.) and how you overcame this.”
12 June 2019 77 HR Round • where do you see yourself in the next five years? ... My first goal is to learn the financial structure of the company, analyze the competition, and then develop a strategy to exceed others in the market.” Keep your answer general. Stress your interest in a long-term career at the company. Demonstrate your enthusiasm for the job
12 June 2019 78 HR Round • Why should I hire you • You can do the work and deliver exceptional results. • You will fit in beautifully and be a great addition to the team. • You possess a combination of skills and experience that make you stand out from the crowd.
12 June 2019 79 HR Round • Why do you want this job? ... •Make sure that you are sincerely interested in the job and will be motivated to perform if hired •Understand your priorities and preferences — which aspects of the company and/or job are appealing to you and why? •Learn about your career goals and how this position fits into your plan
12 June 2019 80 HR Round • WHY ARE YOU LOOKING FOR JOB CHANGE? •Job is stimulating & challenging. •Able to learn new things and develop your skill set. •Achieve measurable results. •Feel valued and a core part of the team. •Opportunities to grow and progress within the company.
12 June 2019 81 Resume Preparation & Tips •oHave you faced any challenging situation? .. oTips oShould have a stunning opening summary in 300 o words oAlign the summary Industry specific oCompetencies and Competence oManagerial skills or Technical skills. oMajor Accomplishments oOrganizations worked oScope of work done o Education
12 June 2019 82 Resume Preparation & Tips •
12 June 2019 83 Resume Preparation & Tips •
12 June 2019 84 • o CareerValuesisdirectlyproportionalto(Hard work*Commitment*Focus*Well-Planned learningattitude*discipline )notonLuckor MagicorReference. -SnipeTeam

Interview preparation full_stack_java

  • 1.
    12 June 20191 Interview –Fullstack In Earlier Days, A person who sacrificed his sleep, forgot his family, forgot his food, forgot laughter were called “SADHU” But now they are called… -Software Engineer
  • 2.
    12 June 20192 Agenda •Introduction - Tell Me about yourself - What is project - Domain choice of Project? - Domain v/s Platform? - Project v/s Product - learning’s of Project - Product Company & Service Company • SDLC - SDLC - Scrum Process - Planning Poker - Version Management - architecture Problem Solving - Aptitude, Logical and Reasoning -Top Most important Programs
  • 3.
    12 June 20193 Agenda • Core Java • Restful webservice • Hibernate • Spring & Spring boot • HTML5, Bootstrap, javasqscript, Angular • Data base • Manager Round • HR Round • Snipe Assassments
  • 4.
    12 June 20194 INTRODUCTION - session 1
  • 5.
    12 June 20195 Tell Me about yourself The future depends on what we do in the present - Mahatma Gandhi Born and brought up in Patna, Bihar, I studied in a convent school and it was around my ninth grade where I developed a keen interest in Internet and Technology. Following my interest, I pursued my Bachelors in Computer Application from men’s College, Patna. As part of my curriculum, I particularly found the subjects of Computer Networks and Design of Algorithms highly intriguing, as these subjects created in me a passion to study the computer related courses in much more detail. Alongside, I also started preparing for my Master of Computer Application course. Besides my curriculum, I participated in various events pertaining to art and culture held in my college. Talking about my profession, now I am qualified computer programmer where I work on various programming languages such as C, Java, PHP, JavaScript, C++, Python, Shell, Ruby, Objective-C and C#. Besides my work and academic, I am extremely passionate about playing Guitar, which is a great stress- buster for me. I am very much greatful to my esteem college, faculty and supported my current company which developed myself to effective quality professional. That's all about myself, my quote is "Life is all about grabbing the opportunity". thank you so much for giving me the opportunity to introduce me.
  • 6.
    12 June 20196 Introduction • What is Project? •A project is a temporary effort to create a unique product or service. Projects usually include constraints and risks regarding cost, schedule or performance outcome.. The future depends on what we do in the present - Mahatma Gandhi
  • 7.
    12 June 20197 Project Overview • Domain choice of the project ? The difference between a successful person and others is not a lack of strength, not a lack of knowledge, but rather a lack of will.-Vince Lambardi
  • 8.
    12 June 20198 Introduction • Domain v/s Platform ? Domain Platform It is a field study that defines a set of common requirement Terminology and functionality for any software program constructed to solve a problem in the area of computer programming. EX: PLM, CRM, RETAIL A platform is a “Blue print for the evolution of popular software or specification.” It depends a standard around which a system can be developed. EX: Java platform .Net platform People rarely succeed unless they have fun in what they are doing.-Dale Carnegie
  • 9.
    12 June 20199 Introduction • Project v/s Product ? Do what you can, with what you have, where you are. -Theodore Roosevelt
  • 10.
    12 June 201910 Introduction • Project Learning’s ? Anyone who has never made a mistake has never tried anything new. -Albert Einstein
  • 11.
    12 June 201911 Service & Product Company • People rarely succeed unless they have fun in what they are doing.-Dale Carnegie “Service Based Companies are driven by customer needs. They offer services and solutions as per customer requirements. Features of these type of companies:- 1. High pressure work environment. 2. Completing deadline is most. 3. Person should be multitasking. 4. Should be willing to become a victim of office politics for better appraisal from senior. 5. Less scope of R&D. But would be able to learn new things a lot. Product Based Companies are driven by an idea to help different customers. Here the main focus would be what should i do to make my product better. Features of these type of companies are:- 1. Cool and healthy environment. 2. Better flow of thoughts. Help an individual to think out of the box. 3. Person need not be multitasker. Instead be good at its respective field. 4. Pressure is there but comparative less. 5. More job satisfaction as mind will be less stressful.
  • 12.
    12 June 201912 SDLC - session 1
  • 13.
    12 June 201913 SDLC • • Waterfall Model. • V-Shaped Model. • Evolutionary Prototyping Model. • Spiral Method (SDM) • Iterative and Incremental Method. • Agile development.
  • 14.
    12 June 201914 Agile Methodology-Scrum Process •
  • 15.
    12 June 201915 Agile Methodology-Scrum Process •
  • 16.
    12 June 201916 Planning Poker Card • “
  • 17.
    12 June 201917 Version Management •These are the problems source code management is intended to solve. Effectively it is a database for source code that eases the problems of – Multiple people in many places working on the same code – Retrieving old versions of files – Keeping logs about what changed in a file – Integrating changed code – Generating release builds Version Management also called Version Control or Revision Control, is a means to effectively track and control changes to a collection of related entities. The term "Versioning" is also sometimes used but the difference is that "Versioning" typically refers to when someone manually applies a version number or label to something for easier communication or simplification such as "draft", "beta", or "1.0". In the context of an information solution version control is most often used to track and control changes to source code. It is a very important tool within an overall life cycle management strategy for information solutions.
  • 18.
    12 June 201918 Version Management •Centralized Version Control A single server holds the code base Clients access the server by means of check- in/check-outs Examples include CVS, Subversion, Visual Source Safe. Advantages: Easier to maintain a single server. Disadvantages: Single point of failure. Distributed Version Control Each client (essentially) holds a complete copy of the code base. Code is shared between clients by push/pulls Example Git Advantages: Many operations cheaper. No single point of failure Disadvantages: A bit more complicated!
  • 19.
    12 June 201919 Version Management: GIT •o GIT is a Distributed Version Control System. oIt is a content addressable file system, used to track directory trees. oIt handles all the things like merging of source code and maintaining versions. oGIT is optimized for Complex Merges and Fast. oIt follows Trunk Base Development. oIt allows for code collaboration with anyone online. oUsers keep entire code and history on their location machines oUsers can make any changes without internet access Linus uses BitKeeper to manage Linux code o In 2005, BitKeeper suddenly became unavailable. o Linus decided to create a tool with Distributed Source Management System. o Linus Torvalds developed GIT in June 2005.
  • 20.
    12 June 201920 Terminology • o DIRECTORY : A folder is used for storing multiple files. o REPOSITORY : A collection of all the files and their history organized in folders, branches, tags. o CLONE : Act of copying a repository from a remote server. o BRANCH : It is a pointer to a commit(save the files). o MERGE : Combination of one or more branches into the current branch. o ORIGIN : The default name of the remote repository o MASTER : It is just another branch, but is the default one which gets created. o STAGE FILES : These are the files we have told GIT that are ready to committed. o SNAPSHOT : In general is just the "entity" that GIT uses to store its data. o INTEGRATORS : It can review and bring changes to reference code asynchronously to central repository.
  • 21.
    12 June 201921 Architecture •o
  • 22.
    12 June 201922 Data Platform Analytics ARCHITECTURE •o
  • 23.
    12 June 201923 SOA •o
  • 24.
    12 June 201924 Architecture v/s architecture patterns v/s Design Patterns •o Architecture Style – Component-based – Monolithic application – Layered – Pipes and filters – Event-driven – Publish-subscribe – Plug-ins – Client-server o Architecture Pattern – Three-tier – Microkernel – Model-View-Controller – Model-View-ViewModel o Design Patterns o GOF Patterns – Creational, Behavioral and Functional Patterns o Important one are Singleton, Factory Method, Command Pattern, Proxy and Decorator o https://springframework.guru/gang-of-four-design-patterns/ o o Database Patterns – DAO Pattern o UI Patterns.. - http://ui-patterns.com/patterns
  • 25.
    12 June 201925 PROBLEM SOLVING - session 2
  • 26.
    12 June 201926 APTITUDE •o Quantitative Aptitude o Logical Reasoning o Verbal ohttp://placement.freshersworld.com/ , https://www.indiabix.com/aptitude/questions-and- answers/ o Quantitative Aptitude o Time and Work o Number Systems o Probability, Permutation & Combination o Time and Distance o Percentage & Ratios o Profit & Loss o Stock & Shares o Race & Game of Skill o Logarithm o True Discount o Banker’s Discount o Logical o Series Completion o Puzzle Test o Blood Relations o Direction Test o Coding Decoding o Verbal o Comprehension, Synonyms & Antonyms
  • 27.
    12 June 201927 Top 50 IMPORTANT PROGRAMS • o 1. Fibonacci series oWrite a simple Java program which will print Fibonacci series e.g. 1 1 2 3 5 8 13 ... . up to a given number. Be prepare for cross questions like using iteration over recursion and how to optimize the solution using caching and memorization. o2. Prime number oWrite a Java program to check if a given number is prime or not. Remember, a prime number is a number which is not divisible by any other number e.g. 3, 5, 7, 11, 13, 17 etc. Be prepared for cross e.g. checking till the square root of a number etc. o3. String Palindrome oYou need to write a simple Java program to check if a given String is palindrome or not. A Palindrome is a String which is equal to the reverse of itself e.g. "Bob" is a palindrome because of the reverse of "Bob" is also "Bob". Though be prepared with both recursive and iterative solution of this problem. The interviewer may ask you to solve without using any library method e.g. indexOf() or subString() so be prepared for that. o 4. Integer Palindrome oThis is generally asked as follow-up or alternative of the previous program. This time you need to check if given Integer is palindrome or not. An integer is called palindrome if its equal to its reverse e.g. 1001 is a palindrome but 1234 is not because the reverse of 1234 is 4321 which is not equal to 1234. You can use divide by 10 to reduce the number and modulus 10 to get the last digit. This trick is used to solve this problem.
  • 28.
    12 June 201928 Top 50 IMPORTANT PROGRAMS • o 6. Avoiding deadlock in Java oThis is one of the interesting programs from Java Interviews, mostly asked to 2 to 3 years of experienced programmers or higher. Interviewer simply asked you to write code where a resource is accessed by multiple threads. You need to write code in such a way that no deadlock should occur. The trick to solving this problem is acquiring resources in an order and release them in reverse order e.g. first acquire resource R1 and only if you have got R1 go for R2. This way you can avoid deadlock. o7. Factorial oThis is one of the simplest programs you can expect on interviews. It is generally asked to see if you can code or not. Sometimes interviewer may also ask about changing a recursive solution to iterative one or vice-versa. o8. Reverse a String oThis problem is similar to the String Palindrome problem we have discussed above. If you can solve that problem you can solve this as well. You can use indexOf() or substring() to reverse a String or alternatively, convert the problem to reverse an array by operating on character array instead of String. o 9. Remove duplicates from array oWrite a program to remove duplicates from an array in Java without using the Java Collection API. The array can be an array of String, Integer or Character, your solution should be independent of the type of array.
  • 29.
    12 June 201929 Top 50 IMPORTANT PROGRAMS • o 0. Printing patterns o11. Print repeated characters of String? o12. GCD of two numbers o13. Square root of number oYou need to write a program to calculate the square root of a number without using the Math.sqrt() function of JDK. You need to write your logic and method to calculate the square root. You can though use popular algorithm e.g. Newton's method. o14. Reverse array in place o15. Reverse words of sentence o16. Leap year o17. Binary search o18. String Anagram oWrite a program to check if two given String is Anagram of each other. Your function should return true if two Strings are Anagram, false otherwise. A string is said to be an anagram if it contains same characters and same length but in different order e.g. army and Mary are anagrams. You can ignore cases for this problem but you should clarify that from your interview. o.
  • 30.
    12 June 201930 Top 50 IMPORTANT PROGRAMS • o 19. Design a Vending Machine oThis one of the popular OOAD (object oriented analysis and design) question from Java Interviews. You will be given 3 hours to design and code a vending machine satisfying some of the business requirements. You also need to write unit tests to prove your code satisfy those requirements. You can see this article for more object oriented analysis questions. o20. Reverse a number o21. The first non-repeated character of String o22. Finding Middle element of linked list in one pass o23. Pre-order traversal o24. Pre-order traversal without recursion o25. In order traversal o26. In order traversal without recursion o27. Post-order traversal o28. Post order traversal without recursion o29. Print all leaves of binary tree
  • 31.
    12 June 201931 Top 50 IMPORTANT PROGRAMS • 30. Sort array using quicksort You need to write a Java program to sort an array of integers using quick sort algorithm. You cannot use any library method e.g. JDK or a third party library, which means, you need to first implement the quicksort algorithm and then sort the array. 31. Insertion sort Write a program to implement the insertion sort algorithm in Java. The program should take an unsorted array and sort it using insertion sort algorithm Also explain the best case and worst case time and space complexity of Insertion sort algorithm. 32. Bubble sort Write a program to implement the bubble sort algorithm in Java. You can use basic operators and functions but sorting functions from Java API is not allowed. 33. Transpose a matrix 34. Print all permutations of String Write a Java program to print all permutations of a given String. For example, if given String is "GOD" then your program should print all 6 permutations of this string e.g. "GOD", "OGD", "DOG", "GDO", "ODG", and "DGO".
  • 32.
    12 June 201932 Top 50 IMPORTANT PROGRAMS • o35. Reverse a String in place o36. Adding two matrices in Java o37. Matrix multiplication o38. Removal all white space from String o39. Reverse a linked list oWrite a program to reverse a singly linked list in Java. You can use iteration and recursion to solve this problem but you should reverse linked list in place. o40. Find the length of linked list oJust write a program in Java to find the length of a singly linked list in one pass i.e. in just one iteration of singly linked list. o41. Check if linked list has loop oWrite a program to check if given linked list has a loop or not. Sometimes a linked list get corrupt and two nodes point to the same node, which forms the loop or cycle in the linked list. o42. Find the start of loop in linked list
  • 33.
    12 June 201933 Top 50 IMPORTANT PROGRAMS • o43. Find middle element of linked list o44. Find the 3rd element from the tail linked list oYou need to write a program to find the 3rd element from the tail of a singly linked list. You need to solve this problem without iterating twice o 45. Sort a linked list oYou need to given an unsorted linked list and you need to write a program in Java to sort them in ascending order of the values in each node. o46. Iterative Quicksort oYou need to write a Java program to implement quicksort sorting algorithm without recursion. You can use essential JDK classes and programming constructs, but recursion is not allowed. o46. Bucket sort oThis program is increasingly getting popular on Java interview because it sorts a given array in linear time. Though there are a lot of prerequisite e.g. you must know the maximum value present in the array, it is a very interesting problem from interview point of view. You need to write a program to implement bucket sort algorithm in Java. If you are not familiar with Bucket sort or any other linear sorting algorithm,
  • 34.
    12 June 201934 Top 50 IMPORTANT PROGRAMS • o48. Check if two string rotation of each other oWrite a program which accepts two given String and checks if they are the rotation of each. If they then return true otherwise return false. A String is said to be a rotation of other string if they contain same characters and the sequence is rotated across any character e.g "dabc" is a rotation of "abcd" but "dbac" is not. If you want to practice more string based questions, o49. LRU cache in Java oWrite a program to implement an LRU cache in Java. An LRU cache means Least Recently Used Cache which removes the least recently used element if the cache is full. You can use LinkedHashMap to implement LRU cache in Java. o50. Merge sort oImplement the merge sort algorithm in Java. You can write a recursive or iterative solution, whichever you like. You also need to explain the time and space complexity for the best, worst, and average case.
  • 35.
    12 June 201935 CORE JAVA •o - OOPs Concepts(Data Abstraction, Encapsulation, Inheritance, Polymorphism) - String handling - Collection framework. - Exception handling. - Multithreading - Generics
  • 36.
    12 June 201936 CORE JAVA, SPRING, SPRING BOOT , HIBERNATE - session 2
  • 37.
    12 June 201937 • OOPs Concepts In Java ? 1. What is Data Abstraction, Encapsulation, Inheritance, Polymorphism? 2. What is the diamond problem in inheritance ? 3. Why Java does not support multiple inheritance ? 4. What is Static Binding and Dynamic Binding? 5. What is the meaning of “IS-A” and “HAS-A” relationship? 6. What is the difference between Association and Dependency? 7. Write a program in Java to check if a number is even or odd in Java? Core Java Overview
  • 38.
    12 June 201938 • String handling? 8. Why is String final in Java? 9. What is the difference between String and StringBuffer in Java? 10. Why char array is better than String for storing password ? 11. Can we compare String using == operator? What is the risk ? 12. What is String pool in Java? 13. Write a Java program to reverse String in Java without using any API 14. How to remove all duplicates from a given string? url:-https://javarevisited.blogspot.com/2012/10/10-java-string-interview- question-answers-top.html Core Java Overview
  • 39.
    12 June 201939 • Collection framework 15. How does HashMap work in Java ? 16. What is the difference between poll() and remove() method of Queue interface? 17. How do you remove an entry from a Collection? and subsequently what is the difference between the remove() method of Collection and remove() method of Iterator, which one you will use while removing elements during iteration? 18. What is the difference between Synchronized Collection and Concurrent Collection? 19. What is the difference between Iterator and Enumeration? 20. How does HashSet is implemented in Java, How does it use Hashing? Core Java Overview
  • 40.
    12 June 201940 • Collection framework 21. What do you need to do to use a custom object as a key in Collection classes like Map or Set? 22. When do you use ConcurrentHashMap in Java? 17. What is the difference between Vector and ArrayList? 23. Which one you will prefer between Array and ArrayList for Storing object and why? Url: https://javarevisited.blogspot.com/2011/11/collection-interview- questions-answers.html#ixzz5qWkygUmX Core Java Overview
  • 41.
    12 June 201941 • Exception handling 24. What is the difference between error and exception in java? 25. There are three statements in a try block – statement1, statement2 and statement3. After that there is a catch block to catch the exceptions occurred in the try block. Assume that exception has occurred in statement2. Does statement3 get executed or not? 26. What is unreachable catch block error? 27. Why do you think Checked Exception exists in Java, since we can also convey error using RuntimeException ? 28. What is Exception chaining in Java? Core Java Overview
  • 42.
    12 June 201942 • Multithreading 29. What is Thread in JAVA and how do you implement it? 30. How do you differentiate between a thread and a process? 31. Why is it said that Thread behavior is unpredictable? 32. What is a use of synchronized keyword? What is the difference between synchronized and volatile keywords? 33. Why methods like wait(), notify() and notify all() are present in object class and not in Thread class? Core Java Overview
  • 43.
    12 June 201943 • Generics 34. How Generics works in Java ? What is type erasure ? 35. What is difference between List<? extends T> and List <? super T> ? 36. How to write a generic method which accepts generic argument and return Generic Type? 37. Write a program to implement LRU cache using Generics ? 38. Can we use Generics with Array? 39. What is Bounded and Unbounded wildcards in Generics ? Url: https://javarevisited.blogspot.com/2012/06/10-interview-questions-on- java-generics.html#ixzz5qWouuJjV Core Java Overview
  • 44.
    12 June 201944 RESTful Overview RESTful Web Services: 1. What REST stands for? 2. Name some of the commonly used HTTP Methods used in Rest based architecture. 3. What is your understanding of Restful Web Services? 4. Name the protocol which is used by Restful Web Services. 5. Explain the term Addressing with respect to Restful Web Services. 6. What is a Resource in Rest? 7. How to represent a Resource in Rest? 8. What is messaging in Restful Web Services? 9. What is the difference between a Rest Web Service and a SOAP Wen Service? 10. What is URI?
  • 45.
    12 June 201945 RESTful Overview 11. What is the purpose of URI in REST based web services? 12. What are the core components of a HTTP Request? 13. What are the core components if HTTP Response 14. What is Statelessness in Restful Web Services? 15. What is the format of URI in Rest Architecture? References: • https://www.techbeamers.com/rest-api-interview-questions-answers/ • https://www.javatpoint.com/web-services-interview-questions • https://www.wisdomjobs.com/e-university/restful-java-web-services-interview- questions.html • https://www.tutorialspoint.com/restful/restful_interview_questions.htm
  • 46.
    12 June 201946 HIBERNATE HIBERNATE 1. What is Hibernate? 2. What is ORM (Object Relational Mapping)? 3. What are the advantages of Hibernate over JDBC? 4. What is Hibernate Configuration file? 5. What is Hibernate Mapping file? 6. Name some important interfaces of Hibernate framework. 7. What is Hibernate sessionFactory and How to configure it? 8. Hibernate sessionFactory is Thread safe?
  • 47.
    12 June 201947 HIBERNATE 9. What is Hibernate Session and How to get it? 10. Hibernate session is Thread safe? 11. What is Hibernate Caching? Explain Hibernate 1st level Cache. 12. Which method is used to create a SQL query? 13. What is transaction in Hibernate? 14. What is hql? 15. Which method is used to create a hql query? 16. What are persistent classes in Hibernate? 17. What is lazy loading?
  • 48.
    12 June 201948 HIBERNATE 18. What is 2nd level Cache in Hibernate? 19. What is many-to-many association? 20. What is one- to-one association? 21. What is many-to-one association? References: •https://www.onlineinterviewquestions.com/hibernate-interview-questions-answers/ •https://www.journaldev.com/3633/hibernate-interview-questions-and-answers •https://www.javatpoint.com/hibernate-interview-questions •https://career.guru99.com/hibernate-interview-questions/ •https://www.tutorialspoint.com/hibernate/hibernate_interview_questions.htm
  • 49.
    12 June 201949 SPRING & SPRING BOOT 1) What is Spring? 2) What are the advantages of spring framework? 3) What are the modules of spring framework? 4) What is IOC and DI? 5) What is the role of IOC container in spring? 6) What are the types of IOC container in spring? 7) What is the difference between BeanFactory and ApplicationContext? 8) What is the difference between constructor injection and setter injection? 9) What is autowiring in spring? What are the autowiring modes? 10) What are the different bean scopes in spring? 11) In which scenario, you will use singleton and prototype scope? 12) What are the transaction management supports provided by spring? 13) What are the advantages of JdbcTemplate in spring? 14) What are classes for spring JDBC API? 15) How can you fetch records by spring JdbcTemplate? 16) What is the advantage of Named ParameterJdbcTemplate? 17) What is the advantage of SimpleJdbcTemplate? 18) What is AOP? 19) What are the advantages of spring AOP? 20) What are the AOP terminology?
  • 50.
    12 June 201950 SPRING 21) What are the types of advice in AOP? 22) What is the front controller class of Spring MVC? 23) What does @Controller annotation? 24) Describe some of the standard Spring events? 25) How can JDBC be used more efficiently in the Spring framework? 26) @Autowired annotation ,@Qualifier annotation and @Required annotation 27) What are inner beans in Spring? 28) Which are the important beans lifecycle methods? Can you override them? 29) Are Singleton beans thread safe in Spring Framework? 30) What are the ways to access Hibernate by using Spring? References: https://mindmajix.com/java-spring-interview-questions https://www.edureka.co/blog/interview-questions/spring-interview- questions/
  • 51.
    12 June 201951 SPRING-BOOT 1) What is Spring Boot? 2) What are the advantages of Spring Boot? 3) What are the features of Spring Boot? 4) How to create Spring Boot application using Maven? 5) What is thymeleaf? 6) How to use thymeleaf? 7) List minimum requirements for Spring boot System. 8) What are the other Starter Project Options that Spring Boot provides? 9) Is Spring Initializr the only way to create Spring Boot Projects? 10) Why do we need spring-boot-maven-plugin? 11) How can I enable auto reload of my application with Spring Boot? 12) What is Spring Data REST? 13) What is the difference between RequestMapping and GetMapping? 14) What is the difference between JPA and Hibernate? 15) How do we connect to a external database like MSSQL or oracle? 16) What is the use of @SpringBootApplication annotation References: https://www.javatpoint.com/spring-boot-interview-questions https://www.springboottutorial.com/spring-boot-interview-questions https://www.onlineinterviewquestions.com/spring-boot-interview- questions/page/2/
  • 52.
    12 June 201952 BUILD MANAGEMENT,HTML5, BOOTSTRAP, JAVASCRIPT, TYPE SCRIPT, ANGULAR -Session 3
  • 53.
    12 June 201953 Front end BUILD 1 . what is the purpose of bower.json? 2. Difference between grunt,npm and bower? 3. Explain what are the key features of AngularJS ? 4. Explain what is services in AngularJS ? 5. Explain what is Angular Expression? Explain what is key difference between angular expressions and JavaScript expressions? 6. Explain what are directives ? Mention some of the most commonly used directives in AngularJS application ? 7. Mention what are the advantages of using angularJS? 8. Explain what Angular JS routes does ? 9. Explain what is data binding in AngularJS ?
  • 54.
    12 June 201954 HTML5 1. How do you indicate the character set being used by an HTML5 document? How does this differ from older HTML standards? 2. Briefly describe the correct usage of the following HTML4 semantic elements: <header>, <article>, <section>, <footer>. 3. What is HTML5 web storage? Explain Local Storage and Session Storage. 4. What is the difference between span and div? 5. What is Geolocation API in HTML5? 6. What is the need of mentioning <!DOCTYPE HTML> at the beginning of an HTML page.? 7. List out new structural elements in HTML5. 8. Define Meta tags.
  • 55.
    12 June 201955 9. List few input type attributes that are new in HTML5 10. How is it possible to insert a copyright symbol in a web page? 11. What is Server Side Events in HTML5? 12. What are Web Sockets? 13. Can you use SVG tags directly in HTML5 without any plugin? 14. What is Canvas in HTML5? How to write a Canvas? 15. What is the importance of Drag and Drop in HTML5? References: • https://www.greycampus.com/blog/programming/html-five-interview-questions-and- answers • https://www.toptal.com/html5/interview-questions • https://www.tutorialspoint.com/html5/html5_interview_questions.htm • https://www.softwaretestinghelp.com/html5-interview-questions/ • https://www.onlineinterviewquestions.com/html5-interview-questions/
  • 56.
    12 June 201956 BOOTSTRAP 1. Explain why to choose Bootstrap for building the website? 2. What are the types of layout available in Bootstrap? 3. Explain Bootstrap Grid System. 4. What are offset columns? 5. Define the key components of Bootstrap. 6.What do you mean by class loaders? 7. Why do we use Jumbotron in Bootstrap? 8. What is the role of pagination in Bootstrap and what are their classifications?
  • 57.
    12 June 201957 9. What is normalize in Bootstrap? 10. What are Glyphicons? 11. Explain the use carousel plugin in Bootstrap. 12. Explain Modal plugin in Bootstrap. 13. Explain Bootstrap Collapsing Elements. 14. Differentiate between Bootstrap and Foundation. 15. Explain what are the steps for creating basic or vertical forms. References: https://career.guru99.com/top-25-bootstrap-interview-questions/ https://www.tutorialspoint.com/bootstrap/bootstrap_interview_questions.htm https://www.softwaretestinghelp.com/bootstrap-interview-questions/ https://www.onlineinterviewquestions.com/bootstrap-interview-questions-answers/ https://www.wisdomjobs.com/e-university/bootstrap-interview-questions-answers.html
  • 58.
    12 June 201958 JAVASCRIPT 1. Enumerate the differences between Java and JavaScript. 2. Difference between undefined and not defined in javascript. 3. Drawback of creating true private methods in javascript? 4. What is a “closure” in javascript? Provide an example. 5. How to use external JavaScript file? 6. What is DOM? What is the use of document object? 7. What is the use of window object? 8. What are the JavaScript data types?
  • 59.
    12 June 201959 9. How to write HTML code dynamically using JavaScript? 10. What is 'this' keyword in JavaScript? 11. What is the difference between ViewState and SessionState? 12. What is the difference between == and ===? 13. How to create objects in JavaScript? 14. How to create an array in JavaScript? 15. What does the isNaN() function? References: https://www.guru99.com/javascript-interview-questions-answers.html https://www.javatpoint.com/javascript-interview-questions https://www.codementor.io/nihantanu/21-essential-javascript-tech-interview-practice-questions- answers-du107p62z https://www.edureka.co/blog/interview-questions/javascript-interview-questions/
  • 60.
    12 June 201960 ANGULAR 10 . What makes AngularJS better ? 11. Explain what is directive and Mention what are the different types of Directive? 12. Explain what is factory method in AngularJS? 13. Mention what are the characteristics of “Scope”? 14. Explain what is DI (Dependency Injection ) and how an object or function can get a hold of its dependencies ? 15. What is TypeScript and why do we need it? 16. What are the benefits of TypeScript? 17. What are different components of TypeScript? 18. What is Type assertions in TypeScript? 19. What are all the other access modifiers that TypeScript supports? 20. What are disadvantages of TypeScript? 21. Explain in details about the compiler using by the Angular, called AOT (Ahead of time)? 22. Demonstrate navigating between different routes in an Angular application.
  • 61.
    12 June 201961 23. Enumerate some salient features of Angular 6. 24. What are the building blocks of Angular6? 25. How to use Angular Material? 26. What is Data Binding? How many ways it can be done? 27. What is architecture Overview of Angular6? 28. What is ngOnInit ()? How to define it? 29. Differentiate between Components and Directives 30. What is the use of @Input and @Output? 31. What is RouterOutlet? 32. Explain the usage of {{}}? 26. What is Data Binding? How many ways it can be done? 27. What is architecture Overview of Angular6? 28. What is ngOnInit ()? How to define it? 29. Differentiate between Components and Directives
  • 62.
    12 June 201962 30. What is the use of @Input and @Output? 31 . What is RouterOutlet? 32. Explain the usage of {{}}? 33. What are the Pipes? 34. What is Pure and Impure Pipes? 35. What is Angular Cookies?
  • 63.
    12 June 201963 • What is the difference between BETWEEN and IN operators in SQL? • Write an SQL query to find names of employee start with ‘A’? • What is the difference between primary key and unique constraints? • What is a view in SQL? • What is a join in SQL? What are the types of joins? • What is ACID property in a database? • Explain different types of Normalization. • Explain different types of index. • What is the difference between cross join and natural join? • Write a SQL query to get the third highest salary of an employee from employee_table? • What is the difference between ‘HAVING’ CLAUSE and a ‘WHERE’ CLAUSE? • Name the operator which is used in the query for pattern matching? DATABASE
  • 64.
    12 June 201964 MANEGER ROUND
  • 65.
    12 June 201965 Manager Round Technical 1 Explain your Project Architecture 2 Explain the Functionality of the Project 3. Explain the advantages and disadvantages of Spring 4. What were the Challenges while Development 5. Advantages and disadvantages of Struts . 6. Explain the various components you developed 7. Explain the Request Response flow from front end to backend . 8. What are the Tools used 9. Which .IDE you used . 10 Which Server , Database you used . 11. Which Deployment t cool you used 12. Explain the Life Cycle 13. Were you involved in all phases of the Life cycle . •Roles and Responsibilities • o
  • 66.
    12 June 201966 Manager Round • People rarely succeed unless they have fun in what they are doing.-Dale Carnegie Roles and Responsibilities What was the nature of work 2What were your roles and Responsibilities 3 Were you testing the Application you developed and was it Bugfree 4.How were the Time lines for.your tasks . 5.What were the toughest situations you faced during project work and how you do code review Software Development Life cycle activities . Explain Life cycle phases of the project . What Documentation you did and know . What are the different types of Testing . Did you do Unit Testing . What was the percentage of Code Coverage was it 100 % Complaint. Who estimated your Efforts . Were you managing requirements on your own or were you given Requirements .
  • 67.
    12 June 201967 HR ROUND
  • 68.
    12 June 201968 HR Round •oWHAT CHALLENGES ARE YOU LOOKING FOR IN THIS HR POSITION Tell me about yourself. What are your strengths and weaknesses. ... How you feel about working late or during the weekends? ... Have you faced any challenging situation? ... Where do you see yourself in the next five years? ... Why should I hire you? ... How you define success? Why do you want this job? ... Why are you looking for job change?
  • 69.
    12 June 201969 HR Round •oTell me about yourself.  Connect personal strengths with supporting exs. Avoid summarising your resume word for word. Align your current job responsibilities to the role. Avoid mentioning personal information related to your marital status ,children, political or religious views. Highlight your personality. Connect your skills to the job description. Briefly mention about hobbies, intellectual, development and community involvement.
  • 70.
    12 June 201970 HR Round •oWhat are your strengths and weaknesses. ...  The best way to handle this question is to minimize the trait and emphasize the positive. Select a trait and come up with a solution to overcome your weakness. Stay away from personal qualities and concentrate more on professional traits.  For example: "I pride myself on being a 'big-picture' guy. I have to admit I sometimes miss small details, but I always make sure I have someone who is detail-oriented on my team.“  Being too critical of yourself.  Attempting to please everyone.  Being unfamiliar with the latest software.
  • 71.
    12 June 201971 HR Round •oWhat are your strengths and weaknesses. ...  The best way to handle this question is to minimize the trait and emphasize the positive. Select a trait and come up with a solution to overcome your weakness. Stay away from personal qualities and concentrate more on professional traits.  For example: "I pride myself on being a 'big-picture' guy. I have to admit I sometimes miss small details, but I always make sure I have someone who is detail-oriented on my team.“  Being too critical of yourself.  Attempting to please everyone.  Being unfamiliar with the latest software.
  • 72.
    12 June 201972 HR Round • How you feel about working late or during the weekends? ... • Giving positive perspective and not feeling pressurized to work at weekends. • I enjoy work because to me it's a very peaceful . However, I need my weekends to refresh and recharge. • I can stay focused for a long period of time without getting tired. • If there is an urgent need or an emergency I’ll definitely work whatever shifts you need; the company's growth and success are mine as well.
  • 73.
    12 June 201973 HR Round • How you feel about working late or during the weekends? ... • Giving positive perspective and not feeling pressurized to work at weekends. • I enjoy work because to me it's a very peaceful . However, I need my weekends to refresh and recharge. • I can stay focused for a long period of time without getting tired. • If there is an urgent need or an emergency I’ll definitely work whatever shifts you need; the company's growth and success are mine as well.
  • 74.
    12 June 201974 HR Round • Have you faced any challenging situation? ... • Describe a difficult situation you encountered in a previous job, and how you resolved it.” •“Can you provide an example of a time when you (made a mistake at work, under-performed on a task, etc.) and how you overcame this.”
  • 75.
    12 June 201975 HR Round • How you define success? To me, success means to have a goal, plan the steps to achieve the goal implement the plan, and finally achieve the goal. "Success means to achieve a goal I have set for myself”
  • 76.
    12 June 201976 HR Round • Have you faced any challenging situation? ... • Describe a difficult situation you encountered in a previous job, and how you resolved it.” •“Can you provide an example of a time when you (made a mistake at work, under- performed on a task, etc.) and how you overcame this.”
  • 77.
    12 June 201977 HR Round • where do you see yourself in the next five years? ... My first goal is to learn the financial structure of the company, analyze the competition, and then develop a strategy to exceed others in the market.” Keep your answer general. Stress your interest in a long-term career at the company. Demonstrate your enthusiasm for the job
  • 78.
    12 June 201978 HR Round • Why should I hire you • You can do the work and deliver exceptional results. • You will fit in beautifully and be a great addition to the team. • You possess a combination of skills and experience that make you stand out from the crowd.
  • 79.
    12 June 201979 HR Round • Why do you want this job? ... •Make sure that you are sincerely interested in the job and will be motivated to perform if hired •Understand your priorities and preferences — which aspects of the company and/or job are appealing to you and why? •Learn about your career goals and how this position fits into your plan
  • 80.
    12 June 201980 HR Round • WHY ARE YOU LOOKING FOR JOB CHANGE? •Job is stimulating & challenging. •Able to learn new things and develop your skill set. •Achieve measurable results. •Feel valued and a core part of the team. •Opportunities to grow and progress within the company.
  • 81.
    12 June 201981 Resume Preparation & Tips •oHave you faced any challenging situation? .. oTips oShould have a stunning opening summary in 300 o words oAlign the summary Industry specific oCompetencies and Competence oManagerial skills or Technical skills. oMajor Accomplishments oOrganizations worked oScope of work done o Education
  • 82.
    12 June 201982 Resume Preparation & Tips •
  • 83.
    12 June 201983 Resume Preparation & Tips •
  • 84.
    12 June 201984 • o CareerValuesisdirectlyproportionalto(Hard work*Commitment*Focus*Well-Planned learningattitude*discipline )notonLuckor MagicorReference. -SnipeTeam