Archive for the ‘java’ category

6 Useful Java Snippets

December 5th, 2012 Leave a comment 1 comment
6 Useful Java Snippets

Sometimes it’s not worth reinventing the wheel and trying to remember the way you did something last time around. It’s also true that sometimes you have simple tasks that you simply can’t figure out how to get done- or, even worse, you That said, here are some really useful Java code snippets that you can use and reuse to help make some tasks that you’re doing often a bit easier! 1. Converting Strings to ints and ints to Strings Here’s a handy little string converter that you can use to turn strings to ints and vice versa! int y = 10; String x… View full post »

Top 5 Mistakes Most Java Programmers Make

November 12th, 2012 Leave a comment 5 comments
Top 5 Mistakes Most Java Programmers Make

Everyone makes mistakes. Even the best programmer will have errors in their code every now and then, and no matter whether you are a beginner or a master there are always going to be some frustrating errors or mistakes that you make that will come back to haunt you days, weeks, or months later in the production cycle. Don’t let programming mistakes come back to bite you down the line – take a look at some of the most common mistakes even experienced Java programmers make in their programs and remember to think of them next time you are faced… View full post »

Top 5 Java Web Development Frameworks

September 28th, 2012 Leave a comment 1 comment
Top 5 Java Web Development Frameworks

Introduction Writing web applications in Java from scratch can often seem a great way to go in an enterprise-level environment simply because it may seem that there is no other way to ensure a consistently high level of quality control and design paradigms. There are, however, a number of Java web development frameworks designed to facilitate enterprise-level Java application development- almost too many, in fact, to choose one. Here are our top 5 Java web development frameworks to help you narrow down the choice of which framework is right for you! 1. Apache Struts 2 Apache Struts 2 is, as with all of… View full post »

Using the Java final Keyword: Best Practices

September 16th, 2012 Leave a comment 1 comment
Using the Java final Keyword: Best Practices

Most new developers these days learn how to program in an object-oriented language such as Java and many people have learned Java as one of several programming languages over the course of their career. Java has some unique characteristics that are not always found in other languages and the final keyword is one of them. Since we are not accustomed to using it, it may be misused or misunderstood. Some developers over-use it because they think it will enhance performance, other underutilize this powerful tool where it could be useful because they don’t understand it. In this article I will… View full post »

A Simple Java Introduction to Reflection

July 20th, 2012 Leave a comment
A Simple Java Introduction to Reflection

In computer science, reflection is the process by which a computer program can observe, do type introspection and modify its own structure and behavior at runtime. In many computer architectures, program instructions are stored as data; hence the distinction between instruction and data is merely a matter of how the information is treated by the computer and programming language. Reflection is most commonly used in high-level virtual machine programming languages like Smalltalk and scripting languages, and less commonly used in manifestly typed and/or statically typed programming languages such as Java, C, ML or Haskell. In this article, we will look at… View full post »

Java 8: New Features

March 21st, 2012 Leave a comment 2 comments
Java 8: New Features

We have waited in anxious anticipation for the new features that will be available in Java 8, most of which were previously intended for Java 7 but had to be postponed. Now, Oracle promises us a “Revolution, not Evolution” with the new version. What does the future of the Java language hold? At the 2011 JavaOne conference, Mark Reinhold, the chief architect for Java at Oracle, gave the audience a peek at what to expect in Java 8 and spoke a little about upcoming plans for Java 9. It was unfortunate that of the five key improvements that… View full post »

Java IDE Compared

February 27th, 2012 Leave a comment
Java IDE Compared

If you are just getting started learning Java it is important to choose a development environment that suits your programming style and needs. This can be a daunting task for beginners since there are many IDEs available that may be suited to your task. Some are great commercial products and others are excellent examples of the efficiency of open source development. What many new developers may not know is that IDEs have continued to evolve their point of view, creating a set of tools with different strengths and weaknesses to fit different programming styles and functionality needs. When… View full post »

5 Easy Java Optimization Tips

January 24th, 2012 Leave a comment 10 comments
5 Easy Java Optimization Tips

When writing Java code it can be easy to make simple mistakes that seem harmless on the surface but, as our applications grow larger, they can show themselves to be slow, resource intensive processes that could use a tune-up. Luckily there are some easy ways to optimize your Java code that you can begin using today. Here, we will introduce you to five of them. 1. Avoid unnecessary casting Casting, for the new developer, is a way of converting between reference data types. Most casting is done to allow a more generic form of programming where your code will… View full post »

Java Interview: Coding Questions and Answers

November 21st, 2011 Leave a comment 6 comments
Java Interview: Coding Questions and Answers

Interviewing for a job can be stressful, but if there is one thing that can add more complexity to the interview process, it would be the technical interview. Nothing strikes fear in the heart of developers faster than the thought of sweating hands and an interview’s stare as you struggle through a coding problem on a whiteboard. This is the stuff of nightmares. It is natural for you to fear this process since many programmers, new and veteran alike, have doubts about their coding abilities. The best thing you can do is prepare yourself for what is to… View full post »

Best Java Books: My Top 5 Choices

October 21st, 2011 Leave a comment 1 comment
Best Java Books: My Top 5 Choices

With Android being at the forefront of mobile phone use and growing every day, Java has enjoyed a great deal of popularity as a language that’s very handy to know in today’s IT world. Unfortunately, it is not always so easy to figure out which books are best for learning Java, so we’ve taken the liberty of choosing a few that we think will make your Java learning experience smooth and enjoyable! Effective Java By Joshua Bloch In Effective Java, Joshua Bloch does one thing extremely, extremely well: he lays out best practices that every developer should follow regularly. The whole book has… View full post »