Interesting facts about the JRE – Every Java developer use each day classes from the JRE, there are some most used classes like String and Array and others less known like Corba ones. In this article we will discuss about some JRE facts that can be helpful to know. For that we will analyze the [...]

Requirment- Sometime we want to execute javascript from Java in ADF.How to achieve this.below code tell you about this. Thats it. enjoy. Happy coding with Techartifact with Vinay Kumar…..

Can I override a static method? – No you cant Many people have heard that you can’t override a static method. This is true – you can’t. However it is possible to write code like this: This compiles and runs just fine. Isn’t it an example of a static method overriding another static method? The [...]

Requirment- To compare the two xml or string and find out the difference. I need to show the difference with color as well, if it is added then its in green otherwise it should be in red. Different from normal ADF stuff. It’s a pure java work. Let find out, how to achieve it.We can [...]

After reading many articles about garbage collector and its algorithms in Java, I decided to write my own experience in brief about various garbage collector algorithms. What is Garbage Collection? JVM’s heap stores all objects created by running java application irrespective of their scope. Garbage Collection is s process of automatically freeing objects that are [...]

Here is a very cool way of quickly creating a basic skeleton to invoke an AM : 1) Create a Test java class. 2) Inside the mail class, type in keyword ‘bc4jclient’ : 3) Press Ctrl + Enter.4) Voila!! A small skeleton to invoke AM gets created:

Requirment- To sort MAP based on key using Java following is the source code-

ConcurrentHashMap is sort of hidden class. Not many people know about it and not many people care to use it. The class offers a very robust and fast (comparatively, we all know java concurrency isn’t the fastest) method of synchronizing a Map collection. On the internet there is lot of article which tell difference between [...]

There are 3 hibernate object state – 1.) Persistent- Persistent object and collections are short lived single threaded objects, which store the persistence state. These objects synchronize their state with database depending on your flush strategy(i.e auto flush where as soon as setXXX() method is called or an item is removed from a set,list etc [...]

HashSet: – Class offers constant time performance for the basic operations (add, remove, contains and size). – It does not guarantee that the order of elements will remain constant over time – Iteration performance depends on the initial capacity and the load factor of the HashSet. – It’s quite safe to accept default load factor [...]