aspose file tools*
The moose likes Jobs Discussion and the fly likes Need scenario based  interview questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Careers » Jobs Discussion
Bookmark "Need scenario based  interview questions" Watch "Need scenario based  interview questions" New topic
Author

Need scenario based interview questions

raj malhotra
Ranch Hand

Joined: Feb 22, 2007
Posts: 285
Hi I am a j2ee developer with 4 year of experience.I want to prepare for interview.Does anyone knows scenario based java/j2ee/database interview questions on the internet?please provide me the pointer if any body knows.

Thanks
Raj
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
Shouldn't your 4 years of experience have prepared you for most questions you are likely to encounter? Assuming you were truthful in stating your qualifications, you shouldn't get too many questions that are outside of your area of expertise. And those that are, well, you can't fake those convincingly anyway.


Ping & DNS - my free Android networking tools app
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

Originally posted by raj malhotra:
Hi I am a j2ee developer with 4 year of experience.I want to prepare for interview.Does anyone knows scenario based java/j2ee/database interview questions on the internet?please provide me the pointer if any body knows.

Thanks
Raj


You should'd be asking this when you claim that you are 4+ years experienced.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
I have a friend with 10 years of experience who turns to me for interview help. She's been wit one company since college and while very competent in her job, is a little uncertain and insecure when it comes to interviews.

Someone may be a competent developer, but may not be comfortable or experienced in interviews and may be looking for information before interviewing.

--Mark
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3223
I agree with Mark. It is always a good idea to prepare prior to an interview.

Some accomplish great results in their career, but fail to communicate that effectively in their resumes (i.e. so called quiet achievers) and interviews, whilst others have accomplished ordinary results, but make an effort to communicate that more effectively to stand out from their competition



Reflect back on your 4 year experience and list down your accomplishments using SAR (Situation Action Result) statements. Here is an extracted example


Q Give me an example of a time when you set a goal and were able to achieve it? Give me an example of a time you showed initiatiative and took the lead? Tell me about a difficult decision you made in the last year? Give me an example of a time you motivated others? Tell me about a most complex project you were involved in?

A :
Situation: When you were working for the ZCC Software Technology Corporation, the overnight batch process called the �Data Pacakager� was developed for a large fast food chain which has over 100 stores. This overnight batch process is responsible for performing a very database intensive search and compute changes like cost of ingredients, selling price, new menu item etc made in various retail stores and package those changes into XML files and send those XML data to the respective stores where they get uploaded into their point of sale registers to reflect the changes. This batch process had been used for the past two years, but since then the number of stores had increased and so did the size of the data in the database. The batch process, which used to take 6-8 hours to complete, had increased to 14-16 hours, which obviously started to adversely affect the daily operations of these stores. The management assigned you with the task of improving the performance of the batch process to 5-6 hours (i.e. suppose to be an overnight process).

Action: After having analyzed the existing design and code for the �Data Packager�, you had to take the difficult decision to let the management know that this batch process needed to be re-designed and re-written as opposed to modifying the existing code, since it was poorly designed. It is hard to extend, maintain (i.e. making a change in one place can break the code some where else and so on) and had no object reuse through caching (makes too many unnecessary network trips to the database) etc. The management was not too impressed with this approach and concerned about the time required to rewrite this batch process since the management had promised the retail stores to provide a solution within 8-12 weeks. You took the initiative and used your persuasive skills to convince the management that you would be able to provide a re-designed and re-written solution within the 8-12 weeks with the assistance of 2-3 additional developers and two testers. You were entrusted with the task to rewrite the batch process and you set your goal to complete the task in 8 weeks. You decided to build the software iteratively by building individual vertical slices as opposed to the big bang waterfall approach [Refer subsection �Enterprise � Software development process� in Enterprise � Java section]. You redesigned and wrote the code for a typical use case from end to end (i.e. full vertical slice) within 2 weeks and subsequently carried out functional and integration testing to iron out any unforeseen errors or issues. Once the first iteration is stable, you effectively communicated the architecture to the management and to your fellow developers. Motivated and mentored your fellow developers to build the other iterations, based on the first iteration. At the end of iteration, it was tested by the testers, while the developers moved on to the next iteration.

Results: After having enthusiastically worked to your plan with hard work, dedication and teamwork, you were able to have the 90% of the functionality completed in 9 weeks and spent the next 3 weeks fixing bugs, tuning performance and coding rest of the functionality. The fully functional data packager was completed in 12 weeks and took only 3-4 hours to package XML data for all the stores. The team was under pressure at times but you made them believe that it is more of a challenge as opposed to think of it as a stressful situation. The newly designed data packager was also easier to maintain and extend. The management was impressed with the outcome and rewarded the team with an outstanding achievement award. The performance of the newly developed data packager was further improved by 20% by tuning the database (i.e. partitioning the tables, indexing etc).



This approach is not only useful at interviews, but also helps immensely to write outstanding resumes. For example



Situation: Java code that is hard to maintain and reuse. Changes to one module may break another module.

Action:Refactored the code with OO concepts and design patterns in a test driven manner.

Result:The application becomes easier to maintain, extend, and reuse.

You can now construct the sentence as shown below:
  • Re-architected, refactored, and performance tuned a Websphere and JEE based online insurance application, which previously came down almost daily, became a true 24x7 application.


  • Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
    jerry vn
    Greenhorn

    Joined: Jun 30, 2010
    Posts: 8
    arulk pillai wrote:I agree with Mark. It is always a good idea to prepare prior to an interview.

    Some accomplish great results in their career, but fail to communicate that effectively in their resumes (i.e. so called quiet achievers) and interviews, whilst others have accomplished ordinary results, but make an effort to communicate that more effectively to stand out from their competition



    Reflect back on your 4 year experience and list down your accomplishments using SAR (Situation Action Result) statements. Here is an extracted example


    Q Give me an example of a time when you set a goal and were able to achieve it? Give me an example of a time you showed initiatiative and took the lead? Tell me about a difficult decision you made in the last year? Give me an example of a time you motivated others? Tell me about a most complex project you were involved in?

    A :
    Situation: When you were working for the ZCC Software Technology Corporation, the overnight batch process called the �Data Pacakager� was developed for a large fast food chain which has over 100 stores. This overnight batch process is responsible for performing a very database intensive search and compute changes like cost of ingredients, selling price, new menu item etc made in various retail stores and package those changes into XML files and send those XML data to the respective stores where they get uploaded into their point of sale registers to reflect the changes. This batch process had been used for the past two years, but since then the number of stores had increased and so did the size of the data in the database. The batch process, which used to take 6-8 hours to complete, had increased to 14-16 hours, which obviously started to adversely affect the daily operations of these stores. The management assigned you with the task of improving the performance of the batch process to 5-6 hours (i.e. suppose to be an overnight process).

    Action: After having analyzed the existing design and code for the �Data Packager�, you had to take the difficult decision to let the management know that this batch process needed to be re-designed and re-written as opposed to modifying the existing code, since it was poorly designed. It is hard to extend, maintain (i.e. making a change in one place can break the code some where else and so on) and had no object reuse through caching (makes too many unnecessary network trips to the database) etc. The management was not too impressed with this approach and concerned about the time required to rewrite this batch process since the management had promised the retail stores to provide a solution within 8-12 weeks. You took the initiative and used your persuasive skills to convince the management that you would be able to provide a re-designed and re-written solution within the 8-12 weeks with the assistance of 2-3 additional developers and two testers. You were entrusted with the task to rewrite the batch process and you set your goal to complete the task in 8 weeks. You decided to build the software iteratively by building individual vertical slices as opposed to the big bang waterfall approach [Refer subsection �Enterprise � Software development process� in Enterprise � Java section]. You redesigned and wrote the code for a typical use case from end to end (i.e. full vertical slice) within 2 weeks and subsequently carried out functional and integration testing to iron out any unforeseen errors or issues. Once the first iteration is stable, you effectively communicated the architecture to the management and to your fellow developers. Motivated and mentored your fellow developers to build the other iterations, based on the first iteration. At the end of iteration, it was tested by the testers, while the developers moved on to the next iteration.

    Results: After having enthusiastically worked to your plan with hard work, dedication and teamwork, you were able to have the 90% of the functionality completed in 9 weeks and spent the next 3 weeks fixing bugs, tuning performance and coding rest of the functionality. The fully functional data packager was completed in 12 weeks and took only 3-4 hours to package XML data for all the stores. The team was under pressure at times but you made them believe that it is more of a challenge as opposed to think of it as a stressful situation. The newly designed data packager was also easier to maintain and extend. The management was impressed with the outcome and rewarded the team with an outstanding achievement award. The performance of the newly developed data packager was further improved by 20% by tuning the database (i.e. partitioning the tables, indexing etc).



    This approach is not only useful at interviews, but also helps immensely to write outstanding resumes. For example



    Situation: Java code that is hard to maintain and reuse. Changes to one module may break another module.

    Action:Refactored the code with OO concepts and design patterns in a test driven manner.

    Result:The application becomes easier to maintain, extend, and reuse.

    You can now construct the sentence as shown below:
  • Re-architected, refactored, and performance tuned a Websphere and JEE based online insurance application, which previously came down almost daily, became a true 24x7 application.



  • Hi,

    I do not agreed with you. Any way, your ideal make me thinking about some thing for my project.

    Please try to keep posting. Tks and best regards
    Manikandan Swaminathan
    Ranch Hand

    Joined: Aug 10, 2008
    Posts: 117
    You say that you have been a developer for the past 4 years.. That should be very easy for you to clear scenario based interview
    questions unless otherwise you fake your experience (Working as a tester.. and faking as developer) which i hope is not the case with you.. Considering myself who has been in production support for the past 4 years, i myself dont find very tough while attending interviews if one has done enough ground work. Also, you can google for scenario based interview questions

    Also,remember there is nothing in the internet like a master repository of scenario based Java/J2ee interview questions (Maybe you can create one if you want , no offence intended) which is going to be asked by the interviewer. So prepare yourself well and be confident in your skills and not to forget the communication and the presentation skills which are equally important.

    All the best
    jerry vn
    Greenhorn

    Joined: Jun 30, 2010
    Posts: 8
    jerry vn wrote:
    arulk pillai wrote:



    Results: After having enthusiastically worked to your plan with hard work, dedication and teamwork, you were able to have the 90% of the functionality completed in 9 weeks and spent the next 3 weeks fixing bugs, tuning performance and coding rest of the functionality. The fully functional data packager was completed in 12 weeks and took only 3-4 hours to package XML data for all the stores. The team was under pressure at times but you made them believe that it is more of a challenge as opposed to think of it as a stressful situation. The newly designed data packager was also easier to maintain and extend. The management was impressed with the outcome and rewarded the team with an outstanding achievement award. The performance of the newly developed data packager was further improved by 20% by tuning the database (i.e. partitioning the tables, indexing etc).



    This approach is not only useful at interviews, but also helps immensely to write outstanding resumes. For example



    Situation: Java code that is hard to maintain and reuse. Changes to one module may break another module.

    Action:Refactored the code with OO concepts and design patterns in a test driven manner.

    Result:The application becomes easier to maintain, extend, and reuse.

    You can now construct the sentence as shown below:
  • Re-architected, refactored, and performance tuned a Websphere and JEE based online insurance application, which previously came down almost daily, became a true 24x7 application.



  • Hi,

    I do not agreed with you. Any way, your ideal make me thinking about some thing for my project.

    Please try to keep posting. Tks and best regards


    Apart from that, this link below may be useful: Building interview questions
    Henry Wong
    author
    Sheriff

    Joined: Sep 28, 2004
    Posts: 18896
        
      40

    "jerry vn",

    You have been warned numerously about your screen name. Please comply prior to your next post, or your account will be locked.

    Henry


    Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Need scenario based interview questions