sort by date

developerWorks (IBM)
Focus On Java

sitios en español

Process Handling in Java 9
Peter Verhas07/24/2017

Managing operating system processes in Java has often been a daunting task. The reason for that is the poor tooling and poor API that are available. To be honest, that is not without reason: Java was not meant for that purpose. If you wanted to manage OS processes, you had the Shell, Perl script, whatever you wanted. For larger applications that faced tasks that are more complex, you were supposed to program the issue in C or C++.

When you really had to manage processes from Java, you had to create operating-system-dependent code. It was possible — you could query some environment variables and then implement different behavior depending on the operating system. This approach works, but it has several drawbacks. Testing costs more and development is more complex. As Java became more and more mature and widespread, the demand for this type of applications arose. We can clearly see, for example, that this question put up on StackOverflow in 2011 had more than 100,000 views. Some applications, and thus some developers, needed a solution to this problem — not a workaround.

FP in Scala for OOP Programmers (Part 1)
Tomer Ben David07/24/2017

Have you ever been to a Scala conference and told yourself, "I have no idea what this guy is talking about?" Did you nervously look around and see everyone smiling, saying, "Yeah, that's obvious?" If so this post is for you. Otherwise, just skip it. You already know FP in Scala.

This post is optimistic, and although I'm not going to say functional programming in Scala is easy, our target is to understand it, so bear with me. Let's face the truth: functional programming in Scala is difficult if you are just another working class programmer coming mainly from a Java background. If you came from a Haskell background, then, hell, it's easy. If you come from a heavy math background, then hell yes it's easy! But if you are a standard working-class Java backend engineer with an OOP design background, then hell yeah it's difficult.

Using IntelliJ IDEA to Develop Apps With Grails 3 [Video]
Andrey Cheptsov07/23/2017

Last Thursday, we had a pleasure to host a live webinar with Jeff Scott Brown, the founder of the Grails framework. Jeff gave a comprehensive overview of the Grails 3 support in IntelliJ IDEA (both Community and Ultimate.)

In case you missed it, here’s a recording along with a transcript of the Q&A session. Enjoy!

A Curious Java Language Feature and How it Produced a Subtle Bug
Lukas Eder07/22/2017

Java’s visibility rules are tricky at times. Do you know what this will print?

package p;
import static p.A.x;
class A {
    static String x = "A.x";
class B {
    String x = "B.x";
class C {
    String x = "C.x";
    class D extends B {
        void m() {
public class X {
    public static void main(String[] args) {
        new C().new D().m();

Java Collections Performance, LISTS
Language: Java, Expertise: Intermediate - A list is an ordered collection of elements.
Java BlockingQueue
Language: Java, Expertise: Intermediate - Learn how to effectively use BlockingQueue in Java.
Using String.join to Concatenate Strings
Language: Java, Expertise: Intermediate - Learn to use this easy utility method in String class.
Calling Java Methods Using Lambda Expressions
Language: Java, Expertise: Intermediate - Explore a few expressions for calling Java methods.





Java and Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. javasight is independent of Sun Microsystems, Inc.