Explain about global variables in Java?

Answer Posted / niranjanravi

Global variables are not possible in java because the
concept of Encapsulation is eliminated here.it is not in
the main() method where we declare variables.

Is This Answer Correct ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java command?

652


What is the file extension for java?

707


Explain about serializable interface in java?

674


Which is fastest collection in java?

645


How does the java compiler work?

614






What are the different tags provided in jstl?

658


Does list maintain insertion order java?

614


What is the formula to calculate percentage?

621


Explain the difference between transient and volatile in java?

666


what are the states associated in the thread? : Java thread

693


Can string be considered as a keyword?

680


What is a local class in java?

666


Is java a digit method?

618


Explain the importance of import keyword in java?

639


Where pragma is used?

700