answersLogoWhite

0

What is the syntax of global variable in java?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

There's no global variables in Java.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the syntax of global variable in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why java do not support global variable declaration?

in order to acheive a inheritance and data encapsulation property global variables are not declared in java.


How do you convert string to int in Java?

One can convert a string variable to an int variable in Java using the parse integer command. The syntax is int foo = Integer.parseInt("1234"). This line will convert the string in the parenthesis into an integer.


What is the meaning of new keyword in java?

There is 48 reserved keywords currently defined in the java language. These keywords, combined with the syntax of the operators and separators,form the definition of the java language. these keywords can't be used as names for a variable,class or method. (chandramohan singh)


The PHP syntax is similar to which languages?

Its similar to a number of languages such as C, C++, Java and Perl.


What is global variable in java?

A local class is declared locally within a block of Java code.You can even have classes declared inside a method. such classes are called local classes.


What is native variable in java?

native is a key word used in java method. there is no variable as native in java


Will the java compiler translate a source file that contains syntax errors?

No it will not. Any java source file that has syntax errors will not be translated fully. The compiler will spit out errors based on the syntax problems in your code.


Java syntax are based on which language?

Java's syntax is primarily based on the syntax of the C and C++ programming languages. James Gosling and his team, the creators of Java, aimed to make Java familiar to programmers who were already proficient in C and C++. This approach facilitated the adoption of Java among developers with prior experience in these languages. At AchieversIT, our Java training courses cover not only the syntax but also the core concepts and principles of Java programming, enabling students to become proficient Java developers.


What is the Java grammar?

"Java grammar" is the way of writing a program with correct syntax of various commands used in java language.


How do you set java environment variables?

You need to set The CLASSPATH variable which is an argument set on the command-line that tells the Java Virtual Machine where to look for user-defined classes and packages in Java programs. Syntax is java -classpath "path to the packages". Set the PATH variable if you want to be able to conveniently run the Java 2 SDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. To set the PATH permanently, add the full path of the j2sdk1.4.2_version\bin directory to the PATH variable. -sravyaa


What is the syntax of Java?

See the related links section for a link to the official Java language specification.


What is syntax of java?

See the related links section for a link to the official Java language specification.