Copyright 2020 © QuinStreet Inc. All Rights Reserved
DevX Tips Bank: Java
JSF Backing Bean Tips: Parameter Extractions and Redirects
These two quick JSF bean backing tips show how to extract request parameters and redirect …
Java Code to Filter File Names in a Directory
Using this Java code snippet, you can filter file names for array of extensions, split the …
Managed Classes and Object Injection in Java EE 5
Get a quick reference for what types of managed class can inject what object in Java EE 5.
Managing Concurrent Requests with EJB Containers
A limitation of EJB containers is that they can't serialize complex objects. Find out how …
Using EJB Interceptors for Java EE Audits
With EJB interceptors, you can access the name, parameters, and EJB context of business …
Java Tip: Optimization Technique for Lists
An ArrayList that is not initialized with the proper size can slow your Java application's …
Static Class Values Are Valid Even Without a Main Method
This example shows how a static block can work even without a main method.
Using Tree(Map,Set) in Collections
To add objects to a Tree(Map, Set), implement the Comparable.compareTo method.
A Guide to Determine When You Need a Java Interface
You definitely need an interface if your needs match either of the two scenarios discussed …
vs. Using a StringTokenizer
It's not always safe to use String.split(String). Consider using the String …
Achieve Syntax Brevity with Anonymous Classes and Instance Initializers
Shorten your code using these techniques.
Execute DOS Commands from a Java Program
Use this tip to run DOS commands from your Java Program on Windows.
Comparing Constant Strings with String Variables
Avoid NullPointerExceptions by comparing string constants with string variables—not …
Understanding Java's Integer Pool Can Avoid Problems
When apparently-equal integer values fail an equality test, remember the integer pool.
Returning Zero-Length Arrays in Java
Define a static final zero-length array and return that rather than null from methods that …
Acceptable Use Policy
Terms of Service
California - Do Not Sell My Info