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
When should you use arraylist and when should you use linkedlist?
Is nullpointerexception checked or unchecked?
How do weakhashmap works?
What is ternary operator? Give an example.
What is local declaration?
What is a data structure java?
How will you call an Applet using Java Script Function?
Why put method is used?
Can java run on google chrome?
Does variable declaration allocate memory?
What is variable declaration and definition?
Explain about main thread in java?
What is the best way to findout the time/memory consuming process?
How is treeset implemented in java?
What does it mean to be immutable?