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 stream and buffer?
Why is singleton class used?
What is void class in java?
What is a treeset in java?
How to print an arraylist in java?
What is object cloning in Java?
What is java developer skills?
Is java platform independent?
What is an object in java and how is it created?
Is array synchronized in java?
How many types of classes are there in java?
Difference between nested and inner classes ?
what is thread? What are the high-level thread states? : Java thread
What is hashing principle in java?
What is the difference between multiple processes and multiple threads?