Home Answers Viewqa Java-Interview-Questions method inside the method??

 
 


udayalakshmi
method inside the method??
0 Answer(s)      a year and 6 months ago
Posted in : Java Interview Questions

can't we declare a method inside a method in java?? for eg: public class One { public static void main(String[] args)

{ One obj=new One(); One.add(); private static void add() {

  System.out.println("hiii..."); 
}

} }

not getting compiled y???

View Answers









Related Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.