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 are "methods" and "fields"?

664


What are the steps involved to write rmi based programs?

651


What is the maximum size of array in java?

608


Name few java.lang classes introduced with java 8 ?

622


Is 0 true or false?

601






What is the difference between Error, defect,fault, failure and mistake?

747


What is anti pattern in cyber security?

630


Can you override static methods?

589


Is static a singleton?

623


How is garbage collection controlled?

810


What is stringwriter?

630


Explain the difference between an Interface and an Abstract class?

724


Is java still necessary?

721


What do you understand by final value?

682


What is the difference between JDBC 1.0 and JDBC 2.0?

2799