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 - Page 2

Applets
Classes
Enterprise Javabeans
Garbage Collection
Java APIs
  AWT   Enterprise JavaBeans   JDBC   Swing
Java Servlets
Object Serialization
RMI-IIOP
Threading
21-40 of 1687     Previous     Next
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.
Returning Zero-Length Arrays in Java
by Nagaraj Ramesh
Define a static final zero-length array and return that rather than null from methods that return array types.
Simple Script to Run Java Applications on Linux and Windows
by Bea Petrovicova
This simple script lets you run a Java application on both Linux and Windows.
How to Detect JFrame Resizing
by Sterling Jordan
To know when a user is resizing a JFrame, catch the resize action using this tip's code.
Use a Validator to Validate a DOMSource
by Leonard Anghel
This code snippet creates a Validator that you can use to validate an XML document represented as a DOMSource.
How to Iterate Through All the Properties of a Class
by Deepak Choudhari
Using Reflection, you can easily iterate through all the properties of a .NET class.
Send a Cookie to the Server Using the setRequestProperty Method
by Leonard Anghel
You don't need a browser to send a cookie to a server. This tip shows you how to do it from Java code.
Calling JTidy from Java to Convert HTML to XHTML
by Leonard Anghel
This tip shows how to invoke the JTidy open-source project from Java code to convert an HTML file to XHTML.
How to Declare a java.util.Date in a EJB 3.0 Entity
by Leonard Anghel
To map a date value to a Java date in EJB 3.0, use this code.
Using the OneWay Web Service Attribute
by Srinath MS
When you call a void web service method, apply the OneWay attribute to avoid having the calling thread wait for a response.
XML Signature Core Validation Failure with Java and Apache Axis
by Chandan khanna
Added namespaces cause XML Signature core validation failures.
Writing a Parameterized SQL Query in EJB 3.0
by Leonard Anghel
Follow this DELETE statement example to write parameterized SQL queries in EJB 3.0.
21-40 of 1687     Previous     Next
Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date