This Article presents two important new features of EJB 3.0 which is bundled with Java EE 5.0 specification, which are Annotations and Dependency Injection. The solid reason for this article is , it will give us an idea how these features are used, so on their encounter in other articles of EJB3.0, we can understand …
Aspect Oriented Programming (AOP) in Spring 2.5
This article publishes the book excerpt from the book Spring 2.5 Aspect Oriented Programming by Massimiliano Dessi.The following are the list of chapters in the book and brief description inside each chapters. If you are interested in receiving the future articles on book reviews and latest news on Java, please subscribe here. Chapter 1 introduces …
Volatile keyword in Java
This tip explains the use of volatile keyword in Java. The keyword volatile (Java) is used in the multithreaded environment. also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials Volatile Keyword in Local Variables in the Thread If you are working with the multithreaded programming, the volatile keyword will be more …
Adding methods to an Enum
Enums introduced in Java 5.0 are just compiled java classes with some extra behavior. So you can basically do whatever you can in a normal java class inside an enum as well. That includes adding methods , class level variables and constructors to an enum. Adding methods to an enum works just like adding methods …
What is transient keyword in Java?
Java Transient Keyword This article explains about the transient variable and when it will be used in the Java programming. Another important fact is that, this question is most frequently asked in the Java interviews for checking the basic knowledge of a programmer. Another point is that the Java transient keyword is not frequently used …
Ordering Queue Using Comparator Interface and PriorityQueue
The basic use of Queue class is to provide a data structure which allows storing objects in a First in First out(FIFO) format. But sometimes one wants to maintain the ordering, based on some other metric. This is exactly the purpose of PriorityQueue, another Queue implementation. You provide it a Comparator, and it does the …
RMI Interview Questions
1)Explain RMI Architecture? RMI uses a layered architecture, each of the layers could be enhanced or replaced without affecting the rest of the system. The details of layers can be summarised as follows: Application Layer: The client and server program Stub & Skeleton Layer: Intercepts method calls made by the client/redirects these calls to a …
JMS Interview Questions
1) What is JMS? Java Message Service is the new standard for interclient communication. It allows J2EE application components to create, send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and asynchronous. 2) What type messaging is provided by JMS Both synchronous and asynchronous 3) How may messaging models do …