0% found this document useful (0 votes)
48 views1 page

Java Main Method Example

This Java program prints "Welcome to java" when run. It imports the input/output package and defines a sample class with a main method that uses System.out.println to display the message on the console.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views1 page

Java Main Method Example

This Java program prints "Welcome to java" when run. It imports the input/output package and defines a sample class with a main method that uses System.out.println to display the message on the console.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Import [Link].

*;

Class sample

Public static void main(String [] args)

[Link](Wellcome to java);

You might also like