Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

A machine-code generator can inline the body of a final method ?

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I came across this in a practice exam

The answers are
a.
b.
e.
I unstand a and b, but will e be on the exam.
I have read through chapter 8 of Kathy and Bert's book and do not recall seeing this anywhere.
Should I spend some time studying this?
Thank You
 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wouldn't worry about that one, Ryan. You don't really need to know what the code looks like once it's compiled for the exam.
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You needn't worry about the "hows" but you should know what inlining is and what are the implications of inlining. Here's an example:

Compile these three classes and run InlineTest. It will output "xxxxx". Now change s in Parent to "yyyyy", recompile Parent (not Child) and re-run InlineTest. It still prints "xxxxx". The reason is that s has been inlined in Child since it was marked as final. Try the same thing without s being marked as final and changes to s in Parent are picked up immediately in Child.
[ April 25, 2003: Message edited by: Thomas Paul ]
 
No more fooling around. Read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic