Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Java

Java

Applets
Classes
Enterprise Javabeans
Garbage Collection
Java APIs
Java Servlets
Object Serialization
RMI-IIOP
Threading
1-20 of 1678     Previous     Next
Create an Instance of a Class Whose Name Will Be Supplied at Runtime
by Amar Gunda
Your Java program won't know which class to instantiate until it is executing. So how can you create an instance that class ahead of time?
JSF Backing Bean Tips: Parameter Extractions and Redirects
by Leonard Anghel
These two quick JSF bean backing tips show how to extract request parameters and redirect page loads.
Java Code to Filter File Names in a Directory
by deniz mermerci
Using this Java code snippet, you can filter file names for array of extensions, split the file names, and test the resulting array.
Managed Classes and Object Injection in Java EE 5
by Anghel Leonard
Get a quick reference for what types of managed class can inject what object in Java EE 5.
Managing Concurrent Requests with EJB Containers
by Anghel Leonard
A limitation of EJB containers is that they can't serialize complex objects. Find out how the PrePassivate and PostActivate methods overcome this shortcoming.
Using EJB Interceptors for Java EE Audits
by Leonard Anghel
With EJB interceptors, you can access the name, parameters, and EJB context of business methods.
Java Tip: Optimization Technique for Lists
by Deepak Tyagi
An ArrayList that is not initialized with the proper size can slow your Java application's performance.
Serialize Any .NET Object to a JSON String
by Deepak Choudhari
With JSON's popularity increasing by leaps and bounds, you'll find this technique useful.
Static Class Values Are Valid Even Without a Main Method
by Mannu Saini
This example shows how a static block can work even without a main method.
Using Tree(Map,Set) in Collections
by Sivaranjani Duraisamy
To add objects to a Tree(Map, Set), implement the Comparable.compareTo method.
A Guide to Determine When You Need a Java Interface
by Rajasekaran Kandhasamy
You definitely need an interface if your needs match either of the two scenarios discussed in this tip.
Create an Interface from a Class in Visual Studio
by Srinath MS
Use Visual Studio's refactoring features to extract class methods into an interface.
Using String.split(String) vs. Using a StringTokenizer
by Hrudananda Pattanaik
It's not always safe to use String.split(String). Consider using the String Tokenizer API instead.
Define and Execute a Groovy Bean Inside a Spring Application Context
by Santiago Urrizola
How to define and execute a groovy Bean inside a Spring application context.
A Quick Way to Generate Properties in Visual Studio C# Projects
by Srinath MS
Don't write property setters and getters by hand--generate them!
Achieve Syntax Brevity with Anonymous Classes and Instance Initializers
by Abdul Salam
Shorten your code using these techniques.
Execute DOS Commands from a Java Program
by Hrudananda Pattanaik
Use this tip to run DOS commands from your Java Program on Windows.
Comparing Constant Strings with String Variables
by Ritesh Patel
Avoid NullPointerExceptions by comparing string constants with string variables—not the other way around.
Launching an Asynchronous Operation Using BackgroundWorker
by Jayadev D
The .NET BackgroundWorker class makes it a snap to launch asynchronous operations on a separate thread.
Understanding Java's Integer Pool Can Avoid Problems
by Shreyas Pai
When apparently-equal integer values fail an equality test, remember the integer pool.
1-20 of 1678     Previous     Next
Sitemap