My interview asked what is dynamic variable in java and
where we use them.
Answers were Sorted based on User's Feedback
Answer / lakshmikanth
Dynamic variable is a variable created/assigned by the
compiler during the run/compilation time.
Is This Answer Correct ? | 9 Yes | 2 No |
Answer / nishant kumar
Dynamic variable is a variable than is declear before the compile and assigned the value at the run time.
Is This Answer Correct ? | 2 Yes | 0 No |
they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } }
2 Answers DNS, IPSR Solutions,
What exactly is a .class file?
What is the difference between method and means?
How do you stop a thread in java?
What is the difference between abstract classes and interfaces?
Why constructor has no return type?
Can java list be null?
what is the reason behind non static method cannot be referenced from a static Context?
What is double in java?
Can we have this () and super () together?
What is the purpose of the enableevents() method in java programming?
What is static method with example?