O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

There's more...

We can invoke an undefined method. Take a look at the following example:

public void newMethod(){  System.out.println("New  Method");  undefinedMethod();}

However, the method cannot be invoked before the method being used has been defined:

public void undefinedMethod(){  System.out.println("Now defined");}

We can invoke newMethod() only after we have defined undefinedMethod().

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required