Home » Java (page 599)

Java

Morphia and MongoDB: Evolving Document Structures

In my previous post on Morphia, I went through some typical usages and mentioned some caveats and workarounds for known problems. I showed how easy it is to work with Morphia and how cleanly it interacts with the Java world. To follow up on that post, I’m going to discuss how to deal with some real life needs: handling changing ...

Read More »

Understanding Java Weak References

I could not pay attention to the blog in the recent times and first and foremost I must apologize for not staying in touch with you all in the world of technology. I recently stumbled upon the java.lang.ref package which was available since Java 1.2 but ironically i got to know about it just a few days back. Going through ...

Read More »

TestNG or JUnit

For many years now, I have always found myself going back to TestNG whenever it comes to doing Unit Testing with Java Code. Everytime, I picked up TestNG, people have asked me why do I go over to TestNG especially with JUnit is provided by the default development environment like Eclipse or Maven. Continuing the same battle, yesterday I started ...

Read More »

Java Annotations & A Real World Spring Example

An “annotation” is a type of programming language definition and used as a “marker”. They can be thought as comment lines which programming language engine can understand. They don’t directly affect program execution but affect indirecly if wanted. Definition An annotation is defined with @interface keyword and is similar with an interface. It has attributes which are defined like interface ...

Read More »

Master Detail CRUD operations with Regions ADF 11g

java-interview-questions-answers

Hi, This is an example that demonstrates how to create a Master Detail relationship between tables by using Regions. The main purpose of regions is the notion of reusability. With regions and bounded task flows we can reuse our pages into many other pages keeping the same functionality and having a more cleaner approach. Download the Sample Application. For this ...

Read More »

Extending your JPA POJOs

Extensibility is an important characteristic in many architectures.  It is a measure of how easy (or difficult) it is to add or change functionality without impacting existing core system functionality. Let’s take a simple example.  Suppose your company have a core product to track all the users in a sports club.  Within your product architecture, you have a domain model represented ...

Read More »

Profile your applications with Java VisualVM

When you need to discover what part of an application consume the more CPU or Memory, you must use a profiler to do that. One profiler, packed by default with the Sun JDK is Java VisualVM. This profiler is really simple to use and really powerful. In this post, we’ll see how to install it and use it to profile ...

Read More »

Java 8 Status Updates

The two big new language features of the upcoming Java SE 8 release are Lambda Expressions and Modularity. For both, status updates have been released these days. I’ll share the links with you, so you might read through them over the holidays The Java SE 8 release is planned for mid 2013 by Oracle. Project Lambda Project Lambda as well ...

Read More »