menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Static & N...
source image

Dev

3w

read

44

img
dot

Image Credit: Dev

Static & Non-static methods in java .

  • A method in Java is a set of instructions that can be called for execution using the method name.
  • There are mainly two types of methods in Java: pre-defined methods and user-defined methods.
  • Pre-defined methods are already available in the Java class library, while user-defined methods are created by the programmer to perform specific tasks within a program.
  • User-defined methods can further be categorized into static methods, which belong to the class itself and can be called without an instance, and non-static methods, which are associated with an instance of a class.

Read Full Article

like

2 Likes

For uninterrupted reading, download the app