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
Can a class extend 2 classes in java?
How do you declare a variable?
what is meant by encapsulation?
Why is String immutable?
Can we change the value of static variable?
What is bytecode verifier?
What are the advantages of java over C++?
What is static and final keyword in java?
How to make a non daemon thread as daemon?
What is t type java?
What are nested classes in java?
What is json parser in java?
Why is a string immutable?
Write an algorithm for quick sort?
Explain the use of shift operator in java. Can you give some examples?