DEV Community

Kandasami T
Kandasami T

Posted on

Java Day1

class Second
{
public static void main(String[] args)
{
Second sec = new Second();
sec.add(10,20);
}
public void add(int no1, int no2)
{
//definition or body
}

Result:-

Image description

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay