Skip to main content

Java Reflection Performance Analysis Using Different Java Development

  • Chapter
Advances in Intelligent Control Systems and Computer Science

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 187))

Abstract

The reflection technique is used by programs that need to examine or modify the runtime behavior of applications in the Java Virtual Machine. This is a powerful instrument, but its use should bring some concerns related to performance overhead, security problems, exposing the private fields - which are not accessible through non-reflective code, losing benefits of compile-time type checking, reflective code being clumsy and verbose. This paper concentrates upon the performance overhead. Tests were made in order to analyze objects creation and method calls using primitive and reference arguments, both by direct and reflective invocation.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Cantwell Smith, B.: Procedural Reflection in Programming Languages, Department of Electrical Engineering and Computer Science. Massachusetts Institute of Technology, PhD Thesis (1982)

    Google Scholar 

  2. Cantwell Smith, B.: Reflection and semantics in a procedural language. Technical Report MIT-LCS-TR-272. Massachusetts Institute of Technology, Cambridge, Mass. (January 1982)

    Google Scholar 

  3. Java Sun Tutorial

    Google Scholar 

  4. JavaTM Platform, Standard Edition 7 API Documentation

    Google Scholar 

  5. Sobel, J., Friedman, D.: An Introduction to Reflection-Oriented Programming. Indiana University (1996)

    Google Scholar 

  6. Bloch, J.: Effective Java. Addison Wesley (2008)

    Google Scholar 

  7. Sosnoski, D.: Java programming dynamics (2003)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Cătălin Tudose .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Tudose, C., Odubăşteanu, C., Radu, S. (2013). Java Reflection Performance Analysis Using Different Java Development. In: Dumitrache, L. (eds) Advances in Intelligent Control Systems and Computer Science. Advances in Intelligent Systems and Computing, vol 187. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-32548-9_31

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-32548-9_31

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-32547-2

  • Online ISBN: 978-3-642-32548-9

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics