DEV Community

Discussion on: Java 13 is here!

Collapse
 
luccabiagi profile image
Lucca Biagi

I worked a lot with Java 8, but now I'm using 11. It's nice to use 'var' :3

Do you know any reason for changing to 13?

Collapse
 
siy profile image
Sergiy Yevtushenko

Perhaps this one:

        return switch(header) {
            case JWT -> JwtConverter.create();
            case BASIC -> BasicConverter.create();
        };

Collapse
 
rossholloway94 profile image
Ross Holloway

Java 13 introduces String literals, yield in switch statements (in place of return), and a new garbage collection which is probably worth looking into