What is difference between static method and static
variable?

Answer Posted / archana

if we declare a variable as static then it has only one copy
for all classes. if a method is declared as static without
using object we can call it.

Is This Answer Correct ?    11 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string made of?

736


What is the driver class?

764


Justify your answer that you can't define a method inside another method in java, if you can then how?

811


Is string is a keyword in java?

744


What is a java lambda expression?

789


Is sizeof a keyword in java programming?

819


What is type parameter in java?

721


Is array serializable java?

724


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

805


What is the different between get and post?

728


What is locale?

807


What do you mean by pointer value and address?

791


What does provide mean construction?

815


What is a super method?

757


What is module in oop?

775