Interview Questions and Answers for 'Design' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers for 'Design' - 184 question(s) found - Order By Rating

next 30
 Q1. What are various design frameworks for Banking profile ?Design2020-02-13 08:16:09

 This question was recently asked at 'IBM India'.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


 Q2. Design Parking Lot.Design2020-02-09 19:51:46

 This question was recently asked at 'Visa'.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


 Q3. Design pattern used in struts.Struts2020-01-31 10:08:53

 This question was recently asked at 'Accenture'.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     Struts Design patterns     Asked in 1 Companies


 Q4. Write a Program to find out negative numbers in a list.Design2020-01-23 09:26:53

 This question was recently asked at 'nilla apps'.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


 Q5. How can we create an arraylist of unique values ?Core Java2020-01-17 09:28:36

Ans. We can put the value in a set to enforce uniqueness and then dum those value into an arraylist.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     arraylist  design  collections


 Q6. How would you design the database schema for an event?Database2020-01-10 15:49:51

 This question was recently asked at 'CVS Healthcare'.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     database design  database schema     Asked in 1 Companies


 Q7. Design Texas Hold Em poker gameDesign2020-01-10 15:46:08

 This question was recently asked at 'Alcatel Lucent'.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


 Q8. What is the advantage of moving text messages to a separate properties file , like message.properties instead of hard defining it on the html ?Design2020-01-09 13:47:37

 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     


 Q9. What are Hooks in programming and Design Patterns ?Design2019-10-03 10:34:20

 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     


 Q10. If you are given choice to either load object eagerly or lazily , which one would you use in case of singleton pattern ?Design2019-10-03 10:14:50

Ans. I would choose Eager as the cost for 1 additional object is too minute for any such consideration.

Eager Loading results in Faster access ( Object available at load time) at the cost of additional space.

Lazy loading results in space saving ( Object available at first use ) at the cost of access speed.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     design Pattern  Singleton  Lazy vs Eager Loading


 Q11. What is your opinion about caching ?Design2019-10-03 10:12:41

Ans. Caching is a mechanism that provides faster access but at the cost of additional space. Caching is good if we need faster access and if it takes extensive processing to come to a value which doesn't gets changed frequently.

Caching could be an overhead if we don't need fast access or if the processed value changes too frequently.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q12. Explain SOLID principles.Design2019-09-24 08:12:41

 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     


 Q13. Find the second largest array element without sorting?Design2019-08-07 13:14:31

Ans. We initialize two variables first and second to INT_MIN as,
first = second = INT_MIN
then Start traversing the array,
If the current element in array say arr[i] is greater
than first. Then update first and second as,
second = first
first = arr[i]
If the current element is in between first and second,
then update second to store the value of current variable as
second = arr[i]
then Return the value stored in second.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q14. What is runtime Polymorphism ?Design2019-06-09 17:11:57

 This question was recently asked at 'OFS 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


 Q15. Can you tell us a use case of reflection in java that you have applied ?Design2019-05-28 14:20:18

 This question was recently asked at 'CenturyLink'.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     reflection     Asked in 1 Companies


 Q16. Write program to control traffic in a parking lot.Design2019-05-06 11:36:01

 This question was recently asked at 'MathWorks'.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


 Q17. When singleton can break and how to resolve itDesign2019-05-03 07:57:33

 This question was recently asked at 'Cognizant (CTS)'.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     singleton  design patterns     Asked in 1 Companies


 Q18. Create DB schema for Employee, Department.Database2019-04-06 12:42:21

 This question was recently asked at 'RiseSmart India,RiseSmart'.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     db schema  database schema  database design     Asked in 2 Companies


 Q19. Design a appointment booking system for a chain of hospitals.Design2019-02-01 15:11:15

 This question was recently asked at 'ServiceNow'.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


 Q20. Can we keep application configuration at different places and what could be the consideration for choosing multiple places for doing so ?Design2019-02-01 09:34:10

Ans. Yes an application can have configuration stored at multiple places. Factors that could facilitate such a design could be

1. Type of config information - We may have a case to store confidential information differently than other regular config value

2. Environment - We may like to have a base config ( defined in application package ) and then a different override mechanism in different environments.

3. Centralization - Sometime some configs need to be shared across application and hence centralized.

4. Testing - Testing against config may not be possible in some enviornments in certain cases and hence additional config store might be kept for testing purpose only.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Design  Solution


 Q21. Write a calculator and find if a character appears more than n times ?Design2019-01-31 20:40:43

 This question was recently asked at 'Mercury Systems'.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


 Q22. Code an elevator simulator.Design2019-01-31 20:37:24

 This question was recently asked at 'TrustArc'.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


 Q23. Design an in memory object oriented system for a Car manufacturing Company ?Design2019-01-31 20:32:18

 This question was recently asked at 'Audacious Inquiry'.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


 Q24. If you are asked to develop a financial system, how would you make sure that there are proper checks , balances and audits ?Solution2019-01-31 20:29:03

 This question was recently asked at 'BzzAgent'.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     Design  Security     Asked in 1 Companies


 Q25. write a program for 4 digit otp generation?Design2019-01-16 10:10:45

 This question was recently asked at 'Infinite Computer Solutions'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q26. Design2019-01-10 13:28:04

 This question was recently asked at 'HeadStrong'.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


 Q27. If you have to pull a sub string out of a string, which method would you use - using String methods or Pattern / Matcher ?Design2019-01-10 09:43:14

Ans. It depends on how complex it is and if in future it would need any sort opf debugging. It's not easy to debug code if it's making heavy use of shortcuts like Lambda , Patterns etc.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     pattern matching  String  design


 Q28. How to avoid cloning, serialization in the singleton class ?Design2019-01-04 10:12:26

Ans. For Cloning-exception,For deserialization-read.resolve()

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     singleton  cloneable  serializable  serialization  cloning     Asked in 1 Companies


 Q29. How you can check Object is created or not in case of Singleton using Object class method ?Design2018-10-27 07:41:37

Ans. Reflections-- setAccesible--avoid using enumns

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q30. Tell me about thread pool?Design2018-08-30 08:38:45

Ans. Java provides its own implementations of the thread pool pattern, through objects called executors. These can be used through executor interfaces or directly through thread pool implementations which does allow for finer-grained control. The java.util.concurrent package contains the following interfaces:

Executor : a simple interface for executing tasks.ExecutorService a more complex interface which contains additional methods for managing the tasks and the executor itself.

ScheduledExecutorService: extends ExecutorService with methods for scheduling the execution of a task.Alongside these interfaces, the package also provides the Executors helper class for obtaining executor instances, as well as implementations for these interfaces.

Generally, a Java thread pool is composed of:

The pool of worker threads, responsible for managing the threads.
A thread factory that is responsible for creating new threads.
A queue of tasks waiting to be executed.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     thread pool     Asked in 1 Companies


next 30

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: