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
What is the difference between stringbuffer and stringbuilder?
Explain try and catch keywords in java?
What is the purpose of garbage collection in java?
How do you write a good declaration?
can java object be locked down for exclusive use by a given thread? : Java thread
What does it mean that strings are immutable?
What are the advantages of passing this into a method instead of the current class object itself?
How to perform merge sort in java?
Can we create our own daemon thread?
Why does java does not support multiple inheritance? Explain
What is hashing principle in java?
What is the use of :: in java?
What is the meaning of find and replace?
What is a 16 bit word?
What is the benefit of using enum to declare a constant?