Tutorialslot.com

youtube facebook twitter gmail pinterest

Keywords In Java


Keywords in Java:
There are many keywords that can be defined in the Java language. These keywords,
combined with the syntax of the operators and separators, forms the foundation of the Java
language. These keywords cannot be used as a class name,variable name or method name.

abstract , continue , for , new , switch , assert , default , goto, package, synchronized , boolean , do , if , private , this , break , double , implements , protected , throw , byte , else , import , public , throws , case , enum , instanceof , return , transient , catch , extends , int , short , try , char , final , interface , static , void , class , finally , long , strictfp , volatile , const , float , native , super , while

Separators:
In Java, there are a few characters that are used as separators. The most commonly used separator in Java is the semicolon(;). As you know, it is used to terminate statements


SYMBOL NAME CAUSE
( ) Parentheses defines precedence in expressions containing control statements and other conditional statements.It stores the list of parameters present in method definition and invocation
{ } Braces defines block of code for classes,methods and stores values that are initialized in arrays.
[ ] Brackets Used for array type declaration and also used when dereferencing array values.
; Semicolon used for terminating statements.
, Comma used for separating consecutive identifiers in a variable declaration and also for chaining statements together inside a "for" statement.
. Period Used to differentiate package names from subpackages and classes. Also used to separate a variable or method from a reference variable.



Advertisement Powered By Google Adsense






IF YOU LIKE THIS TUTORIALS PLEASE SHARE

Share on whatsapp

POPULAR TAGS

Java java tutorials learn java java programming tutorial learn java online learning java professionals tutorials Multithreading Generics Object Oriented Language Methods Polymorphism Inheritance