What is the difference between static and non-static
variables?

Answer Posted / javeed

* Non-static which ia(instence variable) can be accessed
only inside a non-sattic method.

* A static variable can be axxessed in both static and non-
static methods.

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the meaning of I ++ in java?

855


Explain the use of shift operator in java. Can you give some examples?

735


What are the drawbacks for singleton class?

759


Is array passed by reference in java?

800


Explain methods specific to list interface?

750


How many ways can we create singleton class?

737


What is a jagged array in java?

789


What about features of local inner class?

841


How do you allocate memory to object?

731


What is Applet Stub Interface ?

2171


How thread scheduler schedule the task?

816


what is a working thread? : Java thread

804


What is regex used for?

753


How do you do absolute value in java?

735


Can finally block be used without a catch?

741