##What is reflection?
Since reflection has "reverse", it means that it is a reverse process. So let’s first take a look at what the forward process is like. Design a class, instantiate the class into an object, and the object calls methods or properties to implement some functions.你:妈妈,你知道剪刀在哪吗? 妈妈:我那天放针线的时候好像在针线盒里看到了,你去找找有没有。针线盒在客厅的茶几上。 你:好的。Then you derived the "sewing box" from "sewing" ", and then found "Scissors" from the "Sewing Box".
Find the sewing box - get the Class class
First of all, what is the Class class?
The Class class is the class of the People class, just like the People class is the class of p. The Class class is the "grandfather" of p.Find the scissors - get the information of the People class
Application 1: Get all the methods of the class
Application 2: Get all the attributes of the class
##The call is similar to the calling method:
Run result:
The constructor is similar, but not Again.
The running results are as follows. The results of the two calling methods are the same: The above is just a list of individual functions. For more specific information, you can find it in the API documentation: http:/ /tool.oschina.net/apidocs/apidoc?api=jdk-zh ##The concept of reflection What is the definition of reflection? Is reflection necessary? Disadvantages of reflection? What are the criteria for whether to use reflection? Java introductory tutorials, welcome to learn online!
The above is the detailed content of what is java reflection. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

WebStorm Mac version
Useful JavaScript development tools

Atom editor mac version download
The most popular open source editor

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software
