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 are wrapper classes in java?
what do you understand by the term string with respect to java?
how can you take care of mutual exclusion using java threads? : Java thread
What is the largest long allowed by java?
what is singleton in java?
What is the difference between actual and formal parameters?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What are controls and their different types in awt?
Is math class static in java?
Define reflection.
How many bytes are a float?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is equals method in java?
what invokes a threads run() method? : Java thread
Name few java.lang classes introduced with java 8 ?