Friday, April 2, 2010

Questions


Novell:-
How one servlet will interact with other servlet. What are the different ways on same tomcat and other tomcat.
How will you deal with the memory leak.
Explain HTTP request and what are the methods.
How will you debug HTTP request.
How will you improve the performance of the product.
You have a 10000 user session on a ServerA. That particular ServerA fails. You have to transfer them
to another serverB without disturbing them(Answer can be LoadBalancing\Benchmarking\Single Sign on\Sticky Session)
When you interact with the ProductManagement team.

Huwaei:-
Connection pool. : How will you increase the size of the connection pool.
What happens once max size of the pool is reached. Now suppose 5 threads are waiting
How it will serve them on first come first basis when connection become available.

Memory leak in java how will you debug.

Struts : whether u can pool the action class.
How u do unit testing in your project based on flow level and method level

How to do deployment in weblogic

What are the design patterns that you have used in your projects
What are the design patterns that struts uses.

Yahoo:-
Following are the questions asked that yahoo asked me
what is contract in HashTable
How will u implement your own hashTable.

When u will use statement and when prepared statement.when statement is beneficial over prepared statement and why.

Large file having large lines. They cann't be loaded in memory. How will u remove the duplicate line.
how will you implement the object-pool. If you have initialized the pool for 8 objects How will you
implement when 9th object is needed.
what is the internal implementation of HashMap.
Factory Design Pattern
When you will use comparable and when the comparator.
Whether you can store object in the HashMap Key. How then it will be used. Whether it will be compiled.


ECI Telecom:-
How u will upload\download a document from JSP.
How you will implement HTTPS
Certificate in HTTPS.
What is the common component in client and server in HTTPS.
How you will use cookies. When you will use cookies.
How u handle session
RequestDispatcher
How do u do UT(unit testing)
How do you debug
when you will use jsp over struts.
which authentication mechanism
which validation mechanism
When you will use javascript and when server side validation
JSF

Consona Software
Binary Search tree
Suppose you have a string "John Charles Bag"
it should be reversed as "nhoJ selrahC gab" Write code
How will you design traffic crossing System
How will you improve the performance of SQL
How project life cycle is handled in your organisation

small company
How to implement single sign on
How you add user roles to the user.

wipro:-
documentum:
Transaction in DFC
login tickets in DCTM

What is assignment and policy in Documentum.
What is dmr_content. Where it is stored.
what are the num of Session Manager per session
whether there is Referential integrity in the docbase
How one can improve the performance of DCTM at the client place.
code for BOF
single Sign on in DCTM
how to handle transactions in DFC
how to handle WorkFlow. Some code and some concepts
how to do login in wdk
what are the two ways of doing login

How to do Transaction in DFC;
How to handle single Sign on in DCTM. what login tickets in DCTM;
what are the num of Session Manager per session; it is one Session Manager per session.
whether there is Referential integrity in the docbase; probably referential integrity is there (need to be confirmed.need help.)
How one can improve the performance of DCTM at the client place.(LightWeightSysObject implementation; but interviewer are looking for something else in term of
Administration configuration as DCTM is already in the production they can't change to LightWeightSysObject. Look at dfc.properteis they have several entries for
caching and pooling)
code for BOF

how to handle transactions in DFC.We have transaction APIs in documentum. I will do it.
how to handle WorkFlow. Some code and some concepts
how to do login in wdk
what are the two ways of doing login(one way I know.For second way is silent login)
pssap;eiservices.
silent login:-; login ticket
sessionManager = client.newSessionManager();

IDfLoginInfo loginInfo = clientX.getLoginInfo();

loginInfo.setUser(sUser);
loginInfo.setPassword(sPassword);
loginInfo.setDomain(domain);
client.authenticate(sServerId, loginInfo);
sessionManager.setIdentity(sServerId, loginInfo);
if (sessionManager != null) {
session = sessionManager.getSession(sServerId);
LOG.debug("session=" + session);
}


Advanced search in wdk
customisation in wdk

Design Pattern:
Front controlller design pattern
decorator



How will you make the thread execute in the sequence. use join.
Singleton can be serialized. Then it will be two objects. How will you stop it.

Suppose there are two classes A and B. If A is calling B's method and B is down. Now A need to keep on retrying, How will you do that?


DB
find the duplicates with in the particular column. There is no primary key on the table.

Write stored procedure and sort the column which is having the last name. and return the first value. for mysql use top.

Expain the Join. What are the types of Join you have. Explain them using table structure. Give practical example.

1. What is program and Delivery mgmt
2. Your participation from very begining to end
3. Challenges
4. Conflict resolutions
5. Estimation technique ( Function Point)
6. Domain knowledge
7. general mgmt skills
8. Metrics mgmt
9. Reporting
10. PMP areas
11. People mgmt
What is scrum in the Agile. 

What is the DDL and DML
What is the function to replace null values.


How will you design high volume Application. Whether it will be asynchronous or synchronous?  How many DB server and Application server will be needed to handle multiple transaction? How connection pool are configured on the load balancing environment?

How do you manage session fail over?
How you manage high availability Application? Throw some light on hardware also.

Suppose any Client has 100 applications But now he want to deploy in one enterprise application. How will you do it.
Which application to be merged, whom are to be enhanced and whom need to be retired?

TOGAF certification

what is the difference between JDK 1.6 and JDK 1.7?

high volume transactions, cache, and persistence

64 comments:

  1. for cloning
    http://www.idevelopment.info/data/Programming/java/object_oriented_techniques/CloningExample.java

    ReplyDelete
  2. http://www.java2s.com/Code/Java/Language-Basics/Cloningacomposedobject.htm

    ReplyDelete
  3. for HTTPS
    http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html

    ReplyDelete
  4. NT Based Authentication only on LAN.
    LDAP based only on LAN. One password can be used for different Application for the same user in the same LAN.
    Basic Authentication & digest Authentication.
    Login : SSO/LDAP/login with token / login through serialized session/

    ReplyDelete
  5. Macfee
    How arguments are passed into methods.
    How will you design LRU(Least Recently Used object) these are used in cache.
    Explain Garbage collection algorithm in java.

    When you have used thread give example.
    call thread.start() two times. what will happen
    Explain notify & notufyAll()
    Explain lock on static method.
    What is Synochronised & concurrent HashMap
    Have you used Spring\Hibernate\AJAX\GWT
    String new or just String

    ReplyDelete
  6. node- 1
    2-3
    4 5-6
    7
    public int depth(Node )

    ReplyDelete
  7. ECI Telecom second Round:-
    Benefits of EJB container
    Message Bean
    session Bean/Entity Bean
    Transaction level.
    write code for depth of Binary tree.
    dead lock
    hash function
    Marker interfaces\serilization\Cloneable

    ReplyDelete
  8. You have oracle driver & JDBC driver which one you will use & why.

    JAXP APIs have the facility to switch from DOM Parser to SAX & vice versa. I have projects in which developers will keep on file having more than 200 MB size. Whether you will give them facility to switch to other parsers or just SAX . Explain why.

    JBBC APIs

    ReplyDelete
  9. You have oracle driver & JDBC driver which one you will use & why. Both oracle driver & JDBC driver are type 4 driver.

    JAXP APIs have the facility to switch from DOM Parser to SAX & vice versa. I have projects in which developers will keep on file having more than 200 MB size. Whether you will give them facility to switch to other parsers or just SAX . Explain why.

    JBBC APIs

    ReplyDelete
  10. DOcumentum:-
    Data migration
    what is the difference between 5.3 & 6.5 versions
    How Documentum types are entered in the table

    ReplyDelete
  11. How you will upload or download a file or image from jsp/servlet
    How will you show server Busy or Please wait page & when your first request finishes your processing then show them the final result page.
    How will you control the number of the users accessing your website.->you can implement session pool & there maxm number can be used.
    How will you do one transaction for different stateless session bean. Suppose stateless session one has some database interaction & is
    same with stateless session two & three. How will you roll them in one transaction

    ReplyDelete
  12. Fair Isaac:-

    What are the things that you need to take care in the code in the case of clustering .Such as How you will
    handle Singleton in the case of clustering. How will you handle the value that are set in the session in the case of clustering.


    Suppose you have to store the Person Object in the HashTable.
    How will you sort the person based on the title. (Here you need to tell how will you implement them using both comparable & comparator interface)
    Give implementation using both comparable & comparator interface.
    Collection.sort


    Expain Object level lock & class level lock in the case of threads.
    How will you call two syncronized methods of single class at the same time by 2 seperate threads.
    ->u need to use syncronised blocks without anything.


    Whether the servlets are thread safe
    Suppose you have some data structure in the servlet How will you make them thread safe.

    Give the example of marker interface.

    when you will change the version number in the serializable interface.

    How will u debug memory issues. Whether memory issues can occur due to other things.
    you can make heap size small in tomcat & the OOM issue can occur. catalina_opts -xms -XSS


    Explain the class loading by the JVM.

    Tell about dynamic loading of the class(class.forName)
    How will you invoke method here.

    Explain Factory design Pattern(Basically interviewer was looking for me to speak that all the classes implements the same interface)

    Explain DAO design pattern & Tell the Benifits
    One is it acts as the model & what is the second one.

    Suppose you are given to write your own garbage collector. How will you write.
    Explain data structure & design.

    what is the difference between servletContext & servletConfig

    what is the difference between forward & sendRedirect

    What is the difference between SAX & DOM parser & when you will use what.
    What is the xpath.

    What is the XSLT.

    Static include & dynamic include

    OboPay:-
    Explain how the collection APIs has been designed

    Why hibernate why not JDBC.
    How will you get all the employees above the age of 30 in the hibernate.
    Write the code from reading from file.
    Benifits of struts 2.1 over 1.2

    Draw class diagram for Decorated design pattern

    ////////////////////////////////////////////////////////
    To improve digestion you use harhar

    //////////////////////////////////////////////////////////////////////
    Wipro second round
    Documentum:-
    How will you improve the search in the documentum.->indexing/
    What has been done to speed up the download of the content->ACS/BOCS
    Explain BOCS
    How you will insert data in the custom tabale in the DCTM.
    How will you install content server on solaris.
    What are two ways to handle session in the wdk.
    How session is maintained in Documentum internally. How the files are divided in Application server & the database.

    ReplyDelete
  13. How you will insert data in the custom tabale in the DCTM. :->dar/custom.xml

    ReplyDelete
  14. How will you make your system more scalable & high available to boost the performance

    ReplyDelete
  15. what will you do to get more than one singleton in the same JVM.
    How will you make variable threadsafe without using Syncronisation

    I told if variable are initialised with in the method scope then it will be
    threadsafe.As each & every thread will have new variable. Interviewer looked to be satisfied.

    In loadbalancing How will you handle session. I told sticky session. Interviewer asked other than sticky session.

    Suppose your software consists of Application server & database etc. It is not responding.
    How will u debug.

    How will u increase the performance of your software.

    Different threads are accessing your application how you will come to know.

    how will u compile jsp in your ant.

    What are the different type of memory errors.


    Explain the static variable in terms of JVM


    what are the different ways to create database connections
    what is the datasource

    ReplyDelete
  16. Explain the life static variable in terms of JVM

    ReplyDelete
  17. Tcs documentum delivery Manager:
    TCS delivery manager position. Here are the questions asked on documentum

    1) How RPS work, can you explain end to end scenario of the business use case which uses RPS.
    2) There is a scenario which FileNet is used as ECM. How would you convince customer documentum has a added advantage over FileNet.
    3) how documentum help reducing effort for automating business process.
    Given Finance domain application use-case , how you come up with business activities. You can take simple example of Loan approving process can you identify different activities.
    4) Have you integrated any security model other than pre-defined one available in documentum.
    5) What are the annotation. How documentum annotations help in you business process.

    ReplyDelete
  18. http://www.careercup.com/page?pid=algorithm-interview-questions

    ReplyDelete
  19. HP:
    How will you call the finalize method

    Explian the classloader
    Have you ever written code to override the classloader.

    Explain Servlet in term of container. Why you need container.
    Why you need session.

    when you will use StringBuffer & when the String. Give an example.

    log4j setting:->for the same log4j setting should be that info & warn in should go one file & debug level in other log level.

    Suppose you have ticket booker & ticket canceller as threads. You have some datastructure as ticketCount which has got 100 tickets.
    When ticket booker books the ticket then ticketCount number goes down by 5. When ticket canceller cancels the ticket then
    ticketCount number goes up by 5. Write code.

    Write the code of stack
    Write the code for custom Exception.

    ReplyDelete
  20. Questions asked in HP/Cisco
    what is Restful Services
    Lazy fetching\loading in Hibernate
    What problem factory design pattern solve
    What problem Decorator design pattern solve
    How do you do load balancing
    what is JAXP
    How you do single sign on in any Application server
    How you will architect a product. What UML diagrams do you consider during the architecture of the product.

    When you will use state diagram & when interactive diagram.
    what is Aspect oriented programming
    what is jsessionid

    A a=new A();
    a=null;
    now new A() is the candidate for garbage collection. How Garbage collector will take care of this derefenced object. Please explain
    how garbage collector works internally.
    Draw class diagram for decorator design pattern. & write the code how it will be invoked.
    memory leak & OOM
    Memory allocation in the terms of == & equals in the String. How memeory is allocate at the heap or stack.
    Class A contains the reference of class B. How garbage collector will work here.
    Write a program to convert the string to Hexadecimal.
    What is the flyweight design pattern
    What is the composite design pattern
    what is written inside the Colloboration diagram box
    what is SOA.

    ReplyDelete
  21. when you will use setup method in junit.

    ReplyDelete
  22. Amazon:
    where in your project you have implemented the serialization.
    where in your project you have implemented the reflection APIs.Can you call the private method
    using the reflection APIs.
    fail path iterator
    concurrent Modification error
    How will you implement the equals method in the ArrayList.
    How you will get the smallest kth element in the Binary search tree

    ReplyDelete
  23. Accenture interview
    Explain the data model of documentum (dmsysobject)
    Explain the data model of wdk (webcomponent/wdk/webtop)
    what is the ichronicleid & how you will get parent versioned document when you have the multiple versions.
    How you will apply the acl to a document.
    How you will configure the action. & how will you call it.

    ReplyDelete
  24. Paragon Documentum interview questions:-
    What is the difference between dm_process & dm_workflow.
    tell a sample code for any documentum operation such as checkin etc.

    What are the different idfQuery attribute you pass while executing the query.
    col = q.execute(session, DfQuery.DF_READ_QUERY);

    How you will add multiple objects in a single object in the documentum.
    Explain the docbroker.
    explain the life cycle of the wdk component.
    Explain how you do configuration in the wdk.

    can single artifacts can be installed from docApp or dar.

    what is the qualifier

    How you will consume the webservices in the DFS

    ReplyDelete
  25. when you will use primitive datatype boolean & when you will use class Boolean

    ReplyDelete
  26. Disaster recovery System

    Proposal Document

    How you will decide with number of connection in the connection pool.

    ReplyDelete
  27. You write some particular number for connection in the properties file in the case of the connection pool. How you come on that particular number.

    ReplyDelete
  28. http://shekup.blogspot.com/2010/05/interview-questions-when-5-or-6-years.html

    ReplyDelete
  29. What are the architecture newsletter You have subscribed with

    ReplyDelete
  30. How do you say that the performance of your product is good.
    How u say that your work is complete
    Tell the different models of SDLC
    Risk Register in SDLC
    How you manage the risk.
    what challenges you have come across while managing the project
    conflict; Project management; client side
    what are the different project management cycle.
    What are the parammeters to manage the project for success or failure
    Project Triangle
    cost time & scope.
    what are the lifecycle of SDLC
    Requirement validation
    Requirement Signoff

    ReplyDelete
  31. Standard methodology for project estimation
    1. USe case 2. Function point
    How do you do risk estimation
    Tracibility matrix.->microsoft project plan to track
    critical path
    what is SLAG
    Qulaity standrads.
    cmm level definition.
    Team handling:- attached the senior guy to get him rammed up. frequently feedback.
    what is project management all about.managing customer & high quality product & people growth.

    various support level:-L1,L2,L3

    code control system:- starteam , perforce.
    RFP

    ReplyDelete
  32. what you do in BOF registry\Global registry.
    ->from 6.5 onwards user preferences are stored in Global registry
    earlier in cookies. needs to be verified.
    Load Balancing for the docbases.


    How to manage failover.
    Suppose your transaction has succeded After that some issue happned in
    App server, How will you take care. database can come in picture.

    What is agile methodology. In which projects agile methodology cann't be used.
    For finance project Agile cann't be used As some arcitecture of the product
    shuold go in advance.


    SSO implementation in LDAP configuration & web pages

    How the build & deployment have been taken care.

    ReplyDelete
  33. what are the requirement gathering methodology

    ReplyDelete
  34. Documentum
    What is difference between Role & Group
    Explain in terms of classes used

    What is the maximum & recomended level of hirerachy in the documentum.


    OnWhich of the object I need to set ACL. How to do it.

    What is Preset

    How you increase the performance of the product.
    :Reduce the redundant ACLs & queries. indexing of the Table with in the performance.
    Look into the log as dfc tracing & look into which queries took how much of time.

    ReplyDelete
  35. http://www.scribd.com/doc/5195326/PPT-on-SDLC-Models

    ReplyDelete
  36. Risk Mitigation
    turn around time
    Coding Standard
    AISLE
    Utilization
    training
    Projct inpovement plan
    Defect prevention plan
    Root cause analysis
    attrition


    Database fragmentation
    Day to Day activity in your project management.

    Poker implmentaion
    Scrum Master

    How you handle exception in mysql.

    ReplyDelete
  37. How you acheive High Availabilty for database.
    How you acheive Performance of DB.
    From SQL plan, you can see whether your index are used.
    Look into the trace to find that whether index is brequired. One can look into the cost.
    What is hash join.

    What is packages in Database.
    what is cursors in Database.
    what is synonyms. What are the benifits of having synonyms.
    What is the pseudo column. After creating the table some extra column are creates as rownum & rowid. What are they. whether value stored in them are unique.

    What is the session at the database.

    What is min-active, max-idle in hibernate.
    conjection & dejection

    ReplyDelete
  38. Explain Documentum Architecture
    What are the methods of Infrastructure planning
    How do you do Architecture
    How do you do effort estimate.
    What is stress testing & how do you do it.

    ReplyDelete
  39. Oracle
    Basic question of overloading & Overriding including static keyword, object etc.

    Binary search tree. Draw stack for print method.

    Suppose basic herarchy of class is there that includes interface,inheritence, variables etc. How these class will be loaded by the class loader. How stack will look like.

    You have following two string
    String s1="abcdef";
    String s2="dabcef";
    Write code to find that each character of s1 is present or not present in s2.

    ReplyDelete
  40. How DB session & Documentum Session are related

    ReplyDelete
  41. When Stack overflow in Java memory
    How recursion variables are allocated in stack in Java memory allocation.

    ReplyDelete
  42. What is the DDL & DML in DataBase
    What is the function to replace null values in DataBase

    ReplyDelete
  43. What is the need of reflection API?

    ReplyDelete
  44. Why ArrayList is faster than the LinkedList?
    Explain the usage of thread in your project. Finance domain might be a good example.
    How Arraylist is implemented inside Java?

    ReplyDelete
  45. Explian spring security API... What configuration needs to be done for integrating Spring with LDAP.

    ReplyDelete
  46. Liferay high volume transactions, cache, and persistence

    ReplyDelete
  47. How you implement security in Liferay.
    Thread time out API.
    applet listening on multiple port using thread via socket programming.
    Single sign-on in liferay
    Spring DB interaction
    Multiple ways that liferay interacts with DB
    What is the difference between load balancing & clustering
    How data is sync from one node to another node in the case of clustering
    Give some detailed examples of Hook & Ext in the Liferay.
    Give some example of AOP
    What do you mean by indexing in Liferay using Solar

    ReplyDelete
  48. What is two phase commit.
    Suppose you have to do transaction in the two different DB (mysql & oracle). How will you do it? Transaction should should either fail or pass.
    What is proxy design pattern.
    How do you do cascade delete in Hibernate.

    ReplyDelete
  49. What is the weak reference in the Java

    ReplyDelete
  50. What are the benefits of different design patterns

    ReplyDelete
  51. How to debug hibernate?
    Suppose, you have a Student entity to Department entity to certificates entity, all have many to many relationships. If student has to fetch certificates using lazy fetching then whether all the certificates will be fetched?
    What is the difference between LAZY and EAGER fetch?

    How will you debug hibernate?
    How to create criterion HQL to fetch a student with name?
    You have to fetch only few attributes of the student table not all? How will you do that using HQL criteria?
    What is the projection in spring?
    What are the different annotations in the Hibernate? Explain the @component annotation?
    Explain end to end Spring MVC .
    Several messages are posted to MQSeries in the form of XML. You need to consume it. What are the design patterns that come on your mind for this work?
    What is the difference in annotation based Spring or XML based Spring.

    Suppose at JMS queue several XMLs are coming, You have to read them what are the design patterns you will be using for this work?

    ReplyDelete
  52. spring transaction versus hibernate transaction
    Two transaction running on distributed DB.. If one fails then how you will manage others..
    Java 7 features such as asynchronous io versus non-blocking io.
    How hibernate session & spring session are related..
    How you will use Spring AOP for transaction management in the case of transaction failures..

    ReplyDelete
  53. spring session versus hibernate session

    ReplyDelete
  54. What are the different types dependency injection in Spring..
    Can JSP be called from the servlet
    In which scenarios you will use servlets as views.
    How to improve the performance of the product in terms of software & hardware..

    ReplyDelete
  55. Difference between the StringBuffer & the StringBuilder
    How would 'prototype' scope bean can be called from 'Singleton' scope bean
    How to accept only XML for the request & only JSON for the response in Spring MVC.
    What is the difference between Strong, soft, weak & phantom reference
    What is the content negotiation manager
    How to design Asynchronous Servlet
    When to choose RESTful & SOAP based services
    Different elements in the WSDL file

    ReplyDelete

  56. • Which version of Java have you worked on? Which is the latest version of java you used/
    • difference b/w sterilization and externalization in java
    • Have you worked on threads before
    • Do you know the difference between the wait and sleep.
    • Can you make a constructor as final?
    • Have you worked on a singleton pattern.
    • How do you make a singleton thread safe?
    • How do you make a hash map thread safe.
    • What design pattern does spring bean follow ?
    • Have you used annotations within spring.
    • do you know how the hash map works internally.
    • When do you static modifier.
    • How many years’ experience do you have on oracle DB ?
    • do you know the difference between different joins. can you give me the difference between these joins.
    • if a query is taking lot of time .. how do you troubleshoot it...What tools do you use to analyse it and how do understand where the delays are
    • Have you ever used explain plan to analyses a query ?
    • Have you ever worked on indexes.

    Have you worked on externalisation
    Immutable Object
    Have you worked on Java patterns
    Static keyword means
    Do you have good knowledge on Spring


    1. How Hashmap is working.
    2. If two different keys have he same hash code how get work in Hashmap 3. In REST what is the difference between PUT and POST 4. A table does not have any primary key. It has duplicate records. Write a query to delete the duplicate records.
    5. Given first name and dad of birth of an Employee. How you will implement the hash code method

    ReplyDelete
  57. 1. SSL between app server and couchbase.
    2. XDCR uses SSL between couchbase and elasticsearch
    3. Couchbase cluster uses SSL

    ReplyDelete
  58. What is the different type of Hibernate caching. How they work?
    How session-manager interacts with the Hibernate caching

    When you will use constructor based inject & when method based injection.

    Few questions related to the Maven.
    What changes in the Maven you will do so that it stops downloading the file for spring deployment.

    ReplyDelete
  59. There are price comparison sites such as yatra.com, junglee.com. Assume the other sites have not given any web service or APIs.
    How free text search or long sentence search happens.
    What is inverted index
    How will you take care of the occurrences of particular words in the document
    Thick vs. Thin Client Applications

    ReplyDelete