• Post Reply Bookmark Topic Watch Topic
  • New Topic

Maximum Java File Size  RSS feed

 
Richard West
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I would like to ask you guys a very general question.

Is there a maximum limit on how big a .java file(in kilobytes) can be, or is there no restriction on this?

Any help is graetly appreciated

Thank You

Yours Sincerely

Richard West
 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure, but if your .java file even comes close to 1MB(prolly a lot less) you have bigger problems. Just my opinion.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there's a (practical) limit on *.java file size, but there are effective limits on class sizes, and in particular, the amount of bytecode in an individual method (2^16 bytes, I believe.) It's not terribly hard to write a JSP which compiles down to a Java file which in turn won't compile because the one big JSP-rendering method is too large; I've seen several JavaRanch posting over the years where people have done exactly this.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!