Skip to content

Software Development News: .NET, Java, PHP, Ruby, Agile, Databases, SOA, JavaScript, Open Source

Methods & Tools

Subscribe to Methods & Tools
if you are not afraid to read more than one page to be a smarter software developer, software tester or project manager!

IBM developerWorks : Java technology : Technical library
Syndicate content developerWorks
The latest content from IBM developerWorks
Updated: 58 min 5 sec ago

5 things you didn't know about ...: Multithreaded Java programming

Wed, 05/17/2017 - 05:00
Multithreaded programming is never easy, but it does help to understand how the JVM processes subtly different code constructs. Steven Haines shares five tips that will help you make more informed decisions when working with synchronized methods, volatile variables, and atomic classes.
Categories: Java

5 things you didn't know about ...: Java Database Connectivity

Wed, 05/17/2017 - 05:00
JDBC, or Java Database Connectivity, is one of the most frequently used packages in the entire JDK, and yet few Java developers use it to its fullest -- or most up-to-date -- capacity. Ted Neward offers an introduction to newer JDBC features like ResultSets that automatically scroll and update on the fly, Rowsets that can work with or without an open database connection, and batch updates that can execute multiple SQL statements in one fast trip around the network.
Categories: Java

5 things you didn't know about ...: Everyday Java tools

Wed, 05/17/2017 - 05:00
Some Java tools defy categorization and are frequently collected under the rubric of "things that work." This installment of 5 things offers up a collection of tools you'll be glad to have, even if you end up storing them in your kitchen drawer.
Categories: Java

5 things you didn't know about ...: Enhancing Swing

Wed, 05/17/2017 - 05:00
Swing is an older toolkit, developed long before the advent of beautiful user interfaces, and it's missing some of the components you might need for building rich UIs. Fortunately, open source projects like Substance, SwingX, and the Java Look-and-Feel Graphics Repository make up the difference. Author Steven Haines shows you how to painlessly add tree tables, syntax highlighting, and more to your Swing UIs.
Categories: Java

5 things you didn't know about ...: Apache Maven

Wed, 05/17/2017 - 05:00
You might be familiar with profiles, but did you know that you can use them in Maven to execute specific behaviors in different environments? This installment in the 5 things series looks beyond Maven's build features, and even its basic tools for managing the project life cycle, delivering five tips that will improve the productivity and ease with which you manage applications in Maven.
Categories: Java

5 things you didn't know about ...: Java performance monitoring, Part 2

Wed, 05/17/2017 - 05:00
If it's news to you that the JDK ships with the full-featured profiler JConsole, you'll be even more surprised to learn about the five stand-alone profiling utilities introduced in this article. Find out how lightweight (and in some cases experimental) Java process monitoring and analysis tools can help you hone in on performance bottlenecks like thread starvation, deadlocks, and object leaks.
Categories: Java

5 things you didn't know about ...: Java performance monitoring, Part 1

Wed, 05/17/2017 - 05:00
Blaming bad code (or bad code monkeys) won't help you find performance bottlenecks and improve the speed of your Java applications, and neither will guessing. Ted Neward directs your attention to tools for Java performance monitoring, starting with five tips for using Java's built-in profiler, JConsole, to collect and analyze performance data.
Categories: Java

5 things you didn't know about ...: JARs

Wed, 05/17/2017 - 05:00
Many Java developers never think beyond the basics of JARs -- only using them to bundle classes before shipping them off to the production servers. But a JAR is more than just a renamed ZIP file. Learn how to use Java Archive files at their fullest capacity, including tips for jarring Spring dependencies and configuration files.
Categories: Java

5 things you didn't know about ...: java.util.concurrent, Part 2

Wed, 05/17/2017 - 05:00
In addition to concurrency-friendly Collections, java.util.concurrent introduced other pre-built components that can assist you in regulating and executing threads in multithreaded applications. Ted Neward introduces five more of his Java programming must-haves from the java.util.concurrent package.
Categories: Java

5 things you didn't know about ...: java.util.concurrent, Part 1

Wed, 05/17/2017 - 05:00
Writing multithreaded code that both performs well and protects applications against corruption is just plain hard -- which is why we have java.util.concurrent. Ted Neward shows you how concurrent Collections classes like CopyOnWriteArrayList, BlockingQueue, and ConcurrentMap retrofit standard Collections classes for your concurrency programming needs.>
Categories: Java

5 things you didn't know about ...: The Java 6 Collections API, Part 2

Wed, 05/17/2017 - 05:00
You can take Java Collections anywhere, but don't take them for granted. Collections hold mysteries and can make trouble if you don't treat them right. In this installment of 5 things, Ted Neward explores the complex and mutable side of the Java Collections API, with tips that will help you do more with Iterable, HashMap, and SortedSet, without introducing bugs to your code.
Categories: Java

5 things you didn't know about ...: The Java 6 Collections API, Part 1

Wed, 05/17/2017 - 05:00
The Java 6 Collections API is far more than a replacement for arrays, though that's not a bad place to start. Ted Neward dispenses five tips for doing more with Collections, including a primer on customizing and extending the Java Collections API.
Categories: Java

Spring Boot basics

Thu, 05/11/2017 - 05:00
Learn how to use Spring Boot's starters, opinions, and executable JAR file structure to quickly write Spring-based applications that "just run."
Categories: Java

Get started with the JavaScript language, Part 1: The basics

Mon, 05/08/2017 - 05:00
Want a foundational understanding of the JavaScript language? This tutorial series series gets you started by covering basic JavaScript concepts for beginners, and provides code examples to show how it's all done.
Categories: Java

Java 8 idioms: Functional alternatives to the traditional for loop

Sun, 04/30/2017 - 05:00
The for loop might be ubiquitous, but it isn't irreplaceable. Learn how range, iterate, and limit cut the fuss out of even complex iterations in Java.
Categories: Java

Protect your apps from cross-site scripting (XSS) attacks

Fri, 04/14/2017 - 05:00
One of the most common techniques for cross-site scripting attacks is injecting code into a web page. This code snippet shows you how to use escape sequences so that any injected code can't run.
Categories: Java

Please ignore this article 04052017. It was created for testing purposes only.

Wed, 04/05/2017 - 05:00
For a modest investment, our new developerWorks Premium membership program can yield huge benefits for you in terms of time and (yes) money giving you access to powerful tools that support your cloud projects, a trove of learning resources to help you build your skills, discounts to industry events where you can expand and enhance your network, free certification testing, and more.
Categories: Java

Java 8 idioms: Function composition and the Collection Pipeline pattern

Thu, 03/30/2017 - 05:00
Endless looping isn't the only way to iterate collections in your code. Function Composition and Collection Pipeline are two patterns that let you use expressions, rather than statements, to sort collections in Java.
Categories: Java

Blockchain chaincode for Java developers

Thu, 03/30/2017 - 05:00
Blockchain is changing the way business transactions are done on the Internet. In this tutorial, you'll install a blockchain network and run a chaincode smart contract written in the Java language.
Categories: Java

UPDATE: Testing for Views in Production, please ignore this article 03182017

Fri, 03/17/2017 - 05:00
For a modest investment, our new developerWorks Premium membership program can yield huge benefits for you in terms of time and (yes) money giving you access to powerful tools that support your cloud projects, a trove of learning resources to help you build your skills, discounts to industry events where you can expand and enhance your network, free certification testing, and more.
Categories: Java