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 static data type in java?
How to sort an array from smallest to largest java?
What is the best way to findout the time/memory consuming process?
Does java allow default arguments?
What is Mutex (Mutual Exclusion Object) ?
Difference between this() and super() ?
What is lexicographically smallest string?
How does indexof work?
What is a Null object?
What are different data types?
Difference between Linked list and Queue?
What is the difference between yield() and sleep()?
Explain about oops concepts.
What is the parse method in java?
Is integer passed by reference in java?