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 the basic concept of java?

774


What are the 6 functions?

723


Why do we need autoboxing in java?

759


Why string is called as immutable?

723


Is string is a data type?

747


Explain covariant method overriding in java.

787


Can we overload the main() method?

778


How we can execute any code even before main method?

782


What is java reflection?

755


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1677


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

756


What is the difference between abstract class and interface1? What is an interface?

786


What is core java called?

727


What is the java idl system?

780


Why is string buffer better than string ?

800