• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java

 
sekar ramalingam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15216
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sekar, why don't you write a small test program to try it out for yourself?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic