Quantcast
Channel: eInfoBuzz » Programming
Browsing all 12 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Deep and Shallow comparison

Deep and Shallow comparison Yeah, its comparison I agree you must have heard deep copy or shallow copy. Usually “deep” and “shallow” are used to refer to copying, not comparison but here I would like...

View Article



Restriction on required library rt.jar Error

Restriction on required library rt.jar Error I encountered the following error in my eclipse when I import an existing project. Access restriction: The type <class name> is not accessible due to...

View Article

Log4j Stop Axis debugging

Log4j debugging to rescue In one of my JNLP based fat client project we were using axis client to perform web services call to get the initialization data. The application is built and deployed using...

View Article

General Contract for Equals and Hashcode

Java Equals and Hashcode general Contract Overiding BOTH, equals and hashcode method is not a common practice among java developers, but is strongly recommended in order to avoid the followings. 1)...

View Article

Java Heap Dump

After JDK6 its easy to generate Java Heap dumps using jmap. here is a quick example, make sure your user has the permission to write on the dump folder. ./jmap...

View Article


Java Convert LocalTime to UTC Time

Converts Local future/previous date in String to UTC date A simple utility method to convert local time into UTC time. The important thing in this method is, you will find a lot of examples on the...

View Article

Java DateUtils methods

Some Java Utility methods for date conversions   1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 private String getUTCTimeAfter(int hours) {   SimpleDateFormat sdfUTC = new SimpleDateFormat(...

View Article

Image may be NSFW.
Clik here to view.

Quickly Maven

Maven Quickly Maven In short, maven is a build automation tool describing the structure of the Java project and its dependencies. Maven addresses dependency management, artifact versioning and project...

View Article


Java Fix to return IPv4 instead of IPv6

IP address is a unique address/number assigned to each computer/printer/device on internet. It is used to identify a computer on the internet. IPv4 is the most  commonly used Internet Protocol Version,...

View Article


Java DNS Cache and JVM TTL

When ever your java program performs a network operation the Domain name service (DNS) settings get cached inside JVM, meaning the IP address of the other machine get cached in the JVM for a period of...

View Article

Spring Cache configurations to remember

Things to remember while configuring Spring Cache For this e.g. I am using ehcache Maven Dependencies <properties>...

View Article

Jackson Annotation Cheat Sheet

Jackson Json Annotation Cheat sheet   NOTE – To avoid combinatorial explosion, I have used the following notation: If a property has more than one possible option, the options are comma separated,...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images