This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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


Win a copy of Head First Android this week in the Android forum!
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: 24189
    
  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: 14916
    
  26

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 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java
 
It's not a secret anymore!