Connect with one of the following accounts


Please wait while we redirect...

Views: 357   

This is one if the tricky question in Java, as we know every statement in java ends with semicolon (;) so the System.out.println()
Following code shows you how to print a String without using a single semicolon in code.

public class HellowWorldWithoutSemicolon {

    public static void main(String[] args) {

        if (System.out.printf("Hello World!") == null) {



Hello World!

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News