13
Lwrncex
8y

Which is better?

Comments
  • 1
  • 11
    Your java formatting is all wrong. Braces go at the end of the line! Also, String[] args, not String args[]!

    I think I missed the point...
  • 2
    I know you *can*, it just looks weird
  • 1
    I seriously dislike Java, but... you compare _functions_ to a _class_ methods! And don't tell me you can't do a simple function without a class in Java.
  • 2
    and print is even from py2, so it's not even a function, rather statement - comparing 3 different things :P
  • 3
    Obviously Java! without a cup of java, no coding in any language would be possible.
  • 3
    Irrelevant! This is like asking: Which is better? Yellow, Orange or Blue...
  • 3
    Console.log(" hello world ")

    😁
  • 2
    anything but Java honestly
  • 4
    Java is the perfect balance. Not too complex, not too loosely typed.

    <3 Java
  • 2
    @KeyWeeUsr What's the problem in that? Just curious
  • 3
    Depends on the project, for bigger ones I'd go for java since it's just more readable to me, for smaller scripts I love python and C is reserved for when I really need a reason to commit suicide.
  • 1
    this is obviously the best one:

    fn main() {
    println!("{}", "Hello World!");
    }
  • 1
    Python is the best language for hello world!
  • 3
    echo "Hello World!"
  • 3
    @tahnik author probably compares simplicity or readability. But to compare you need to have similar stuff, not completely different to have an efficient comparison.

    With python its "ok", but java has a class. That's just additional unnecessary stuff that makes Java look bad, because the text is long, too much words and other stuff. And it's super-bad to show it to beginners for lang comparison.
  • 0
    # Best perl
    Say "hello world"
  • 0
Add Comment