Category Archives: Core Java

Hello Readers, Not being able to see entire console of your program can be annoying. Eclipse by default allows 80K characters in console. It will show last 80K characters. While redirecting the logs to a file is a viable option, … Continue reading →

Hello Readers, In Eclipse you can have the workspace name displayed on window title at top left. It is helpful when you have multiple workspaces open on your workstation. So that you don’t write right code in wrong workspace 🙂 … Continue reading →

Hello Readers, It’s been a while since my last post. This one will show an example of reading element/attribute content from XML file using XPath utility that comes with Java API. Below is the XML I used to demo: Let’s … Continue reading →

Hello Readers, This post will show an example of writing multi-threaded program using Executor framework introduced in Java 1.5. Before making your program multi-threaded, you should define task boundaries. If you are doing n independent tasks sequentially, then using multiple … Continue reading →

Respected Readers, This post will run through steps for setting up JadClipse in Eclipse. It is a very handy decompiler and can be mighty useful. Steps: 1) Download JadClipse jar and put it in Eclipse pluigins directory. It can be … Continue reading →

Readers, OutOfMemoryError is not unknown to Java developers. Increasing the heap size almost always gets you past it. Recently I faced the same issue when processing millions of records and increasing heap size (1.3 GB) just got me around it. But … Continue reading →

Respected Readers, This post describes algorithm for converting OLE time format in to readable time format. I was parsing this new file format that stored date in OLE time format. It looks like a double type. With some inputs from … Continue reading →