use of comma and period/dot

Опубликовано: 07 Август 2026
на канале: Gua Java
46
5

Some characters are used as separators
() parenthesis
{} Braces
[] Brackets
; semicolon
, Comma
. Period

in this video we will learn what is the use of period/ dot in java and also use of comma.
comma is used as follow:
Separates consecutive identifiers in a variable declaration.
Also used to chain statements together inside a for statement.
period/dot is used as follow:
Used to separate package names from sub packages and classes.
Also used to separate a variable or method from a reference variable.