Category Archives: Java

Useful code snippets in the Java Programming language.

Create Universally Unique ID in Java

For the longest time I’ve used java.rmi.server.UID to create a unique ID in a application. We enhanced the UID class to fit our needs and to format the ID to the standard format but unfortunately we found that within a process, we were generating duplicate IDs if we created more than a certain amount. It [...]

Also posted in TechKnow | Tagged , , , , , , | Leave a comment

Year In Review 2011

It is that time of year where we reflect on the accomplishments of the passing year and look forward to the one to come. Here is a window into the past year in technology through this year’s popular posts on TechKnow Juixe. Code and Design Remove Multiple Null Values From a List in Java Launch [...]

Also posted in Programming, Rant, TechKnow | Tagged , , , , , , , , , | Leave a comment

Retweet September 2011

From time to time I just blast tweets about software development, project planning, team dynamics, or whatever else comes to mind. Here is a synopsis of recent tweets and rants. If you want to follow the conversation follow me at techknow and/or juixe. Software Development Code. Money. Respect. Software bugs don’t take anything personally. Code [...]

Also posted in Programming, Startup, Team, TechKnow | Tagged , , , , , , , , , | 1 Comment

Fix Common Java Exceptions

ClassCastException – The most common reason for getting a ClassCastException is because the code in question is accessing an object from a List or Map and casting to an particular class, but the List or Map may have different types of classes. If you are not using generics and allow your List to contain any [...]

Also posted in Programming, TechKnow | Tagged , , , , , , , , , , | Leave a comment

Common Causes for Memory Leaks

You’ll always have to deal with memory issues, no matter the programming language. Even with the Java programming language, if the right precautions are not taken, you will have some sort of memory leaks, memory issue, out of memory exception, or heap size problem. I’ve seen two common types of memory issues in every application [...]

Also posted in Design, Programming | Tagged , , , , , , , , , | Leave a comment

Keep Code Statements Simple

I don’t count my progress by the line of codes but at the same time I don’t take pride by over engineering a solution. Writing code is like writing for a publication, you have to know at what reading level you are writing for. That said, the one type of code statement that gets under [...]

Also posted in Programming, Rant, TechKnow | Tagged , , , , , | 2 Comments