Java Domain Specific Languages (DSLs) are programming languages designed to solve a specific problem. Examples include UNIX shell scripts and ColdFusion Markup Language. Because Java DSLs are designed to solve specific problems, they often contain elements not found in general purpose languages though are often created with a general purpose language as a template. In this section on Java DSLs, find news and articles that explain how computing problems are being solved with DSLs and what problems could be solved with a newly created DSL. DSLs have a specific place in programming, and its important to know when they can be applied successfully.
Troubleshooting Java Code: Log or Re-Throw, but Don't Do Both
06 Mar 2013
Tip - When building Java applications, proper logging and proper exception handling go hand in hand. But there are times when putting the two together is just plain wrong. This article explains why rethrowing an exception and logging it at the same time is a...
Java 7 and the intricacies of safe and unsafe casting
26 Jan 2012
Tip - One of the problems with casting is that it does have the potential to cause a loss of precision, especially if the number that gets cast does indeed fall outside of the range of the target type. Here we will explain why this happens.
OCPJP Java 7 Mock Certification Exam: A Tricky Question about ARM and Try-with-Resources
30 Dec 2011
Tip - The Oracle Certified Professional Java Programmer (OCPJP) exam requires you to know the ins and outs of the new language features introduced in Java 7. This tricky question tests you on your knowledge of try-with-resources and AutoCloseable objects.