class Trial{ public static void main(String[] args){ try{ System.out.println("Java is portable"); } } } code example
Example: public class HelloWorld{ public static void main(String []args){ System.out.println("Hello World"); } }
public class HelloWorld{
public static void main(String []args){
System.out.println("Hello World");
}
}