Separators in java

Symbolnameusage
( )parenthesesused to contains list of parameters & contains expression.
{ }bracesblock of code for class, method, constructors & local scopes.
[ ]bracketsused for array declaration.
;semicolonterminates statements.
,commaseparate the variables declaration & chain statements in for.
.periodused to separate package names from sub packages. And also
   used for separate a variable,method from a reference type.

Published by Atul maurya

i am student of computer science & engineering .i want to become a java developer. my hobby is to learn programming language in easy way.

Leave a comment

Design a site like this with WordPress.com
Get started