answersLogoWhite

0


Best Answer

Separators help define the structure of a program. The separators used in HelloWorld are parentheses, ( ), braces, { }, the period, ., and the semicolon, ;. The table lists the six Java separators (nine if you count opening and closing separators as two).

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Separators in java are part of syntax,missing of these separators causes syntax errors or misinterpretation of java program.

()-Encloses arguments in method definitions and calling; adjusts precedence in arithmetic expressions; surrounds cast types and delimits test expressions in flow control statements.

{}-used to represent the block of codes and static initialization.

[]-size of arrays can be inserted in-between the brackets during initialization.

e.g:- int a[]=new a[10];

; -indicate the end of statement

. - used to access the methods of particular class through objects.

: -used after the loop labels.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are separator in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is separator?

What is the function of separator


Is a washing machine a separator?

yes a washing machine is a separator


How do you replace an oil air separator on a 2000 BMW 740il?

Do you mean oil separator or oil separator valve? BUELLGUY


When was GEA Westfalia Separator created?

GEA Westfalia Separator was created in 1893-09.


What other way can you separate salt from water apart from evaporate?

a salt separator a salt separator


Path separator in windows?

In Windows, the path separator is the slash ( \ ) C:\Windows\Progra~1\


Bilge oil water separator circuit diagram?

circuit of bilge oil water separator


How much is delaval separator worth?

The Delaval cream separator varies depending on the condition of the item. You can find this type of separator online for about $40 to about $300 depending on condition and size or model.


What is function of oil separator in diesel engine vehicle?

oil separator working is separat oil & gas


What foods are prepared using a cream separator?

Skim milk is prepared using a cream separator. For more information about what other foods are prepared using a cream separator, check out the website, Britannica.


What is the purpose of a gravy separator?

A gravity separator is a kitchen tool which is designed to separate the fat from pan drippings leaving the flavorful juices behind. Some people may call it fat separator.


What is classpath and path in java?

if you are using the IDE then there is no need to set class path, ant you are using Command prompt to run the java program then you need to set the class path where the class (which is going to be used in your program) is actually located,use the following command:set calsspath=%classpath%;actual_path_of the class;we cancall more than two class by using this command by using separator (,)