Showing posts with label Parameter. Show all posts
Showing posts with label Parameter. Show all posts

Saturday, September 20, 2014

Published 9/20/2014 by with 0 comment

Illegal modifier for parameter ... only final is permitted

A local variable, i.e., method level variable or a parameter cannot be declared as static or public/private/protected. So local variables must be declared without these modifiers. For example, the following code is wrong:     void methodA(static int param) {         System.out.println(param);     }     void methodB(private int param) {  ...
Read More
    email this       edit