FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 175   



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) {

        }
    }
}

Output:

Hello World!



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News