First Program in Java | Chapter - 2 || Code Ambition

Опубликовано: 04 Январь 2022
на канале: Code Ambition 2K
34
8

FIRST PROGRAM IN JAVA:
Syntax:
class FirstClass
{
public static void main(String args[ ])
{
System.out.println("Hello World");
}
}

Basic key point :

public: The keyword public is an access specifier that declares the main method public and therefore making accessible to all.

static: static is a keyword which create the separate memory to the variable or the methods. The static members are executed from its own memory location. The main method must always be declared as static.

void: The type modifier void suggest that the main method does not return any value.

main(): Every java application program must include the main() method. This is the starting point for the interpreter to began the execution for the program.

String: String is a class of java library that is used to contain the group of characters.

System: System is a class of java library which provide the feature to intract with system. "out" is the output stream which logically connect the program with console.


На этой странице сайта вы можете посмотреть видео онлайн First Program in Java | Chapter - 2 || Code Ambition длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Code Ambition 2K 04 Январь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 34 раз и оно понравилось 8 зрителям. Приятного просмотра!