answersLogoWhite

0

What are separator in java?

Updated: 11/1/2022
User Avatar

Wiki User

11y ago

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

11y 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


What is the difference between water separator and moisture separator?

A water separator is used to remove bulk water from a gas stream, while a moisture separator is used to remove fine water droplets or mist from a gas stream. Water separators are typically used in larger industrial applications, while moisture separators are used in processes where precise control of moisture content is important, such as in compressed air systems.


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 the purpose of a 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 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.