Cheers everyone. I have some interview question that is asked by interviewer oftens. Have a look on these questions and their answers from Google before going for interview.
Q:Is Java Compiler or Interpreter ?
Ans: Javac is compiler and JVM works as interpreter
Q:Static method and non static method difference?
Q:How java is platform independent?
Q:Airthmetic Progression Patterns: like 0 3 6 9 12 Write a Program for this progression.
Q: Write Program for: a file may have three word( its generated during run time by another thread) like sms,email, fax according to word create thread and perform the task.
Q: Write Program for a machine that can only receive 2,10,1,20,20,50,70 coins and can give you product for any price and machine should return denomination as above if price you give the machine is more than product price.
Q: Where use abstract class and where interface?
Q:Singleton Factory Class.
Q:How long variable works in 32 bit memory as long take 8 byte memory to work? Two threads works on 4 -4 byte.
Q. What is parent class of ArrayList?
Q:Having Clause in SQL Query?
Q: Find duplicate row in table?
Q:What is cursor, Stored Procedure and Function?
Q: annotation configuration in Spring.
Q: what is DI in Spring?
Q. For Flushing the Jsp what you will use? And How much byte you can flush on jsp?
Q: JSP Implicit Objects
Q:What is call back interfaces and callback methods
Q: Java 1.5 concurrency Locking
Q: Multithreading
Q: How annotation work internally? Create your custom annotation.
Q: Java memory model? Heap Stack? Where class object and method and variable reside in memory?
Q:How Transaction annotation works internally? If f1 f2 f3 are three methods and f1 commit some data to db and f2 coomit some data to db but f3 fails some where and f1,f2,f3 are in single transaction then how rollback will happen because if data commited then it won’t roll back.
Q:What is cohesion give me scenario and example where cohesion is used?
Q:deamon thread?
Q: What is the difference between Java and JavaScript?
Q: What is monitor or shimaphore in Thread?
Q: How to make sure threads are race condition free?
Q:What is authentication and authorization in spring give some implementation points.
Q: What is DI what is AOP and how u ? give some scenario where AOP should be use.
Q: MVC in spring 3.0
Q: Isolation levels in Spring.
Q: What is point cut and what about the static and dynamic Pointcut in Spring .
Q: What is the difference between Bean Factory and application context in spring .
Q: What are the main difference between Struts MVC and Spring MVC why we should use Spring MVC?
Q: how u get the request or session data in HTML page?
Q: What is lazy initialization of bean in Spring?
Q: What is proxy in hibernate?
Q: How many locks are present in Hibernate?
Q: What is inverse in Hbm.xml file in Hibernate?
Q: Hibernate Versioning when saving or updating data in database. When multiple JVM is there then how hibernate make Lock when saving data to database.
Q:What is eager and lazy loading in Hibernate?
Q: How you make sure your database data and Hibernate Session data should be in Sync.
Q: What is dirty checking in Hibernate.
Q: What is Lazy initialization Exception in Hibernate and tell the situation when it will occur in your application and what you will do to avoid this kind of situation.
Q: What is JPA and How it can be used with Hibernate?
Q: How can you make secure your Soap message when you will send or receive? Digital Certificate.
Q: How many types of Web Services are? What is your approach top to down or bottom to up?
Q: How you create Ajax request tell in detail and how you receive the success text from server and what are the checking parameter to get the success and failure of your request?
Q: How to avoid the cyclic dependency to create the objects if a need object of b to initialize itself and b need a to initialize itself?
Q: What is priority Queue? Which kind of object you can store in priority queue?
Q: What is class and Object?
Q: What are basic oops concepts?
Q: What is complexity when you are retrieving the elements from List and Linked List and While Traversing the element?
Q: Write down and your design and UML diagram of class when your are creating a shopping complex application?
Q: What is UML diagram or Class diagram?
Q: What is association aggregation and composition?
Q: Which kind of design pattern you use in your application and tell about them when and in which scenario you use them?
Q: What is template pattern? Observer and Observable ?
Q: How you create the Singletons ?How many types of singletons?
Q:Is Java Compiler or Interpreter ?
Ans: Javac is compiler and JVM works as interpreter
Q:Static method and non static method difference?
Q:How java is platform independent?
Q:Airthmetic Progression Patterns: like 0 3 6 9 12 Write a Program for this progression.
Q: Write Program for: a file may have three word( its generated during run time by another thread) like sms,email, fax according to word create thread and perform the task.
Q: Write Program for a machine that can only receive 2,10,1,20,20,50,70 coins and can give you product for any price and machine should return denomination as above if price you give the machine is more than product price.
Q: Where use abstract class and where interface?
Q:Singleton Factory Class.
Q:How long variable works in 32 bit memory as long take 8 byte memory to work? Two threads works on 4 -4 byte.
Q. What is parent class of ArrayList?
Q:Having Clause in SQL Query?
Q: Find duplicate row in table?
Q:What is cursor, Stored Procedure and Function?
Q: annotation configuration in Spring.
Q: what is DI in Spring?
Q. For Flushing the Jsp what you will use? And How much byte you can flush on jsp?
Q: JSP Implicit Objects
Q:What is call back interfaces and callback methods
Q: Java 1.5 concurrency Locking
Q: Multithreading
Q: How annotation work internally? Create your custom annotation.
Q: Java memory model? Heap Stack? Where class object and method and variable reside in memory?
Q:How Transaction annotation works internally? If f1 f2 f3 are three methods and f1 commit some data to db and f2 coomit some data to db but f3 fails some where and f1,f2,f3 are in single transaction then how rollback will happen because if data commited then it won’t roll back.
Q:What is cohesion give me scenario and example where cohesion is used?
Q:deamon thread?
Q: What is the difference between Java and JavaScript?
Q: What is monitor or shimaphore in Thread?
Q: How to make sure threads are race condition free?
Q:What is authentication and authorization in spring give some implementation points.
Q: What is DI what is AOP and how u ? give some scenario where AOP should be use.
Q: MVC in spring 3.0
Q: Isolation levels in Spring.
Q: What is point cut and what about the static and dynamic Pointcut in Spring .
Q: What is the difference between Bean Factory and application context in spring .
Q: What are the main difference between Struts MVC and Spring MVC why we should use Spring MVC?
Q: how u get the request or session data in HTML page?
Q: What is lazy initialization of bean in Spring?
Q: What is proxy in hibernate?
Q: How many locks are present in Hibernate?
Q: What is inverse in Hbm.xml file in Hibernate?
Q: Hibernate Versioning when saving or updating data in database. When multiple JVM is there then how hibernate make Lock when saving data to database.
Q:What is eager and lazy loading in Hibernate?
Q: How you make sure your database data and Hibernate Session data should be in Sync.
Q: What is dirty checking in Hibernate.
Q: What is Lazy initialization Exception in Hibernate and tell the situation when it will occur in your application and what you will do to avoid this kind of situation.
Q: What is JPA and How it can be used with Hibernate?
Q: How can you make secure your Soap message when you will send or receive? Digital Certificate.
Q: How many types of Web Services are? What is your approach top to down or bottom to up?
Q: How you create Ajax request tell in detail and how you receive the success text from server and what are the checking parameter to get the success and failure of your request?
Q: How to avoid the cyclic dependency to create the objects if a need object of b to initialize itself and b need a to initialize itself?
Q: What is priority Queue? Which kind of object you can store in priority queue?
Q: What is class and Object?
Q: What are basic oops concepts?
Q: What is complexity when you are retrieving the elements from List and Linked List and While Traversing the element?
Q: Write down and your design and UML diagram of class when your are creating a shopping complex application?
Q: What is UML diagram or Class diagram?
Q: What is association aggregation and composition?
Q: Which kind of design pattern you use in your application and tell about them when and in which scenario you use them?
Q: What is template pattern? Observer and Observable ?
Q: How you create the Singletons ?How many types of singletons?