JAVA HELLO WORLD PROGRAM
So, the above program will be running as below on
your screen.
Output:
Now in this we gonna learn how to create a basic
program of any language ,yeah you are right "HELLO WORLD PROGRAM"
In this tutorial we learn how to create a hello world program in java.Hello world program motive is to print "Hello World" on the screen
Lets start it officially....
Q) Write a program to print "HELLO WORLD" on the screen?
Sol.
class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello, World!"); | |
} |
So, the above program will be running as below on
your screen.
Output:
Hello, World!
You can replace the text inside in the double inverted
comma with the text of your choice
eg:
Bigfootcode
Mohit Kumar
Or anything you like!!!!
Enjoy coding with " Bigfootcode "
Other related post:-
Shutdown someone pc using notepad trick
Let window speak to you
Create quiz game using notepad
Program to check planidrome
Find factorial using program
Program to check leap year
Program to sort an array
Program to multiply two matrixes
Program to find root of quadratic equations
Array coding interview questions
Program creating basic calculator
Program to convert Fahrenheit to Celsius or Celsius to Fahrenheit
Program to implement distance formula
Top featured feeds
Top pattern problems
Array coding interview questions
0 Comments
if you have any doubt let me know in comment