Hibernate Interview Questions And Answers For Experienced

75 Hibernate Interview Questions And Answers For Experienced 2018. Here in this post coding compiler presenting a list of 75 advanced hibernate interview questions for freshers, 1 year experience, 2 years experience, 3 year experience, 4 year experience, 5 year experience.

Hibernate Interview Questions

Hibernate Interview Questions For Freshers

Question # 1 What is hibernate in java?

Answer #  Hibernate ORM (Hibernate in short) is an object-relational mapping tool for the Java programming language. It provides a framework for mapping an object-oriented domain model to a relational database. Hibernate also provides data query and retrieval facilities.

Question # 2 Is hibernate better than JDBC?

Answer # JDBC will always give better performance as compared to Hibernate for most of the database vendors. … The choice of hibernate over jdbc and sql queries is not because of the performance but because of reasons mainly object persistence and database independence in terms of not writing database specific queries.

Question # 3 Why do we need hibernate in Java?

Answer # So with JDBC, mapping between Java objects and database tables is done manually. Hibernate reduces lines of code by maintaining object-table mapping itself and returns result to application in form of Java objects. Hibernate, with Transparent Persistence, cache is set to application work space.

Question # 4 What is the use of ORM in Java?

Answer # ORM allows you to use java objects as representation of a relational database. It maps the two concepts (object-oriented and relational) Hibernate is an ORM framework – you describe how your objects are represented in your database, and hibernate handles the conversion.

Question # 5 What is the difference between JPA and Hibernate?

Answer # JPA is the interface, Hibernate is one implementation of that interface. JPA is a specification for accessing, persisting and managing the data between Java objects and the relational database. As the definition says its API, it is only the specification. Hibernate is a JPA provider.

Hibernate Interview Questions And Answers

Question # 6 What is the use of Session in hibernate?

Answer # The main runtime interface between a Java application and Hibernate. This is the central API class abstracting the notion of a persistence service. The lifecycle of a Session is bounded by the beginning and end of a logical transaction. (Long transactions might span several database transactions.)

Question # 7 What is the architecture of hibernate?

Answer # Hibernate makes use of the database and configuration data to provide persistence services (and persistent objects) to the application.

Question # 8 What is ORM hibernate?

Answer # Hibernate ORM (Hibernate in short) is an object-relational mapping tool for the Java programming language. It provides a framework for mapping an object-oriented domain model to a relational database.

Question # 9 Can we use only JPA without hibernate?

Answer # You have to specify the persistence provider(Hibernate,EclipseLink) in order to use the JPA implementation. The persistence providers have the implementaion classes for JPA specifications. You can’t just use JPA, cause it is an API =), but there are plenty JPA implementations: EclipseLink.

Question # 10 What are the fetching strategies supported by hibernate?

Answer # Fetch strategies can be declared in the O/R mapping metadata, or over-ridden by a particular HQL or Criteria query. Hibernate defines the following fetching strategies:

  1. Join fetching
  2. Select fetching
  3. Subselect fetching
  4. Batch fetching
  5. Immediate fetching
  6. Lazy collection fetching
  7. “Extra-lazy” collection fetching
  8. Proxy fetching
  9. “No-proxy” fetching
  10. Lazy attribute fetching

Hibernate Interview Questions For Experienced

Question # 11 What is a polymorphic association?

Answer # Polymorphic association is a term used in discussions of Object-Relational Mapping with respect to the problem of representing in the relational database domain, a relationship from one class to multiple classes. In statically typed languages such as Java these multiple classes are subclasses of the same superclass.

Question # 12 What is the difference between session and Sessionfactory in hibernate?

Answer # SessionFactory is Hibernate’s concept of a single datastore and is threadsafe so that many threads can access it concurrently and request for sessions and immutable cache of compiled mappings for a single database. Sessions are opened by a SessionFactory and then are closed when all work is complete.

Question # 13 What is the difference between load and get method in hibernate?

Answer # Session.load(): It will always return a “proxy” (Hibernate term) without hitting the database. In Hibernate, proxy is an object with the given identifier value, its properties are not initialized yet, it just look like a temporary fake object. If no row found , it will throws an ObjectNotFoundException.

Question # 14 Is hibernate Sessionfactory Singleton?

Answer # SessionFactory is also thread safe so only one thread can execute at a time its code. The instance of sessionFactory is heavyweighted because it contains connection, hibernate configuration, mapping files, location path so if you create number of instance of sessionFactory then your code becomes very heavy.

Question # 15 What are the configuration files in hibernate?

Answer # Hibernate also requires a set of configuration settings related to database and other related parameters. All such information is usually supplied as a standard Java properties file called hibernate.properties, or as an XML file named hibernate.cfg.xml.

Hibernate Interview Questions And Answers For Experienced

Questions # 16 What is the use of dialect in hibernate?

Answer # Dialect means “the variant of a language”. Hibernate, as we know, is database agnostic. It can work with different databases. However, databases have proprietary extensions/native SQL variations, and set/sub-set of SQL standard implementations. Therefore at some point hibernate has to use database specific SQL.

Question # 17 What is the use of Show_sql in hibernate?

Answer # Hibernate has build-in a function to enable the logging of all the generated SQL statements to the console. You can enable it by add a “show_sql” property in the Hibernate configuration file “ hibernate.cfg.xml “. This function is good for basic troubleshooting, and to see what’s Hibernate is doing behind.

Question # 18 What is hibernate proxy and how it helps in lazy loading?

Answer # A proxy is a subclass implemented at runtime. Hibernate creates a proxy (a subclass of the class being fetched) instead of querying the database directly, and this proxy will load the “real” object from the database whenever one of its methods is called.

Question # 19 Is session is thread safe in hibernate?

Answer # SessionFactory is Hibernates concept of a single datastore and is threadsafe so that many threads can access it concurrently and request for sessions and immutable cache of compiled mappings for a single database. Why to make session object thread safe if we already have a SessionFactory(immutable) object.

Hibernate Interview Questions And Answers For 2 Years Experience

Question # 20 What is the use of configuration in hibernate?

Answer # The org.hibernate.cfg.Configuration is used to build an immutable org.hibernate.SessionFactory . The mappings are compiled from various XML mapping files. A org.hibernate.cfg.Configuration also allows you to specify configuration properties.

Question # 21 What is criteria in hibernate?

Answer # In Hibernate, the Criteria API helps us build criteria query objects dynamically. Criteria is a another technique of data retrieval apart from HQL and native SQL queries. The primary advantage of the Criteria API is that it is intuitively designed to manipulate data without using any hard-coded SQL statements.

Question # 22 What is the difference between lazy and eager loading in hibernate?

Answer # All data is fetched when eager marked data in the object when session is connected. However, in case of lazy loading strategy, lazy loading marked object does not retrieve data if session is disconnected (after session.close() statement). All that can be made by hibernate proxy.

Question # 23 Is Sessionfactory immutable?

Answer # The internal state of a SessionFactory is immutable. Most problems with concurrency occur due to sharing of objects with mutable state. Once the object is immutable, its internal state is setted on creation and cannot be changed. So many threads can access it concurrently and request for sessions.

Question # 24 Is Hibernate configuration file mandatory?

Answer # Basically you are setting all the required properties via your properties object so there is no real need to tell Hibernate to look for a hibernate.cfg.xml file which is exactly what the configure() method does. No, it’s not mandatory to use hibernate.cfg.xml. Just don’t use .configure().

Question # 25 What is meant by annotation in hibernate?

Answer # Hibernate annotations are the newest way to define mappings without the use of XML file. You can use annotations in addition to or as a replacement of XML mapping metadata. Hibernate Annotations is the powerful way to provide the metadata for the Object and Relational Table mapping.

Hibernate Interview Questions And Answers For Experienced In Java

Question # 26 What does hibernate.hbm2ddl.auto create means?

Answer # hibernate.hbm2ddl.auto. Automatically validates or exports schema DDL to the database when the SessionFactory is created. With create-drop , the database schema will be dropped when the SessionFactory is closed explicitly.

Question # 27 What is the meaning of persistence in hibernate?

Answer # When a POJO instance is in session scope, it is said to be persistent i.e hibernate detects any changes made to that object and synchronizes it with database when we close or flush the session. And about hibernate.properties and XML Mapping.

Question # 28 How does Hibernate proxy work?

Answer # When a method is invoked on the object, Hibernate will fetch the data from the column and populate the object. This is the proxy mechanism. To add this new behavior (the loading of the data when a method is invoked), Hibernate will create a dynamic subclass of Person using CGLib and add the desired functionality.

Question # 29 What is first level cache in hibernate?

Answer # First level cache is associated with “session” object. The scope of cache objects is of session. First level cache is enabled by default and you can not disable it. When we query an entity first time, it is retrieved from database and stored in first level cache associated with hibernate session.

Question # 30 What is the use of Session in hibernate?

Answer # The main runtime interface between a Java application and Hibernate. This is the central API class abstracting the notion of a persistence service. The lifecycle of a Session is bounded by the beginning and end of a logical transaction. (Long transactions might span several database transactions.)

Hibernate Interview Questions And Answers For 3 Years Experience

Question # 31 What is lazy fetching in Hibernate?

Answer # Lazy fetching decides whether to load child objects while loading the Parent Object. You need to do this setting respective hibernate mapping file of the parent class. Lazy = true (means not to load child) By default the lazy loading of the child objects is true.

Question # 32 What is an SQL dialect?

Answer # SQL Dialect. The SQL dialect, derived from the Structured Query Language, uses human-readable expressions to define query statements. Use a SQL query statement with the following ADSI search interfaces: The ActiveX Data Object (ADO) interfaces, which are Automation interfaces that use OLE DB.

Question # 33 What is in HQL?

Answer # Hibernate Query Language (HQL) is an object-oriented query language, similar to SQL, but instead of operating on tables and columns, HQL works with persistent objects and their properties. HQL queries are translated by Hibernate into conventional SQL queries, which in turns perform action on database.

Question # 34 What is the use of projection in hibernate?

Answer # To put it simple, Hibernate Projections are used in order to query only a subset of the attributes of an entity or group of entities you’re querying with Criteria. You can also use Projections to specify distinct clauses and aggregate functions like max , sum and so on. Like modifying the select clause in an SQL query.

Question # 35 What is Lazyinitializationexception in hibernate?

Answer # Indicates access to unfetched data outside of a session context. For example, when an uninitialized proxy or collection is accessed after the session was closed.

Question # 36 What are the different cascade types in hibernate?

Answer #
JPA EntityManager action  – JPA CascadeType  –  Hibernate native Session action – Hibernate native CascadeTypedetach(entity)       DETACH  evict(entity)   DETACH or EVICT merge(entity)                     MERGE               merge(entity)              MERGEpersist(entity)                            PERSIST               persist(entity)            PERSISTrefresh(entity)                            REFRESH               refresh(entity)          REFRESHremove(entity)                            REMOVE               delete(entity)            REMOVE or DELETE                                                               saveOrUpdate(entity)                       SAVE_UPDATE                                                           replicate(entity, replicationMode)      REPLICATElock(entity, lockModeType)     buildLockRequest(entity, lockOptions)  LOCK

Question # 37 What is the use of Show_sql in hibernate?

Answer # Hibernate has build-in a function to enable the logging of all the generated SQL statements to the console. You can enable it by add a “show_sql” property in the Hibernate configuration file “ hibernate.cfg.xml “.

This function is good for basic troubleshooting, and to see what’s Hibernate is doing behind.

Question # 38 What is hbm2ddl in hibernate?

Answer # hibernate.hbm2ddl.auto Automatically validates or exports schema DDL to the database when the SessionFactory is created. With create-drop, the database schema will be dropped when the SessionFactory is closed explicitly.

Question # 39 What is the use of dialect in hibernate?

Answer # Dialect means “the variant of a language”. Hibernate, as we know, is database agnostic. It can work with different databases. However, databases have proprietary extensions/native SQL variations, and set/sub-set of SQL standard implementations. Therefore at some point hibernate has to use database specific SQL.

Question # 40 Can I disable first level cache in hibernate?

Answer # The scope of cache objects is of session. Once session is closed, cached objects are gone forever. First level cache is enabled by default and you can not disable it. When we query an entity first time, it is retrieved from database and stored in first level cache associated with hibernate session.

Hibernate Interview Questions And Answers For 4 Years Experience

Question # 41 What is criteria in hibernate?

Answer # In Hibernate, the Criteria API helps us build criteria query objects dynamically. Criteria is a another technique of data retrieval apart from HQL and native SQL queries. The primary advantage of the Criteria API is that it is intuitively designed to manipulate data without using any hard-coded SQL statements.

Question # 42 Which one is faster JDBC or hibernate?

Answer # JDBC will always give better performance as compared to Hibernate for most of the database vendors. The choice of hibernate over jdbc and sql queries is not because of the performance but because of reasons mainly object persistence and database independence in terms of not writing database specific queries.

Question # 43 What is the use of bag in hibernate?

Answer # Hibernate Bag is a java collection that stores elements without caring about the sequencing, but allow duplicate elements in the list. A bag is a random grouping of the objects in the list.

Question # 44 What is the use of Mappedby in hibernate?

Answer # With the mappedBy , you directly tell Hibernate/JPA that one table owns the relationship, and therefore it is stored as a column of that table. Without, the relationship is external and Hibernate/JPA need to create another table to store the relationship.

Question # 45 What is inverse true in hibernate?

Answer # The real meaning is that it defines which side is the parent or the relationship owner for the two entities (parent or child). Hence, inverse=”true” in a Hibernate mapping shows that this class (the one with this XML definition) is the relationship owner; while the other class is the child.

Question # 46 What is a bidirectional relationship?

Answer # Bidirectional Relationships. In a bidirectional relationship, each entity has a relationship field or property that refers to the other entity. Through the relationship field or property, an entity class’s code can access its related object.

Question # 47 What is the dirty checking in hibernate?

Answer # Hibernate allows dirty checking feature.All persistent objects are monitored by hibernate.it detects which objects have been modified and then calls update statements on all updated objects.the process of updating the changed object is called automatic dirty checking.

Question # 48 What are the important interfaces in hibernate?

Answer #
Session InterfaceSession Factory InterfaceConfiguration InterfaceTransaction InterfaceQuery and Criteria Interface

Question # 49 What is hibernate mapping file?

Answer # The mapping document is an XML document having <hibernate-mapping> as the root element, which contains all the <class> elements. The <class> elements are used to define specific mappings from a Java classes to the database tables.

Question # 50 What is difference between openSession() and getCurrentSession()?

Answer # If you set hibernate.current_session_context_class to thread and then implement something like a servlet filter that opens the session – then you can access that session anywhere else by using the SessionFactory.getCurrentSession().

SessionFactory.openSession() always opens a new session that you have to close once you are done with the operations.

SessionFactory.getCurrentSession() returns a session bound to a context – you don’t need to close this.

Hibernate Interview Questions And Answers For 5 Years Experience

Question # 51 What is difference between Session get() and load() method in Hibernate?

Answer #
Session.load() – It will always return a “proxy” (Hibernate  term) without hitting the database. In Hibernate, proxy is an object  with the given identifier value, its properties are not initialized yet,  it just look like a temporary fake object. If no row found , it will throws an ObjectNotFoundException.

Session.get() – It always hit the database and return the real object, an object that represent the database row, not proxy.If no row found , it return null.

Question # 52 What are different states of an entity bean in Hybernate?

Answer # The Entity bean has three states:
TransientPersistentDetached

Transient: When ever we create a new object of Entity bean then we can say that is in Transient state,At that time any modification in the object state does not effect on database.

Persistent: When ever the Object of entity bean associated with session we can say that is in persistent state, if any change in the object state , then that modification effects in database.

Detached :When ever the object is removed from session then it enters in to detached state.Any modification on detached state object , does not effect in database.

Question # 53 Difference between hibernate session merge() vs update()?

Answer # Hibernate handles persisting any changes to objects in the session when the session is flushed. update can fail if an instance of the object is already in the session. Merge should be used in that case. It merges the changes of the detached object with an object in the session, if it exists.

Question # 54 Difference between save() and saveorupdate() in hibernate?

Answer # The important difference between the org.hibernate.Session class methods, save & saveOrUpdate is, save generates a new identifier and results in an INSERT query, whereas saveOrUpdate does an INSERT or an UPDATE. Save method stores an object into the database.

Question # 55 What is the difference between save() and persist() in hibernate?

Answer # persist() – Hibernate persist is similar to save (with transaction) and it adds the entity object to the persistent context, so any further changes are tracked. If the object properties are changed before the transaction is committed or session is flushed, it will also be saved into database.

persist() also guarantees that it will not execute an INSERT statement if it is called outside of transaction boundaries. This is useful in long-running conversations with an extended Session/persistence context.

save() does not guarantee the same, it returns an identifier, and if an INSERT has to be executed to get the identifier (e.g. “identity” generator, not “sequence”), this INSERT happens immediately, no matter if you are inside or outside of a transaction. This is not good in a long-running conversation with an extended Session/persistence context.

Hibernate Tricky Interview Questions For Experienced

Question # 56 What are the collection types in Hibernate?

Answer # Hibernate collections types are:
java.util.List.java.util.Set.java.util.SortedSet.java.util.Map.java.util.SortedMap.java.util.Collection.or write the implementation of org.hibernate.usertype.UserCollectionType.

Question # 57 How to implement Joins in Hibernate?

Answer # Using HQL we can implement joins in hibernate.
HQL Joins – HQL supports inner join, left outer join, right outer join and full join. For example, select e.name, a.city from Employee e INNER JOIN e.address a . In this query, Employee class should have a variable named address.

Question # 58 What is Named SQL Query?

Answer # A named query is a SQL expression represented as a table. In a named query, you can specify an SQL expression to select rows and columns returned from one or more tables in one or more data sources.

Question # 59 What is Hibernate Criteria API?

Answer # In Hibernate, the Criteria API helps us build criteria query objects dynamically. Criteria is a another technique of data retrieval apart from HQL and native SQL queries. The primary advantage of the Criteria API is that it is intuitively designed to manipulate data without using any hard-coded SQL statements.

Question # 60 What are callback interfaces in hibernate?

Answer # Callback interface for Hibernate code. To be used with HibernateTemplate ‘s execution methods, often as anonymous classes within a method implementation. The typical implementation will call Session.load/find/update to perform some operations on persistent objects.

Hibernate Tough Interview Questions And Answers For Experienced

Question # 61 What is transaction management in hibernate?

Answer # In a non-managed environment, Hibernate is usually responsible for its own database connection pool. The application developer has to manually set transaction boundaries (begin, commit, or rollback database transactions) themselves.

Question # 62 What are the mapping associations used in hibernate?

Answer # There are two mapping associations used in hibernate, they are:
1) One-to-One Association2) Many-to-Many Association

Question # 63 What is Hibernate QBC API?

Answer # Hibernate Query By Criteria (QBC) API is used to create queries by manipulation of criteria objects at runtime.

Question # 64 What is hibernate criteria join?

Answer # Hibernate Criteria JOIN API allows users to perform join operation.
Suppose you have to perform a operation like
SELECT S.*, C.* FROM STUDENT S, CONTACT  C WHERE S.ROLL_NO=C.ID;
Then you can write this statement using Criteria join in a very simple way
Criteria criteria = session.createCriteria(Student.class);criteria.setFetchMode(“Contact”, FetchMode.JOIN);List list = criteria.list();

Question # 65 What is the is the default transaction factory in hibernate?

Answer # JDBCTransactionFactory is the default transaction factory in hibernate.

Hibernate Real Time Interview Questions And Answers For Experienced

Question # 66 What is JMX in Hybernate?

Answer # Java Management Extensions (JMX) is a Java technology that supplies tools for managing and monitoring applications, system objects, devices (such as printers) and service-oriented networks. Those resources are represented by objects called MBeans (for Managed Bean).

Question # 67 How to bind hibernate session factory to JNDI?

Answer # When binding the SessionFactory to JNDI, Hibernate will use the values of hibernate.jndi.url , hibernate.jndi.class to instantiate an initial context.

Question # 68 What are the fetching strategies in hibernate?

Answer # There are four fetching strategies

1. fetch-“join” = Disable the lazy loading, always load all the collections and entities.

2. fetch-“select” (default) = Lazy load all the collections and entities.

3. batch-size=”N” = Fetching up to ‘N’ collections or entities, *Not record*.

4. fetch-“subselect” = Group its collection into a sub select statement.

Question # 69 What are derived properties in hibernate?

Answer # In Hibernate a derived property (also called a calculated property) is a read-only property whose value is calculated at fetch time using SQL expressions.

Question # 70 What is version property in hibernate?

Answer # The <version> property (or @Version annotation) – We know that that Hibernate can provide optimistic locking through a version property on your persistent objects. Furthermore, the version property is automatically managed by Hibernate.

Advanced Hibernate Interview Questions And Answers For Experienced

Question # 71 What does session lock () method do in hibernate?

Answer # The lock() method, with LockOptions.NONE, can be used to associate a detached object to a session and put the object back into a persistence context. On top is Hibernate code to reattach a detached object using a typical update method call. On the bottom is code to reattach a detached object using a lock method call.

Question # 72 What does evict do in hibernate?

Answer # evict() To detach the object from session cache, hibernate provides evict() method. After detaching the object from the session, any change to object will not be persisted. The associated objects will also be detached if the association is mapped with cascade=”evict”.

Question # 73 What is implicit polymorphism in hibernate?

Answer # Implicit polymorphism means if a class or interface is used in HQL, criteria or named queries, hibernate fetches the records from the table mapped to the used class along with all the tables mapped to its subclasses, at any hierarchy level. This is one of the great advantage for using hibernate.

Question # 74 What is table per concrete class in hibernate?

Answer # When we use Table Per Concrete class in hibernate, tables are created per class. So there are no nullable values in the table. Disadvantage of this approach is that duplicate columns are created in the subclass tables.

Question # 75 What is light object mapping in hibernate?

Answer # Light Object Mapping is one of the levels of ORM quality in which all entities are represented as classes and they are mapped manually in the Relational Tables.

The code is hidden from the business logic by implementing specific design patterns. In this Light Object Mapping in Hibernate is one of the valuable levels of ORM quality that approach for successful application which having less number of entities, or for common applications, Metadata and driven data models.

RELATED INTERVIEW QUESTIONS

  1. ASP.NET Interview Questions
  2. PHP Interview Questions
  3. Kubernetes Interview Questions
  4. Docker Interview Questions
  5. CEH Interview Questions
  6. CyberArk Interview Questions
  7. Appian Interview Questions
  8. Drools Interview Questions
  9. Talend Interview Questions
  10. Selenium Interview Questions
  11. Ab Initio Interview Questions
  12. AB Testing Interview Questions
  13. Mobile Application Testing Interview Questions
  14. Pega Interview Questions
  15. UI Developer Interview Questions
  16. Tableau Interview Questions
  17. SAP ABAP Interview Questions
  18. Reactjs Interview Questions
  19. UiPath Interview Questions
  20. Automation Anywhere Interview Questions
  21. RPA Interview Questions
  22. RPA Blue Prism Interview Questions
  23. Ranorex Interview Questions
  24. AWS Interview Questions
  25. SSRS Interview Questions
  26. SQL Interview Questions
  27. Informatica MDM Interview Questions
  28. CyberArk Interview Questions
  29. SAP SD Interview Questions
  30. SAP EWM Interview Questions

581 Advanced Java Interview Questions For 5 8 10 Years Experienced

Advanced Java Interview Questions. Coding compilers collected list of 581 adv java interview questions for freshers to experienced developers.

This list of interview questions includes, java interview questions for experienced professionals, java scenario based interview questions, java interview questions for 3 years experience, java interview questions for 5 years experience, java interview questions for 8 years experience and java j2ee interview questions for 10 years experience.

We are sure that after going through these advanced java interview questions, you will be in a position to handle any java job interview. Happy learning.!

Advanced Java Interview Questions

Which Containers Use A Border Layout As Their Default Layout?
Why Do Threads Block On I/o?
How Are Observer And Observable Used?
What Is Synchronization And Why Is It Important?
Can A Lock Be Acquired On A Class?
What’s New With The Stop(), Suspend() And Resume() Methods In Jdk 1.2?
Is Null A Keyword?
What Is The Preferred Size Of A Component?
What Method Is Used To Specify A Container’s Layout?
Which Containers Use A Flowlayout As Their Default Layout?
What State Does A Thread Enter When It Terminates Its Processing?
What Is The Collections Api?
Which Characters May Be Used As The Second Character Of An Identifier, But Not As The First Character Of An Identifier?
What Is The List Interface?
How Does Java Handle Integer Overflows And Underflows?
What Is The Vector Class?
What Modifiers May Be Used With An Inner Class That Is A Member Of An Outer Class?
What Is An Iterator Interface?
What Is The Difference Between The >> And >>> Operators?
Which Method Of The Component Class Is Used To Set The Position And Size Of A Component?
What Is The Difference Between Yielding And Sleeping?
Which Java.util Classes And Interfaces Support Event Handling?
Is Sizeof A Keyword?
What Are Wrapped Classes?
Does Garbage Collection Guarantee That A Program Will Not Run Out Of Memory?
What Restrictions Are Placed On The Location Of A Package Statement Within A Source Code File?
Can An Object’s Finalize() Method Be Invoked While It Is Reachable?
What Is The Immediate Superclass Of The Applet Class?
What Is The Difference Between Preemptive Scheduling And Time Slicing?
Name Three Component Subclasses That Support Painting.
What Value Does Readline() Return When It Has Reached The End Of A File?

Java interview questions for experienced professionals

What Is The Immediate Superclass Of The Dialog Class?
What Is Clipping?
What Is A Native Method?
Can A For Statement Loop Indefinitely?
What Are Order Of Precedence And Associativity, And How Are They Used?
When A Thread Blocks On I/o, What State Does It Enter?
To What Value Is A Variable Of The String Type Automatically Initialized?
What Is The Catch Or Declare Rule For Method Declarations?
What Is The Difference Between A Menuitem And A Checkboxmenuitem?
What Is A Task’s Priority And How Is It Used In Scheduling?
What Class Is The Top Of The Awt Event Hierarchy?
When A Thread Is Created And Started, What Is Its Initial State?
Can An Anonymous Class Be Declared As Implementing An Interface And Extending A Class?
What Is The Immediate Superclass Of Menu?
What Is The Purpose Of Finalization?
Which Class Is The Immediate Superclass Of The Menucomponent Class?
What Invokes A Thread’s Run() Method?
What Is The Difference Between The Boolean & Operator And The && Operator?
Name Three Subclasses Of The Component Class.
What Is The Gregoriancalendar Class?
Which Container Method Is Used To Cause A Container To Be Laid Out And Redisplayed?
What Is The Purpose Of The Runtime Class?
How Many Times May An Object’s Finalize() Method Be Invoked By The Garbage Collector?
What Is The Purpose Of The Finally Clause Of A Try-catch-finally Statement?
What Is The Argument Type Of A Program’s Main() Method?
Which Java Operator Is Right Associative?
Can A Double Value Be Cast To A Byte?
What Must A Class Do To Implement An Interface?
What Method Is Invoked To Cause An Object To Begin Executing As A Separate Thread?
Name Two Subclasses Of The Textcomponent Class.
Which Containers May Have A Menubar?
How Are Commas Used In The Intialization And Iteration Parts Of A For Statement?
What Is The Purpose Of The Wait(), Notify(), And Notifyall() Methods?
What Is An Abstract Method?
How Are Java Source Code Files Named?
What Is The Relationship Between The Canvas Class And The Graphics Class?
What Are The High-level Thread States?
What Value Does Read() Return When It Has Reached The End Of A File?
Can A Byte Object Be Cast To A Double Value?
What Is The Difference Between A Static And A Non-static Inner Class?
What Is The Difference Between The String And Stringbuffer Classes?
If A Variable Is Declared As Private, Where May The Variable Be Accessed?
What Is An Object’s Lock And Which Object’s Have Locks?
What Is The Dictionary Class?
How Are The Elements Of A Borderlayout Organized?
What Is The % Operator?
When Can An Object Reference Be Cast To An Interface Reference?
What Is The Difference Between A Window And A Frame?
Which Class Is Extended By All Other Classes?
Can An Object Be Garbage Collected While It Is Still Reachable?
Is The Ternary Operator Written X : Y ? Z Or X ? Y : Z ?
What Is The Difference Between The Font And Fontmetrics Classes?
How Is Rounding Performed Under Integer Division?
What Happens When A Thread Cannot Acquire A Lock On An Object?
What Is The Difference Between The Reader/writer Class Hierarchy And The Inputstream/outputstream Class Hierarchy?
What Classes Of Exceptions May Be Caught By A Catch Clause?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What Is The Simpletimezone Class?
What Is The Map Interface?
Does A Class Inherit The Constructors Of Its Superclass?
For Which Statements Does It Make Sense To Use A Label?
What Is The Purpose Of The System Class?
Which Textcomponent Method Is Used To Set A Textcomponent To The Read-only State?
How Are The Elements Of A Cardlayout Organized?
Is &&= A Valid Java Operator?
Name The Eight Primitive Java Types.
Which Class Should You Use To Obtain Design Information About An Object?
What Is The Relationship Between Clipping And Repainting?
Is “abc” A Primitive Value?
What Is The Relationship Between An Event-listener Interface And An Event-adapter Class?
What Restrictions Are Placed On The Values Of Each Case Of A Switch Statement?
What Modifiers May Be Used With An Interface Declaration?
Is A Class A Subclass Of Itself?
What Is The Highest-level Event Class Of The Event-delegation Model?
What Event Results From The Clicking Of A Button?
How Can A Gui Component Handle Its Own Events?
How Are The Elements Of A Gridbaglayout Organized?
What Advantage Do Java’s Layout Managers Provide Over Traditional Windowing Systems?
What Is The Collection Interface?
What Modifiers Can Be Used With A Local Inner Class?
What Is The Difference Between Static And Non-static Variables?
What Is The Difference Between The Paint() And Repaint() Methods?
What Is The Purpose Of The File Class?
Can An Exception Be Rethrown?
Which Math Method Is Used To Calculate The Absolute Value Of A Number?
How Does Multithreading Take Place On A Computer With A Single Cpu?
When Does The Compiler Supply A Default Constructor For A Class?
When Is The Finally Clause Of A Try-catch-finally Statement Executed?
Which Class Is The Immediate Superclass Of The Container Class?
If A Method Is Declared As Protected, Where May The Method Be Accessed?
How Can The Checkbox Class Be Used To Create A Radio Button?
Which Non-unicode Letter Characters May Be Used As The First Character Of An Identifier?
What Restrictions Are Placed On Method Overloading?
What Happens When You Invoke A Thread’s Interrupt Method While It Is Sleeping Or Waiting?
What Is Casting?
What Is The Return Type Of A Program’s Main() Method?
Name Four Container Classes.
What Is The Difference Between A Choice And A List?
What Class Of Exceptions Are Generated By The Java Run-time System?
What Class Allows You To Read Objects Directly From A Stream?
What Is The Difference Between A Field Variable And A Local Variable?
Under What Conditions Is An Object’s Finalize() Method Invoked By The Garbage Collector?
What Is The Relationship Between A Method’s Throws Clause And The Exceptions That Can Be Thrown During The Method’s Execution?
What Is The Difference Between The Jdk 1.02 Event Model And The Event-delegation Model Introduced With Jdk 1.1?
How Is It Possible For Two String Objects With Identical Values Not To Be Equal Under The == Operator?
Why Are The Methods Of The Math Class Static?
What Checkbox Method Allows You To Tell If A Checkbox Is Checked?
What State Is A Thread In When It Is Executing?
What Are The Legal Operands Of The Instanceof Operator?
What An I/o Filter?
If An Object Is Garbage Collected, Can It Become Reachable Again?

Java scenario based interview questions

What Is The Set Interface?
What Classes Of Exceptions May Be Thrown By A Throw Statement?
What Are E And Pi?
Are True And False Keywords?
What Is A Void Return Type?
What Is The Purpose Of The Enableevents() Method?
What Is The Difference Between The File And Randomaccessfile Classes?
What Happens When You Add A Double Value To A String?
What Is Your Platform’s Default Character Encoding?
Which Package Is Always Imported By Default?
What Interface Must An Object Implement Before It Can Be Written To A Stream As An Object?
How Are This And Super Used?
What Is A Compilation Unit?
What Interface Is Extended By Awt Event Listeners?
What Restrictions Are Placed On Method Overriding?
How Can A Dead Thread Be Restarted?
What Happens If An Exception Is Not Caught?
What Is A Layout Manager?
Which Arithmetic Operations Can Result In The Throwing Of An Arithmeticexception?
What Are Three Ways In Which A Thread Can Enter The Waiting State?
Can An Abstract Class Be Final?
What Is The Resourcebundle Class?
What Happens If A Try-catch-finally Statement Does Not Have A Catch Clause To Handle An Exception That Is Thrown Within The Body Of The Try Statement?
What Is Numeric Promotion?
What Is The Difference Between A Scrollbar And A Scrollpane?
What Is The Difference Between A Public And A Non-public Class?
To What Value Is A Variable Of The Boolean Type Automatically Initialized?
Can Try Statements Be Nested?
What Is The Difference Between The Prefix And Postfix Forms Of The ++ Operator?
What Is The Purpose Of A Statement Block?
What Is A Java Package And How Is It Used?
What Modifiers May Be Used With A Top-level Class?
What Are The Object And Class Classes Used For?
How Does A Try Statement Determine Which Catch Clause Should Be Used To Handle An Exception?
Can An Unreachable Object Become Reachable Again?
When Is An Object Subject To Garbage Collection?
What Method Must Be Implemented By All Threads?
What Methods Are Used To Get And Set The Text Label Displayed By A Button Object?
Which Component Subclass Is Used For Drawing And Painting?
What Are Synchronized Methods And Synchronized Statements?
What Are The Two Basic Ways In Which Classes That Can Be Run As Threads May Be Defined?
What Are The Problems Faced By Java Programmers Who Don’t Use Layout Managers?
What’s Java Swing?
What Is Jfc?
What Is Awt?
What Are The Differences Between Swing And Awt?
What Are Heavy Weight Components ?
What Is Lightweight Component?
What Is Double Buffering ?
What Is An Event In Swing?
What Is An Event Handler In Swing?
Give Us The Name Of The List Layoutmanagers In Java?
Difference B/w Paint() And Paintcomponent()?
What Is The Relationship B/w The Canvas Class And The Graphics Class?
When Should The Method Invokelater() Be Used?
What Is A Convertor?
What Is The Difference Between Jfc & Wfc?
What Is Struts?
How Is The Mvc Design Pattern Used In Struts Framework?
Who Makes The Struts?
Why It Called Struts?
Do We Need To Pay The Struts If Being Used In Commercial Purpose?
What Are The Core Classes Of Struts?
What Is The Design Role Played By Struts?
How Struts Control Data Flow?
What Configuration Files Are Used In Struts?
What Helpers In The Form Of Jsp Pages Are Provided In Struts Framework?
Is Struts Efficient?
How You Will Enable Front-end Validation Based On The Xml In Validation.xml?
What Is Actionservlet?
How You Will Make Available Any Message Resources Definitions File To The Struts Framework Environment?
What Is Action Class?
Write Code Of Any Action Class?
What Is Actionform?

Java interview questions for 3 years experience

What Is Struts Validator Framework?
Give The Details Of Xml Files Used In Validator Framework?
Why Do We Need Struts?
How Does Struts Work?
Is Struts Compatible With Other Java Technologies?
Who Wrote Struts?
Why Is It Called Struts?
Do I Have To Credit Struts On My Own Website?
Where Can I Get A Copy Of Struts?
How Do I Install Struts?
When Do I Need “struts.jar” On My Classpath?
Does Struts Include Its Own Unit Tests?
If The Framework Doesn’t Do What I Want, Can I Request That A Feature Be Added?
Where Can I Get Help With Struts?
What’s The Difference Between Struts And Turbine? What’s The Difference Between Struts And Espresso?
Why Aren’t The Struts Tags Maintained As Part Of The Jakarta Taglibs Project ?
Are The Struts Tags Xhtml Compliant ?
Will The Struts Tags Support Other Markup Languages Such As Wml ?
What About Jstl And Javaserver Faces ?
Is There A Particularly Good Ide To Use With Struts?
Why Was Reload Removed From Struts (since 1.1)?
What Is A Modular Application? What Does Module-relative Mean?
Why Are Some Of The Class And Element Names Counter-intuitive?
Why Is Actionform A Base Class Rather Than An Interface?
Do Actionforms Have To Be True Javabeans?
Can I Use Multiple Html Form Elements With The Same Name?
Why Doesn’t The Focus Feature On The Tag Work In Every Circumstance?
Why Are My Checkboxes Not Being Set From On To Off?
Can’t I Just Create Some Of My Javabeans In The Jsp Using A Scriptlet?
Can I Use Javascript To Submit A Form?
How Can I Scroll Through List Of Pages Like The Search Results In Google?
Why Do The Struts Tags Provide For So Little Formatting?
Why Does The Tag Url-encode Javascript And Mailto Links?
Why Does The Option Tag Render Selected=selected Instead Of Just Selected?
Do I Have To Use Jsps With My Application?
Can I Have An Action Without A Form?
Can You Give Me A Simple Example Of Using The Requiredif Validator Rule?
When Is The Best Time To Validate Input?
How Can I Avoid Validating A Form Before Data Is Entered?
Declarative Exception Handling
What Is Hibernate?
What Is Orm?
What Does An Orm Solution Comprises Of?
What Are The Different Levels Of Orm Quality?
What Is A Pure Relational Orm?
What Is A Meant By Light Object Mapping?
What Is A Meant By Medium Object Mapping?
What Is Meant By Full Object Mapping?
What Are The Benefits Of Orm And Hibernate?
How Does Hibernate Code Looks Like?
What Is A Hibernate Xml Mapping Document And How Does It Look Like?
What The Core Interfaces Are Of Hibernate Framework?
What Are Callback Interfaces?
What Are Extension Interfaces?
What Are The Extension Interfaces That Are There In Hibernate?
What Are Different Environments To Configure Hibernate?
What Is The File Extension You Use For Hibernate Mapping File?
What Do You Create A Sessionfactory?
What Is Meant By Method Chaining?
What Does Hibernate.properties File Consist Of?
What Should Sessionfactory Be Placed So That It Can Be Easily Accessed?
What Are Pojos?
What Is Object/relational Mapping Metadata?
What Is Hql?
What Is Attribute Oriented Programming?
What Are The Different Methods Of Identifying An Object?
What Are The Different Approaches To Represent An Inheritance Hierarchy?
What Are Managed Associations And Hibernate Associations?
Why Do You Need Orm Tool Like Hibernate?
What Are The Main Advantages Of Orm Like Hibernate?
What Are The Core Interfaces Of Hibernate Framework?
What Is A Hibernatetemplate?
What Are The Benefits Of Hibernatetemplate?
What Is Hibernate Proxy?
Explain The Types Of Hibernate Instance States.
What Are Collection Types In Hibernate?
What Is Lazy Initialization In Hibernate?
What Is Lazy Fetching In Hibernate?
What Is The Difference Between Sorted And Ordered Collection In Hibernate?
Explain The Advantages And Disadvantages Of Detached Objects.
What Is Hibernate Query Language (hql)?
Explain The General Flow Of Hibernate Communication With Rdbms.
Explain The Role Of Session Interface In Hibernate.
State The Role Of Sessionfactory Interface Plays In Hibernate.
What Is The Difference Between Merge And Update?
What Is The Advantage Of Hibernate Over Jdbc?
Why Hibernate Is Advantageous Over Entity Beans & Jdbc?
Explain The Main Difference Between Entity Beans And Hibernate.
Explain The Difference Between Hibernate And Spring.
How Will You Configure Hibernate?
What Is A Sessionfactory? Is It A Thread-safe Object?
What Is A Session? Can You Share A Session Object Between Different Theads?
What Are The Benefits Of Detached Objects?
What Are The Pros And Cons Of Detached Objects?
How Does Hibernate Distinguish Between Transient (i.e. Newly Instantiated) And Detached Objects?
What Is The Difference Between The Session.get() Method And The Session.load() Method?
What Is The Difference Between The Session.update() Method And The Session.lock() Method?
How Would You Reatach Detached Objects To A Session When The Same Object Has Already Been Loaded Into The Session?
What Are The General Considerations Or Best Practices For Defining Your Hibernate Persistent Classes?
How Will You Communicate Between Two Applets?
How Do You Communicate In Between Applets And Servlets?
What Is An Applet? Should Applets Have Constructors?
How Will You Initialize An Applet?
How To Insert Your Applets Into Frontpage?
In Our Urls And In The Text Of The Buttons We Have Comma. Its Causing An Error. Is There A Way To Change The Delimiting Character For The Menu Arguments?
What Is The Order Of Method Invocation In An Applet?
What Are The Applets Life Cycle Methods? Explain Them?
What Is The Sequence For Calling The Methods By Awt For Applets?
How Do Applets Differ From Applications?
Can We Pass Parameters To An Applet From Html Page To An Applet? How?
How Do We Read Number Information From My Applets Parameters, Given That Applets Getparameter() Method Returns A String?
How Can I Arrange For Different Applets On A Web Page To Communicate With Each Other?
How Do I Select A Url From My Applet And Send The Browser To That Page?
Can Applets On Different Pages Communicate With Each Other?
Which Classes And Interfaces Does Applet Class Consists?
What Is Appletstub Interface?
What Are The Applets Information Methods?
What Are The Steps Involved In Applet Development?
Which Method Is Used To Output A String To An Applet? Which Function Is This Method Included In?
When Is Update Method Called?

Java interview questions for 5 years experience

What Is A Message Driven Bean, What Functions Does A Message Driven Bean Have And How Do They Work In Collaboration With Jms?
How Does Concurrency Work For Message-driven Beans?
What Is The Difference Between Message Driven Beans And Stateless Session Beans?
What Is Message Driven Beam?
What Is Session Bean. What Are The Various Types Of Session Bean?
What Is The Difference Between Stateful Session Bean And Stateless Session Bean
What Are The Call Back Methods In Session Bean?
When You Will Chose Stateful Session Bean And Stateless Session Bean
What Is The Relationship Between Enterprise Javabeans And Javabeans?
How To Implement A Bound Property In Your Bean Application?
How And When Will The Javabeans Migration Assistant To Activex Be Available?
Why Would A Developer Need The Javabeans Migration Assistant For Activex?
Can Javabeans Use Dcom As Its Network Model?
Can Both Java Applets And Javabeans Components Use The Infobus?
Javabeans Has Mechanisms Like Bound Properties For Data Transfer Between Components. Why Is The Infobus Necessary?
Is Infobus Easy To Use?
Does The Infobus Compete With Javabeans?
What Is The Infobus?
What Are/is Enterprise Javabeans?
Who Is Developing The Javabeans Migration Assistant To Activex?
Why Is The Javabeans Bridge For Activex Only Available On Windows/x86?
What Is The Relation Between The Infobus And Rmi?
Difference Between Java Beans And Enterprise Java Beans?
Is The Infobus Client Side Only?
Will The General Public Have Access To The Infobus Apis?
How Does The Infobus Relate To Javabeans?
What Is Glasgow?
How To Create Bound Property In Bean Application?
What Is The Serializable Class In Java Beans?
How To Control Serialization In Java Beans?
What Is Introspection Properties In Java Beans?
What Are Introspection Api In Java Beans?
What Is Bean Customization?
What Is Ejb Container?
What Is Ejb Context?
What Is Ejb Home Object?
What Is Ejb Object?
What Is Entity Bean?
What Is Ejb Server?
What Is Enterprise Information System?
What Is Enterprise Javabeans?
What Is Enterprise Javabeans Query Language?
What Is Enterprise Bean Provider?
What Is An Entity?
What Is Entity Reference?
What Are The Security Implications For Downloading Beans Over The Internet?
Why Do I Get A Duplicate Name Error When Loading A Jar File?
What Is The Relationship Between Sun S Jfcs And Javabeans?
Are There Javabeans Components Available That I Can Buy Today?
What Kind Of Industry Support Exists For Javabeans?
Why A Component Architecture For The Java Platform?
Is Javabeans A Complete Component Architecture?
Why Are Component Architectures Useful?
What Is A Bean? Why Is Not A Bean An Applet?
Difference Between Java Bean And Bean?
Write A Simple Bean Program?
What Is Property Editor In Java Beans?
What Are The Purpose Of Introspection?
What Are Externizable Interface?
What Is Bean Persistance Property?
Why Do I Get A Nullpointerexception When Loading A Jar File Into The Beanbox?
What Are Java Beans?
What Are The Different Kinds Of Enterprise Beans?
What Are The Methods Of Entity Bean?what Is The Difference Between Container-managed Persistent (cmp) Bean And Bean-managed Persistent(bmp) ?
What Is Software Architecture Of Ejb?
Can Entity Beans Have No Create() Methods?
What Is Bean Managed Transaction?
What Are Transaction Attributes?
What Are Transaction Isolation Levels In Ejb?
How Ejb Invocation Happens?
Is It Possible To Share An Httpsession Between A Jsp And Ejb? What Happens When I Change A Value In The Httpsession From Inside An Ejb?
The Ejb Container Implements The Ejbhome And Ejbobject Classes. For Every Request From A Unique Client, Does The Container Create A Separate Instance Of The Generated Ejbhome And Ejbobject Classes?
Can The Primary Key In The Entity Bean Be A Java Primitive Type Such As Int?
Can You Control When Passivation Occurs?
What Is The Advantage Of Using Entity Bean For Database Operations, Over Directly Using Jdbc Api To Do Database Operations? When Would I Use One Over The Other?
What Is Ejb Ql?
Brief Description About Local Interfaces?
What Are The Special Design Care That Must Be Taken When You Work With Local Interfaces?
What Happens If Remove( ) Is Never Invoked On A Session Bean?
How Can I Call One Ejb From Inside Of Another Ejb?
What Is An Ejb Context?
What Are The Two Important Tcp Socket Classes?
What Technologies Are Included In J2ee?
What Is The Difference Between Ejb And Java Beans?

Java interview questions for 8 years experience

What Is Ejb Role In J2ee?
Tell Me Something About Local Interfaces.
What Is Enterprise Javabeans (ejb) Container?
What Is In-memory Replication?
What Is Ripple Effect?
What Is A Clone?
What Are The Types Of Scaling?
What Is A Server Group?
What Is The New Basic Requirement For A Cmp Entity Bean Class In 2.0 From That Of Ejb 1.1?
What’s New In The Ejb 2.0 Specification?
How Can I Access Ejb From Asp?
What Is The Relationship Between Local Interfaces And Container-managed Relationships?
What Is Ejbdoclet?
What Is The Difference Between Session And Entity Beans?
Is It Legal To Have Static Initializer Blocks In Ejb?
What Are Local Interfaces? Describe.
What Is Difference Between Ejb 1.1 And Ejb 2.0?
What Is The Difference Between Ejbcreate() And Ejbpostcreate?
Can I Map More Than One Table In A Cmp?
Is Decorator An Ejb Design Pattern?
What Is The Difference Between Ear, Jar And War File?
What Is Re-entrant. Is Session Beans Reentrant. Is Entity Beans Reentrant?
How Many Ejb Objects Are Created For A Bean?
What Is Deployment Descriptor?
What Are The Call Back Methods In Entity Bean?
What Is Local Interface. How Values Will Be Passed?
What Is Abstract Schema?
What Is The Difference Between Find And Select Methods In Ejb?
How Does A Servlet Communicate With A Jsp Page?
Are Enterprise Beans Allowed To Use Thread.sleep()?
Is It Possible To Specify Multiple Jndi Names When Deploying An Ejb?
Is It Possible To Write Two Ejb’s That Share The Same Remote And Home Interfaces, And Have Different Bean Classes? If So, What Are The Advantages/disadvantages?
Can An Ejb Send Asynchronous Notifications To Its Clients?
Is There A Guarantee Of Uniqueness For Entity Beans?
Can A Class Be It’s Own Event Handler? Explain How To Implement This.
Why Does Jcomponent Have Add() And Remove() Methods But Component Does Not?
How Would You Create A Button With Rounded Edges?
If I Wanted To Use A Solarisui For Just A Jtabbedpane, And The Metal Ui For Everything Else, How Would I Do That?
What Is The Difference Between The ‘font’ And ‘fontmetrics’ Class?
What Class Is At The Top Of The Awt Event Hierarchy?
Explain How To Render An Html Page Using Only Swing.
How Would You Detect A Keypress In A Jcombobox?
Why Should The Implementation Of Any Swing Callback (like A Listener) Execute Quickly?
In What Context Should The Value Of Swing Components Be Updated Directly?
Why Would You Use Swingutilities.invokeandwait Or Swingutilities.invokelater?
If Your Ui Seems To Freeze Periodically, What Might Be A Likely Reason?
Which Swing Methods Are Thread-safe?
Why Won’t The Jvm Terminate When I Close All The Application Windows?
Which Method Is Used For Setting Security In Applets?
What Is Jms?
How Jms Is Different From Rpc?
What Are The Advantages Of Jms?
Are You Aware Of Any Major Jms Products Available In The Market?
What Are The Different Types Of Messages Available In The Jms Api?
What Are The Different Messaging Paradigms Jms Supports?
What Is The Difference Between Topic And Queue?
What Is The Role Of Jms In Enterprise Solution Development?
What Is The Use Of Message Object?
What Is The Basic Difference Between Publish Subscribe Model And P2p Model?
What Is The Use Of Bytesmessage?
What Is The Use Of Streammessage?
What Is The Use Of Textmessage?
What Is The Use Of Objectmessage?
What Is The Use Of Mapmessage?
What Is The Difference Between Bytesmessage And Streammessage??
What Is Point-to-point Messaging?
What Is The Advantage Of Persistent Message Delivery Compared To Nonpersistent Delivery?
Give An Example Of Using The Publish/subscribe Model.
How Is A Java Object Message Delivered To A Non-java Client?
What Is Mdb And What Is The Special Feature Of That?
What Are The Types Of Messaging?
What Are The Core Jms-related Objects Required For Each Jms-enabled Application?
What Is The Use Of Load And Require In Ruby?
What Function Converts All Html Special Symbols To Html Entities In Ruby?
What Is The Log That Has To Seen To Check For An Error In Ruby Rails?
What Is The Scope Of A Local Variable In Ruby?
What Is The Use Of Global Variable $ In Ruby?
Where Does The Start_tabnav Gets Informations For Tabs Rendering In Ruby Rail?
What Type Messaging Is Provided By Jms?
What Are The Different Parts Of A Jms Message ?
What Is The Role Of The Jms Provider?
What Is The Difference Between Byte Message And Stream Message?
What Is Byte Message ?
What Is Object Message ?
What Is Text Message?
What Is Map Message?
What Is Stream Message ?
What Is The Difference Between Queue And Topic ?
What Is Messaging?
Explain About The Programming Language Ruby?
Explain About Class Libraries In Ruby?
Explain About Portability?
Explain About Garbage Collection Feature Of Ruby?
Explain About The Command Line Options?
Explain About Environment Variables Present In Ruby?
Explain About Operators In Ruby?
Explain About The Defined Operator?
Explain About Methods?
Explain About Normal Method Class?
Explain About Ruby Names?
Explain About Variables?
Explain About Class Variable And Global Variable?
How Does Ruby Deal With Extremely Large Numbers?
Explain About Float, Dig And Max?
Explain About Interpolation?
Explain About Ruby Code Blocks?
What Is Jboss?
What Is Jta?
How Can You Start A Jta Transaction From A Servlet Deployed On Jboss ?
Which Component Handles Cluster Communication In Jboss ?
Is It Possible To Put A Jboss Server Instance Into Multiple Cluster At The Same Time ?
What’s Jboss Cache In Short ?
What Do You Know About Seam ?
Does Seam Run On Other Application Servers Besides Jboss ?
What’s Jboss Jbpm ?
Can I Run Seam Outside Of Jboss As?
Can I Run Seam In A J2ee Environment?
Can I Run Seam With Jdk 1.4 And Earlier?
Where Can I Find Seam Examples And Documentation?
Where Can I Ask Questions And Make Suggestions About Seam?
Are There Books About Seam?
Can I Use Ajax With Seam?
Can I Unit Test Seam Applications Without Starting The Application Server?
What’s The Difference Between Hibernate And Ejb 3 ? Don’t You Think Ejb 3 Is Just A Clone Of Hibernate ?
Which Hibernate Object Wraps The Jdbc Connection ?
Ok, Is The Session Factory Thread Safe?
What If You Need To Span Your Transaction Across Multiple Servlet Invocations ?

Java interview questions for 10 years experience

What Are The Differences Between Ejb 3.0 And Ejb 2.0 ?
What Is The Diffrence Between A Local-tx-datasource And A Xa-datasource? Can You Use Transactions In Both ?
What Do You Need To Set-up A Cluster With Jboss ?
What Optimization Could I Use If The Ejb Container Is The Only Point Of Write Access To The Database ?
Explain The Difference Between Nil And False In Ruby?
Explain The Use Of Global Variable $ In Ruby?
What Is The Use Of Super In Ruby Rails?
Interpolation Is A Very Important Process In Ruby, Comment?
Describe The Environment Variables Present In Ruby.
Explain The Concepts And Capabilities Of Garbage Collection Feature Of Ruby?
Describe Class Libraries In Ruby?
What Is Rails?
Why Ruby On Rails?
How May Messaging Models Do Jms Provide For And What Are They?
Are We Allowed To Change The Transaction Isolation Property In Middle Of A Transaction?
Should Synchronization Primitives Be Used On Bean Methods?
Is Method Overloading Allowed In Ejb?
What Is The Default Transaction Attribute For An Ejb?
Is It Possible To Stop The Execution Of A Method Before Completion In A Sessionbean?
What Do You Understand By The Term Network?
Explain The Generic Term Internet.
What Does Tcp/ip Stand For And What Is Its Use?
What Do You Understand By The Term Client-server Application?
What Are Protocols? What Are They Used For?
What Is The Relationship Between Servers And Ports?
What Is The Applet Client Restriction?
Why Servers Should Be Multithreading? Explain.
Why A Client Should Be Multithreading? Explain.
What Is Chat Area? Explain.
What Are The Applet’s Life Cycle Methods? Explain Them.
Which Classes And Interfaces Does Applet Class Consist?
What Are The Applet’s Information Methods?
How Does Ejb Invocation Happens?
What Is Clustering? What Are The Different Algorithms Used For Clustering?

RELATED INTERVIEW QUESTIONS

  1. Accenture Java Interview Questions
  2. Advanced Java Interview Questions
  3. Core Java Interview Questions
  4. .NET Interview Questions
  5. Ansible Interview Questions
  6. ServiceNow Interview Questions
  7. RPA Interview Questions
  8. Blue Prism Interview Questions
  9. SSIS Interview Questions And Answers
  10. Oracle Performance Tuning Interview Questions
  11. SCCM Interview Questions
  12. ServiceNow Interview Questions
  13. SQL Interview Questions
  14. Docker Interview Questions