What is difference between static method and static
variable?

Answer Posted / jimm

static variable can be used by static as well as non-static
method.
and static method only uses static variable

Is This Answer Correct ?    12 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by nested loop?

534


What is the difference between menuitem and checkboxmenu item?

767


What is the final class?

546


How many digits is int32?

532


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

828






What is a functional interface?

537


How do you take thread dump in java?

544


What is the purpose of the enableevents() method?

571


What is an immutable object?

574


Who developed java?

559


What is appletviewer?

558


What are the drawbacks of reflection?

555


Why vector is used in java?

547


What are the different types of collections in java?

523


What is difference between fail-fast and fail-safe?

580