answersLogoWhite

0

The general syntax of a Java method is:

[public|protected|private] [static] [final] [synchronized] returnType methodName(args...)

Where:

  • [] surrounds optional items
  • | separates items of which you must choose one
  • returnType is void or the name of a class or primitive type
  • methodName is a Java identifier
  • args... is a list (which may be empty) of class/primitive types and identifiers
User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is syntax in declaring a variable?

type your answer here


What is the correct syntax for declaring and initializing an array that contains the numers 0-9?

The syntax is: int a[10]; for (int i=0; i<10; ++i) a[i]=i;


What is the correct syntax for declaring and initializing an array that contains the numbers 0-9?

int x[]={0,1,2,3,4,5,6,7,8,9};


What is syntax in c plus plus for declaring a variable?

type variable {[optional array size]} {= optional initializer};


What has the author Edward Parmelee Morris written?

Edward Parmelee Morris has written: 'On principles and methods in Latin syntax' -- subject(s): Latin language, Grammar, Syntax


How do you prevent syntax in programming?

Not possible; syntax cannot be avoided. (Syntax errors can be though.)


Are HTML tags and syntax the same?

No. Syntax is/are the rules of the language, tags are part of the syntax.


What are the methods devised for finding and removing both syntax and logic errors?

al baigne tange zot fer bien ban zen, ban bbc


What are some common questions about syntax in programming languages?

Common questions about syntax in programming languages include: "What is syntax and why is it important?", "How does syntax differ between programming languages?", "What are some common syntax errors and how can they be avoided?", and "How can I improve my understanding of syntax in a programming language?"


How does syntax affect setting?

Syntax is essential to any form of language. Without syntax, there is no setting, there is no way to explain it and no language. Language and setting are both comprised with syntax.


How syntax affect setting?

Syntax is essential to any form of language. Without syntax, there is no setting, there is no way to explain it and no language. Language and setting are both comprised with syntax.


What are some antonyms of syntax?

There are no antonyms of syntax. It's a noun.