Channel Avatar

AKH Coding Class @[email protected]

222 subscribers - no pronouns :c

Hello Guys, Welcome to AKH Coding Class. My name is Arun Kum


Welcoem to posts!!

in the future - u will be able to do some more stuff here,,,!! like pat catgirl- i mean um yeah... for now u can only see others's posts :c

AKH Coding Class
Posted 1 year ago

Good news for Java Beginner who wants to start learning Java:
If you already know JAVA then you also know that to print a simple "Hello World" in console we need to write too many syntax like below,
-----------------------------------------------------------------------
public class MyFirstJavaClass {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
------------------------------------------------------------------------
But in Java 21, you don't need to remember all the syntax, below syntax is enough to print "Hello World",
------------------------------------------------------------------------
void main() {
System.out.println("Hello World");
}
------------------------------------------------------------------------
This feature is known as "Unnamed Classes and Instance Main Methods" and you will get details in below official link,
openjdk.org/jeps/445

0 - 0

AKH Coding Class
Posted 2 years ago

JVM stand for ?

0 - 0