Everybody can author a new question

JavaBlackBelt

Subscribe to JavaBlackBelt: eMailAlertsEmail Alerts newslettersWeekly Newsletters
Get JavaBlackBelt: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories

Preparing for an interview? Want to just revisit Java SE 7 features? Trying to recollect or revise a Java SE programming construct? Let me take you back in time to what was introduced first in Java SE 7? Join me for this tutorial series on Java as we all eagerly await the official release of Java SE 9. Java SE 7 Release Date: 28-07-2011 Java SE 7 Code Name: Dolphin Java SE 7 Highlights Strings in switch statements. Automatic resource management in try statements. Improved type inference for generic instance creation, AKA the diamond operator <>. Simplified varargs method declaration. Binary integer literals. Allowing underscores in numeric literals. Catching multiple exception types and rethrowing exceptions with improved type checking. I have provided some of the most important core language enhancements for JDK 7.0, along with code samples. The examples provided bel... (more)

Sun Launches JavaFX Mobile

Sun Microsystems announced the availability of the JavaFX Mobile platform, enabling the Java wireless ecosystem to create expressive solutions, which leverage the power and ubiquity of the Java Platform Micro Edition (Java ME). The JavaFX Mobile platform delivers rich content and services across a range of mobile devices - from mass market feature phones to smart phones. Sun also announced that several leading handset manufacturers, service providers and ISVs are working with Sun to ship JavaFX Mobile handsets. The Java platform is supported by global mobile operators and device manufacturers, is available on more than 2.6 billion mobile phones and is supported by 6.5 million software developers. Built on top of a consistent Java ME platform implementation, JavaFX Mobile allows companies to create immersive mobile content, while leveraging their existing investment i... (more)

Reflections on Java Command Line Options

Abstract There are many different types of command line options that programs need to recognize. Many languages (e.g.: bash and perl) has built-in processing of command line options; Java does not. The Java Command Line Options (JCLO) package performs this task for a variety of option styles. It also uses Java's reflection capability to automatically assign values to variables in a specified class. Introduction Even in these days of sophisticated graphical user interfaces, many programs have a wide variety of command line options that help specify their behavior. It is also the case that command line only programs continue to enjoy wide use. It is also the case the command line arguments can become quite complicated, e.g.: -Djava.util.logging.config.file=All.finest -1 --list --this=that Some languages have built-in parsers for command line options; perl and bash ar... (more)

Agile Testing Solution for Java

Traditional testing methods are long, drawn out and tedious. Moreoften than not organizations spend millions of dollars testing their scripts using a technique that can be slow, costly and sometimes incorrect. ETM is my attempt to address this lag, a bottleneck in your IT assembly line, that can bring your whole project to a grinding halt. Traditional, testing approaches require four major entities to work with each other. These are: The Tester The Developer The Business Owner The Business User The Developer develops the software based on some requirements from the Business Owner. Once the software has been developed, the developer does some Unit Testing. Satisfied with the results of his Unit Testing, the developer pushes the application to the next stage, where it will go through a series of tests to ensure its quality and compliance. Enter the Tester, the protagon... (more)

So...Exactly How Can We Increase Java Productivity by 25%?

Last month, JavaBlackBelt members reported that their productivity would increase by 25% if management installed Java Skills Management.  The pressing question from managers: how do we do this? I've talked with JBB founder John Rizzo and he's developed a 6-step "installation plan" for Java skills management.  Those steps and highlights are below my salutation. If you’d like to discuss/start this process, feel free to say so at: globalforcedirect.com/discovery-sessions/. Step 1. Discovery No-charge JBB consultations on installing Java skills management into the organization.  JBB explains possibilities, explore priorities, establishes extent/timeline.  Managers describe organizational make-up, skills champions, existing training methods, employee review/reporting needs.  Developers describe missions, key technologies. Step 2. Startup Installation of JavaBlackBelt Enterpr... (more)

An Introduction to Abbot

Graphical user interface (GUI) testing is a potentially problematic area because constructing effective test cases is more difficult than the corresponding application logic. The roadblocks to effective functional GUI testing are: Traditional test coverage criteria like "80% coverage of the lines of code" may not be sufficient to trap all the user interaction scenarios. End users often use a different user task interaction model than the one conceived by the development team. Functional GUI testing needs to deal with GUI events as well as the effects of the underlying application logic that results in changes to the data and presentation. The common methods for functional GUI testing are the "record and execute" script technique and writing test programs for different scenarios. In the "record and execute," the test designer interacts with the GUI and all the eve... (more)

Sun Announces Strong Growth in NetBeans Partner Ecosystem

Sun Microsystems and the NetBeans Community announced new third-party support for the NetBeans Integrated Development Environment (IDE). These new modeling, business intelligence and mobile application development partner offerings continue to enhance the productivity and choice that developers have with the NetBeans platform. Visual Paradigm International Ltd announced its release of the award winning modeling extension for the NetBeans IDE, Visual Paradigm Smart Development Environment (SDE). A leading vendor in modeling solutions, Visual Paradigm's offering helps ensure NetBeans developers have access to advanced UML functionality, in addition to the current UML functionality in NetBeans. Mobile Distillery announced the availability of a new NetBeans plug-in. This plug-in allows developers to use the latest version of Celsius, Mobile Distillery's award winning mo... (more)

Java for Managers -- What Should They Know?

Last month, JavaBlackBelt completed a survey where developers said their teams would be 25% more productive if their management committed to skills management... which led me to consider: Which Java technologies do developers think that managers should understand better in order to make great decisions about skills management? I'll suggest, as a start: -- Java SE and EE basics -- ORM's (Hibernate, ...) -- Web Frameworks (lStruts 2, ...) -- IDEs (Eclipse, ...) -- Source Code Mgmt -- Testing Methods -- JavaScript -- Ajax Very open to your thoughts, and who might find such a course useful... feel free to comment here and/or send email to java4managers@globalforcedirect.com. ... (more)

How to Diagnose Java Resource Starvation

We can visualize resource starvation using an elaborate rendition of the Dining Philosophers Problem. This classic metaphor of resource allocation among processes was first introduced in 1971 by Edsger Dijkstra in his paper "Hierarchical Ordering of Sequential Processes." It's been a model and universal method for verifying theories on resource allocation ever since. The metaphor goes like this: There are three well-known philosophers in an Asian bistro. Dinner is served but they are only given three chopsticks because the restaurant's supply truck has been stuck in a snow storm for a couple of days. Naturally each philosopher needs two chopsticks to eat his dinner and each is protected from interference while he uses a chopstick. Plato skipped lunch that day and insists that he should have priority or else he'll faint. If he doesn't give up his chopsticks, the other ... (more)

eLearning + Coaching = Breakthrough in Java Skills?

JavaBlackBelt just announced its “Coached e‐Learning” for Java developers. In a developer survey to be released next week, this Coached e‐Learning was selected as the #1 choice for Java learning compared with classroom training and self‐paced e‐Learning. Here’s how it works: 1. In these courses, the coach meets with the student to begin each course, reviews the course plan and materials, and agrees to a schedule. 2. The student then learns at their own pace from the JavaBlackBelt eLearning platform ‐‐ online materials and videos, community forums, exercises, and exams. 3. Along the way, the coach checks intermediate goals, answers questions, helps overcome obstacles, and oversees progress. 4. The course is completed when the student passes the final exam, which, depending on the student’s schedule and pace of learning, follows one to two weeks of coursework. The ... (more)

Anatomy of a Java Finalizer

A couple of patterns that could cause Java heap exhaustion were identified from years of research at IBM. One interesting scenario was observed when Java applications generated an excessive amount of finalizable objects whose classes had non-trivial Java finalizers. What Is a Java Finalizer? A Java finalizer performs finalization tasks for an object. It's the opposite of a Java constructor, which creates and initializes an instance of a Java class. A Java finalizer can be used to perform postmortem cleanup tasks on an instance of a class or to release system resources such as file descriptors or network socket connections when an object is no longer needed and those resources have to be released for other objects. You don't need any argument or any return value for a finalizer. Unfortunately the current Java language specification does not define any finalizers for a... (more)