A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Concept of Nested method call or method inside method

// method inside method
class five
{
    void m1()
    {
         m2();
        System.out.println("hello");
    }
    void m2()
    {
        System.out.println("hiii");
       
    }
    public static void main(String args[])
    {
        five v=new five();
        v.m1();
        v.m2();
    }
}

output:



LEARN TUTORIALS

.

.