Explain about global variables in Java?

Answer Posted / ravikiran(aptech mumbai)

global variables are declared globally and not inside any
method.
They are applicable to all the parts of the class

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the history of java?

533


Is empty list java?

513


What does jre stand for?

596


What is the purpose of finalization in java programming?

554


Tell some latest versions in JAVA related areas?

548






Can classes declared using the abstract keyword cab be instantiated?

552


Can we create our own wrapper class in java?

536


What is bufferedwriter?

534


Difference between class#getinstance() and new operator ?

638


What is the lifetime and scope of a variable?

509


Explain the importance of finally block in java?

562


What are alternatives to java serialization?

593


Why do we need variables?

523


Explain the difference between abstraction and encapsulation.

532


What is Java Shutdown Hook?

604