Hello world program in java | First java program | Compile and run

Опубликовано: 07 Февраль 2016
на канале: Yogesh Patel
51
0

Simple java program step by step
It will print “Welcome to the world of java” in console.
Multi line comment /* comment */
Single line comment //
-------------------------------------------------------------------------------
public class WelcomeToTheWorldOfJava:
public: Access modifier
class: java keyword to declare a class
WelcomeToTheWorldOfJava: class name.
-------------------------------------------------------------------------------------------------
Public static void main(String [ ] args)
Public is a access modifier
Static is a reserved keyword in the java which means method is accessible by class name. object is not required.
void means nothing would be returned from the method.
main is a method name that takes array of String as an argument.
---------------------------------------------------------------------------------------------------
System.out.println(“ Welcome to the world of java. ”);
System is a class in the java.lang package.
out is a static member of the System class and is an instance of java.io.PrintStream
println is a method of java.io.PrintStream


На этой странице сайта вы можете посмотреть видео онлайн Hello world program in java | First java program | Compile and run длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Yogesh Patel 07 Февраль 2016, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 51 раз и оно понравилось 0 зрителям. Приятного просмотра!