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

Pushpendra Singh

Total Post:0

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

    Post:240

    Points:1200
    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!