what is different between static and non static methods ,using
example

Answer Posted / siva

we should create object form calling Non static method but
no necessary to create object for calling static method
using class name we call static method

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain what is transient variable in java?

858


What are parameters in a method?

780


Is 0 true or is 1 true?

701


Differentiate between class and structure.

800


What are access specifiers in java ?

784


What is an off by one error in java?

696


Tell me how many ways are there to initialise an integer with a constant.

849


Is it possible to write a regular expression to check if string is a number?

760


What is defined as false sharing in the context of multithreading?

753


What is super?

778


Convert Binary tree to linked list.

812


What is the use of list in java?

729


Can we override private method?

789


What is maximum size of arraylist in java?

684


What is scope & storage allocation of static, local and register variables? Explain with an example.

783