Subscribe: DevX: Latest Java Articles
http://services.devx.com/outgoing/javafeed.xml
Preview: DevX: Latest Java Articles

DevX: Latest Java Articles



www.DevX.com



Published: Thu, 18 Jan 2018 20:49:26 -0800

Last Build Date: Thu, 18 Jan 2018 20:49:26 -0800

 



Avoiding the HashMap Size Trap

Wed, 17 Jan 2018 00:01:00 -0800

Language: Java, Level: Beginner: - See how to avoid having the HashMap resize half way through the insertion.



Random Number Generation Using Java

Mon, 15 Jan 2018 02:09:00 -0800

Language: Java, Level: Intermediate: - Learn how to use the Random class available in the java.util package to generate random numbers.



Do Not Assume SimpleDateFormat Is Thread-safe

Thu, 11 Jan 2018 05:44:00 -0800

Language: Java, Level: Beginner: - Learn why it is important to remember that sharing a SimpleDateFormat requires proper synchronization.



Finding a Boolean that Is Part of an Input String

Tue, 09 Jan 2018 04:36:00 -0800

Language: Java, Level: Intermediate: - See how to find a boolean that is available as part of the input string.



Catching to Log in Java

Thu, 04 Jan 2018 02:43:00 -0800

Language: Java, Level: Beginner: - See why it is important to pass all required information along in the exception.



Learn Some Efficient Programming Practices

Tue, 02 Jan 2018 00:01:00 -0800

Language: Java, Level: Intermediate: - Avoiding null pointer exceptions is a good programming practice. Learn some more ways to avoid this pitfall.



Creating a Link to a File in Java

Fri, 22 Dec 2017 03:15:00 -0800

Language: Java, Level: Intermediate: - See how to crosslink files in Java so that you don't have to hunt for multiple files when changes are made to one.



Using the "==" Operator with Double or Float

Wed, 13 Dec 2017 12:47:00 -0800

Language: Java, Level: Beginner: - Avoid causing and endless loop with float or double values in Java.



Clearing the Contents of a StringBuffer

Tue, 12 Dec 2017 06:01:00 -0800

Language: Java, Level: Intermediate: - StringBuffer is a class that facilitates string operations and also helps reduce memory usage.



Avoid NullPointerException in String Equality Comparison

Tue, 05 Dec 2017 02:11:00 -0800

Language: Java, Beginner: Intermediate - Learn why it's important to place literals first in equal comparisons.



Understanding the Long Data Type in Java

Mon, 04 Dec 2017 01:21:00 -0800

Language: Java, Expertise: Intermediate - See how Java long behaves differently when used with the letter L and without it.



Simple Annotation in Java

Fri, 24 Nov 2017 02:00:00 -0800

Language: Java, Expertise: Intermediate - Annotations are similar to interfaces in that you can convey your own specifications that others will need to follow.



Reducing Unbuffered Streams

Mon, 20 Nov 2017 05:36:00 -0800

Language: Java, Expertise: Intermediate - Learn how to significantly reduce the number of native calls.



Converting Numbers to Strings

Mon, 13 Nov 2017 01:41:00 -0800

Language: Java, Expertise: Beginner - Learn the right way to convert numbers to Strings.



Obtaining a Thread Dump of Your Java App in Linux

Thu, 09 Nov 2017 02:26:00 -0800

Language: Java, Expertise: Intermediate - Learn how to trigger a thread dump in Java on Linux os.



Reasons for Android Runtime Garbage Collection

Wed, 08 Nov 2017 02:27:00 -0800

Language: Java, Expertise: Advanced - See some suggestions regarding what could be triggering Garbage Collection in your Android run time environment.



Parsing and Converting Numbers in Java

Thu, 02 Nov 2017 02:27:00 -0700

Language: Java, Expertise: Intermediate - Learn how to use the API without allocating unnecessary objects.



How to Enable Java 9 GC Logs

Tue, 31 Oct 2017 02:44:00 -0700

Language: java, Expertise: Advanced - Learn more about how the release of Java 9 re-implemented GC logging using the Unified GC logging framework.



Avoid the XML Encoding Trap

Wed, 25 Oct 2017 00:52:00 -0700

Language: Java, Expertise: Beginner - Learn why it is not a good idea to read an XML file and store it in a String.



Understanding the ArrayStoreException in Java

Mon, 23 Oct 2017 01:17:00 -0700

Language: Java, Expertise: Intermediate - Learn more about how to avoid getting the ArrayStoreException in Java.



How to Schedule a Task to Start After a Defined Interval

Fri, 20 Oct 2017 03:00:00 -0700

Language: Java, Expertise: Intermediate - Learn how to schedule a task to begin after an assigned interval.



Taking Advantage of Immutable Objects in Java

Wed, 18 Oct 2017 03:16:00 -0700

Language: Java, Expertise: Intermediate - Integer and also Boolean are immutable; so, it is a bad idea to create objects that represent the same value, those classes have built-in caches for frequently used instances.



Performance Measurements with String Class Usage

Mon, 16 Oct 2017 02:14:00 -0700

Language: Java, Expertise: Intermediate - See how the new keyword definitely consumes more time when compared to direct initializing the value to a String object.



Wrapping Unbuffered Writes to an OutputStreamWriter in Java

Wed, 11 Oct 2017 02:03:00 -0700

Language: Java, Expertise: Intermediate - OutputStreamWriter uses memory for each call to its write() methods. Learn why you should wrap it in a BufferedWriter.



Identifying the Unicode of Characters in a Given String

Mon, 09 Oct 2017 02:10:00 -0700

Language: Java, Expertise: Intermediate - Learn how the String class facilitates finding the unicode of characters in a String.