Answer Posted / rableen khurana
Yes we can access static variable in non-static
methods....and we can access instance variable in static
method also with the help of object......
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is abstract class constructor called?
What is a flag and how does it work?
What do you mean by aggregation?
What an i/o filter in java programming?
What is the difference between the font and fontmetrics classes in java programming?
What is string pool in java?
Is java hard to learn?
What is the difference between hashmap and hashtable? What is an interface?
What is a boolean flag in java?
Do I need java on my pc?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
Is java written in c?
How to perform merge sort in java?
What type of variable is error flag?
Can we declare the main method of our class as private?