tag:blogger.com,1999:blog-8712770457197348465.post7384348572890104299..comments2024-03-19T01:04:48.783-07:00Comments on Javarevisited: 20 Design Patterns and Software Design Interview Questions for Programmersjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-8712770457197348465.post-63309923127240441262017-03-09T17:03:51.210-08:002017-03-09T17:03:51.210-08:00This is a great document, I've learnt a lot.
...This is a great document, I've learnt a lot.<br /><br />I recently went through interviewing with Facebook and Google, and ended up getting offers too. I found following two Quora answers quite helpful:<br />https://www.quora.com/How-can-I-learn-about-Design-questions-asked-in-programming-interviews<br />https://www.quora.com/Chris Nyleshttps://www.blogger.com/profile/06166250832084531231noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-83913247753914886942016-10-15T12:42:25.783-07:002016-10-15T12:42:25.783-07:00I have learned a lot from your site! I know that D...I have learned a lot from your site! I know that Design Patterns have many advantage, can you tell me when it can be a disadvantage?-TIAAgashi24https://www.blogger.com/profile/14699897487251042153noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-68110268902584534572015-10-21T19:33:02.701-07:002015-10-21T19:33:02.701-07:00Great list of design pattern questions, btw, you a...Great list of design pattern questions, btw, you an also see some more Java interview questions from last 5 years, <a href="http://javarevisited.blogspot.com/2015/10/133-java-interview-questions-answers-from-last-5-years.html" rel="nofollow">here</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-56235753172909401432014-12-17T07:43:40.135-08:002014-12-17T07:43:40.135-08:00Design pattern and software design are two complet...Design pattern and software design are two completely different thing, how can interviewer mix design pattern and software design ? designing software require experience in terms of scalability, stability, performance and lot more rather than just using MVC design pattern in Spring or Struts.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-72643798793938609702014-12-16T20:26:31.295-08:002014-12-16T20:26:31.295-08:00Some more questions for Java developers who are pr...Some more questions for Java developers who are preparing design pattern hard :<br /><br />1) What is difference between Factory and Abstract Factory design patttern?<br />2) What is difference between State and Strategy Pattern?<br />3) Differnece between Proxy and Decorator design Pattern?<br />4) Why Composition is better than Inheritance? Give two reasons<br />5) Difference between Kabirnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-83463375345694977832014-10-21T11:09:14.216-07:002014-10-21T11:09:14.216-07:00Can you explain how "abstract class is slight...Can you explain how "abstract class is slightly faster than interface" ?<br /><br />Abstract classes are slightly faster than Interfaces because the class compilation and loading happens immediately with Abstract Classes whereas for the Interfaces (specially marker interface) the class loader has to go through the libraries to find the package and then the interface class associated Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-84762624446576915022014-05-06T09:32:09.338-07:002014-05-06T09:32:09.338-07:00Calender is not implementing singleton, but factor...Calender is not implementing singleton, but factory.<br />Nice article (like all other article on this blog)!Koi nahihttps://www.blogger.com/profile/04159772576993047402noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-23028114950723620002014-04-29T08:09:35.333-07:002014-04-29T08:09:35.333-07:00Javin, interesting to read each and every page of ...Javin, interesting to read each and every page of yours. Nicely written!Karthik PPShttps://www.blogger.com/profile/01585421544746093678noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-55430254574908723332014-03-12T04:10:56.248-07:002014-03-12T04:10:56.248-07:00which design pattern is application to implement e...which design pattern is application to implement elevator or hw can we implement elevator class.Ratshttps://www.blogger.com/profile/12896318591855254228noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-10768684814318013542013-04-23T04:47:36.893-07:002013-04-23T04:47:36.893-07:00One of the popular question I have seen on Object ...One of the popular question I have seen on Object Oriented Analysis and Design is designing and implementing Elevator (Lift) system for multi-story buildings, with lot of variants e.g. ground floor + car park, multiple lifts, improving algorithm so that lift can reach quickly on request etc. It would be great, if anyone can elaborate how to deal with such Object oriented design questions in Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-3236772264874575082013-04-21T20:38:57.919-07:002013-04-21T20:38:57.919-07:00Regarding, whether abstract class is faster than i...Regarding, whether abstract class is faster than interface, that's true, because of different byte code generated, when calling a method using abstract class or interface. When you access a method using interface type, it involves scanning to multiple implementation. RAJATnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-42724295877245980742013-04-21T20:34:48.807-07:002013-04-21T20:34:48.807-07:00Regarding Answer 6, related to design of Market da...Regarding Answer 6, related to design of Market data provider, I think there are couple of more approaches. <br /><br />1) Let different implementation comes with different JAR file e.g. Reuters implementation comes with Reuters JAR, Bloomberg comes with bloomberg.jar and Wombat comes with there own JAR.<br /><br />2) Make them to implement MarketData interface as MarketDataImpl. Since all JAR Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-65405201741827349722013-03-10T10:04:58.531-07:002013-03-10T10:04:58.531-07:00Does Design patterns help in memory management?
C...Does Design patterns help in memory management? <br />Can someone explain on this?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-61160665222612587612013-02-12T01:26:56.368-08:002013-02-12T01:26:56.368-08:00How do we ensure an application is 100% available?...How do we ensure an application is 100% available? can someone answer this please?Anonymoushttps://www.blogger.com/profile/03928536425099268235noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-23562510416143811382012-12-17T04:08:37.675-08:002012-12-17T04:08:37.675-08:00Hi Javin,
Great job as always.
keep doing and hel...Hi Javin,<br /><br />Great job as always.<br />keep doing and helping people to clear there doubts and crack java interviews..<br /><br />God Bless You !!!!!!<br /><br />Best Regards,<br />Rajesh Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-68421992668178847312012-11-18T08:53:02.890-08:002012-11-18T08:53:02.890-08:00@Javin - Can you please share some detailed answer...@Javin - Can you please share some detailed answers or design for ATM machine example or Market data example?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-72515077624109301872012-11-14T22:49:21.728-08:002012-11-14T22:49:21.728-08:00Questions are good. But answers are very short. De...Questions are good. But answers are very short. Detailed explanation would help a lot. ThanksAnonymoushttps://www.blogger.com/profile/13250988792011182175noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-59961234063437105362012-10-08T23:24:02.843-07:002012-10-08T23:24:02.843-07:00One thing i want to high light here do you think t...One thing i want to high light here do you think this questions are from design pattern or Design consideration ????? I think design pattern is bit different?satyahttps://www.blogger.com/profile/17383860505990028511noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-21998532673277965312012-10-06T13:34:58.000-07:002012-10-06T13:34:58.000-07:00This comment has been removed by the author.satyahttps://www.blogger.com/profile/17383860505990028511noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-47474716547462346602012-09-17T21:32:32.023-07:002012-09-17T21:32:32.023-07:00Can anyone please share Java design pattern questi...Can anyone please share Java design pattern questions asked on Capegemini and Infosys interviews ?<br />Prabhatnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-45480588019687496732012-09-17T21:08:07.893-07:002012-09-17T21:08:07.893-07:00One of the best list of java design interview ques...One of the best list of java design interview questions and answers I found around web, Thanks for sharing this great list of Java design pattern interview questions and answers. I have 6 years experience in Java and found that many design pattern questions actually appeared in Senior Java interview. Once again thanks a lot.Java programmernoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-87252149973848267282012-07-06T10:48:52.680-07:002012-07-06T10:48:52.680-07:00You have a very good collection of questions on de...You have a very good collection of questions on design patterns Javin. I too have an article on interview questions on design patterns. <br /><br /><a href="http://inheritingjava.blogspot.sg/2011/05/j2ee-design-patterns-interview.html" rel="nofollow">Click Here</a> to see it. <br /><br />Pls, share your thoughts on the questions. <br /><br />AnandAnand Vijayakumarhttps://www.blogger.com/profile/04069290912727901147noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-52922216922449540522012-07-06T10:47:36.029-07:002012-07-06T10:47:36.029-07:00Javin & trgoofi
Actually speaking these days...Javin & trgoofi <br /><br />Actually speaking these days, the difference in performance between an Abstract class and an Interface could be negligible or non-existent. In the olden days this could've been true for the following reason:<br /><br />A Class can extend from only one parent class while it can implement multiple interface. Since at runtime the JVM may have to scan through Anand Vijayakumarhttps://www.blogger.com/profile/04069290912727901147noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-49954074992599645582012-06-05T21:26:40.702-07:002012-06-05T21:26:40.702-07:00design pattern questions are more popular on J2EE ...design pattern questions are more popular on J2EE interviews rather than in core Java interviews. Though decorator, Singleton, Factory are both applicable to Java and J2EE. J2EE specific patterns like MVC, ViewResolver patter, Front Controller patter, Service Locator are missing from your list of design pattern question. Question like How will you ensure Scalability, high avaibility should be Mikenoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-16555037408730830612012-06-05T05:25:18.119-07:002012-06-05T05:25:18.119-07:00Hi trgoofi, I have also read this somewhere, but I...Hi trgoofi, I have also read this somewhere, but I logic is that abstract class can still participate in <a href="http://javarevisited.blogspot.com/2012/03/what-is-static-and-dynamic-binding-in.html" rel="nofollow">static binding</a> by declaring static method but since interface can not have any method implementation all binding will be dynamic.I am still looking for more convincing and detailedJavin @ Sort List in javahttp://javarevisited.blogspot.com/2012/01/how-to-sort-arraylist-in-java-example.htmlnoreply@blogger.com