Modifiers
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
static?
Why is
static abstract void k12();
incorrect ?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I always wanted to find out if there is anything construct in Java that will allow polymorhism for static method methods?
Thanks
Barkat
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Whatever doesn't kill us ...<br />Is probably circling back for another try.<br />SCJP 1.4
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Welcome to Javaranch
We'd like you to read the Javaranch Naming Policy and change your publicly displayed name (change it here) to comply with our unique rule. Thank you.
PS: Quote from the naming policy:
For your publicly displayed name, use a first name, a space, and a last name. Obviously fictitious names or improperly formatted names may be locked out.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Static methods do not participate in polymorphism. They can't because they are inlined at compile time.
Hey this is new to me. I only thought final methods were inlined at compile time. What other kinds of method can be inlined?
_ _____ _ <br />Used to be a Java Programmer but now I work on Microsoft Technologies - Word, Excel and Outlook!
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
_ _____ _ <br />Used to be a Java Programmer but now I work on Microsoft Technologies - Word, Excel and Outlook!
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
https://coderanch.com/t/201812/Performance/java/Making-everything-compiler-allows-final
The bottom line is that any method that can possibly be inlined will end up being inlined as soon as possible, either at compile time or runtime.
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I think the C/C++ compilers take these details into consideration before inlining. Any links on this topic?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I am sure Java takes this into account but... a method in Java > 64k bytes!!! Was it written by a COBOL programmer?Originally posted by Vin Kris:
(because i read somewhere that the maximum size of a single method is ~64k bytes)
(This is not meant as a swipe at COBOL programmers. It is simply the case that COBOL programmers generally write large scale procedural top down programs.)
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
| You are HERE! The other map is obviously wrong. Better confirm with this tiny ad: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |








