Interview Questions and Answers for 'Vivint' - 3 question(s) found - Order By Newest Q1. Design a Library system ? Design
Ans. Following Tables can be created
ASSET - Entity Table With foreign key reference to Table AssetType
ASSET_TYPE - Entity Table specifying information related to Asset Type like Books, CDs etc.
MEMBER - Registration information for the member
MEMBERSHIP_TYPE - Membership Types provided by Library
MEMBERSHIP - Relation table with foreign key for MEMBER ,
MEMBERSHIP_TYPE
ASSET_ISSUE_LEDGER - Relationship between MEMBER and ASSET. This specify the issue of particular asset to a particular member. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  design Asked in 1 Companies Related Questions What is Dependency Injection or IOC ( Inversion of Control ) ? What is MVC ? Let's suppose we have an to destroy objects, Design a program to implement garbage collection ? What are the Wrapper classes available for primitive types ? Design an e commerce application using AWS ? What AWS services will you use ? Difference between Factory and Abstract Factory Design Pattern ? Difference between Factory and Builder Design Pattern ? Difference between Builder and Composite ? Difference between Factory and Strategy Design Pattern ? If you are given a choice to implement the code to either Insert a Record or Update if already exist, Which approach will you follow ? Q2. Write code for Binary tree traversal ? Core Java
Ans. http://javabeat.net/binary-search-tree-traversal-java/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Related Questions Can you provide some implementation of a Dictionary having large number of words ? What are the pre-requisite for the collection to perform Binary Search ? What is a binary tree ? What is the difference between >> and >>>? Can we use Ordered Set for performing Binary Search ? What is a Sequence File? Write a program to implement Binary search ? Flatten a Binary Tree to Linked List Write code to check if a Binary tree is symmetrical Q3. Why do you want to leave your current job ? General
Ans. The most effective and acceptable reasons for leaving your current job should be positive e.g. moving forward in your life or career Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 21 Companies Related Questions Difference between == and .equals() ? Why is String immutable in Java ? Explain the scenerios to choose between String , StringBuilder and StringBuffer ?
or
What is the difference between String , StringBuilder and StringBuffer ? What are the difference between composition and inheritance in Java? Explain OOPs
or
Explain OOPs Principles
or
Explain OOPs Concepts
or
Explain OOPs features
or
Tell me something about OOPs What is a Lambda Expression ? What's its use ? Does garbage collection guarantee that a program will not run out of memory? Why Char array is preferred over String for storing password? What are different ways to create String Object? Explain. What is the difference between final, finally and finalize() ?