permaculture playing cards*
The moose likes Beginning Java and the fly likes java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java" Watch "java" New topic
Author

java

sekar ramalingam
Greenhorn

Joined: Aug 29, 2006
Posts: 4
inside the main method, i.e public static void main (String args[]), is is possible to declare a method?. if not why?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Clearly a test or interview question, based on the content of several questions posted together. Please, nobody give this guy an essay answer!

sekar ramalingam, let's hear your best guess at an answer, and then we will help you refine it.


[Jess in Action][AskingGoodQuestions]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14114
    
  16

Sekar, why don't you write a small test program to try it out for yourself?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java