What is a method ?

Answer Posted / praveen

A method is set of properties or behaviour of Datamember
and colletion of operations of perticuler class
methods are two types istance and static
we can call the methods directly with using static keyword
in static methods
we can call the instance methods by using creating of
object of the class

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does arrays sort do in java?

518


Differentiate between run time error and syntax error.

532


How do you create a first line indent?

488


What are different access specifiers in java? Explain

602


What is the default value of local and global variables?

542






What is treeset and treemap in java?

549


Why does java have different data types for integers and floating-point values?

510


What is a static method in java?

511


What is the escape character in java?

490


What is array initialization in java?

471


What is the main purpose of serialization in java?

504


What is string subsequence method?

598


What's the difference between comparison done by equals method and == operator?

514


Explain the difference between jdk, jre, and jvm?

571


What is method overloading in JAVA? Why is it not present in C ?

561