CAN YOU HAVE AN INNER CLASS INSIDE A METHOD AND WHAT VARIABLES CAN YOU ACCESS?

Pushpendra Singh

Total Post:241

Points:1205
Posted by  Pushpendra Singh
Java 
 952  View(s)
Ratings:
Rate this:
  1. Pushpendra Singh

    Post:241

    Points:1205
    Can you have an inner class inside a method and what variables can you access?

    yes, we can have an inner class inside a method and final
    variables can be accessed.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!