What is difference between static method and static
variable?

Answer Posted / kalandi sahoo

static variable is uniqe copy of in memory.that is every
object is share the static variable.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the hashcode () and equals () used for?

738


What is mnemonic in assembly language?

826


What are data types in oop?

796


Why main method is called first in java?

762


What is the main difference between java platform and other platforms?

725


Is string an object?

881


What is default exception handling in java?

779


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

825


What is return type in java?

847


What is lazy programming?

788


What is difference overloading and overriding?

823


Is namespace same as package in java?

756


Is vector thread safe in java?

785


Which object oriented concept is achieved by using overloading and overriding?

825


Does treeset use compareto?

755