Wednesday 15 October 2014

HCL Interview Question and Answer


Hello Guys, Today I am going to give you good opportunity to crack Java / J2EE interview at HCL (Hindustan Computers Limited).
Please read this questions carefully.
Here some question might be tricky or logical
So Let us start.
  1. Tell me something about your self
  2. They may ask about projects on which you have worked
  3. What is Thread, what are the different way to create thread?
  4. Can I make run method as synchronized ?
  5. If I delete java.util package, and still I want to use List functionality, then how can I do it, give basic idea
  6. What is difference between Set, List and Map
  7. How to stop running thread ?
  8. Can interface have constructor ?
  9. Difference between Application Server and Web Server
  10. How to call super class method which is override by derived class using derived class Object?
  11. What is cluster server?
  12. If My application is deployed on multiple server and every server has their on cash, and now if one server update data in database and refresh their own cash, then what will be the value in another server cash ?
  13. How to resolve Cashing issue in load balanced server ?
  14. When does GC (Garbage Collector) call
  15. How to force system to call GC
  16. Can I run GC on some specific time (ie. everyday at 4:00 PM) ?
  17. What is the use of Lazy initialization in hibernate?

Tuesday 14 October 2014

TCS Interview Question and Answer


Hello Guys, Today I am going to give you good opportunity to crack Java / J2EE interview at TCS (Tata Consultancy Services).
Please read this questions carefully there are some tricky questions too, which might make you confuse.
Always remember there is nothing which you don't know about these questions.
So Let us start.
  1. Tell me something about yourself.
  2. On which projects you have worked
  3. What are the Frameworks you used
  4. Tell me something about String Object, explain
  5. What is the difference between following two lines (1 and 2)
    String x="abc";

    (1). "abc".equals(x);

    (2). x.equals("abc");

  6. What is the difference between sleep and wait method?
  7. What is abstract class?
  8. Does abstract class have constructor?
  9. How many ways to not allow class to be inherit to sub class?
  10. What is method overriding
  11. What is method overriding and overloading
  12. Difference between Stringbuffer and StringBuilder?
  13. What is checked and unchecked exception?
  14. Type of interface
  15. What is BlockingQueue?
  16. Difference between Set and List
  17. Which are two method of Object class override by Set to identify the uniqueness of an objects
  18. What are the classes of Struts?
  19. Which design pattern used by struts?
  20. How to show HQL query converted to SQL?
  21. What is advantage of using Hibernate