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 method in research paper?

579


What is the program development process?

569


What is the final variable?

585


What is default constructors?

545


What is stack class in java?

550






How do constructors use this() and super()?

553


What are extraneous variables examples?

538


FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?

2644


What's the default access specifier for variables and methods of a class?

521


Explain parallel processing in java8?

639


What is data string?

505


Is a string literal?

529


What is nested top-level class?

584


Does chrome use java?

527


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

590