| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/blob/*name(/*path) |
| route-controller | blob |
| route-action | show |
| fetch-nonce | v2:ffc871d4-5ffa-042e-4bc2-c27a33df2014 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | B510:142C54:59E39F:7CDD0D:6AFCB955 |
| html-safe-nonce | bd2c707774fe9a21adf1083d910264bb64066bb70cd4de82fc78044ef19d2cb0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTEwOjE0MkM1NDo1OUUzOUY6N0NERDBEOjZBRkNCOTU1IiwidmlzaXRvcl9pZCI6Ijc5OTYyNTk2Njg0MDM3MzA3NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a0fbe86d735899b5d27111bb5d828cb99403e06b8e5f5b43fefe7ddacd415f98 |
| hovercard-subject-tag | repository:567096189 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///blob/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md |
| twitter:image | https://opengraph.githubassets.com/4b5d44c40fa809ac9bdd72eac32bdeaa86ecaf8b45c8811ba9237bcff40065ee/sharingjoin/bestJavaer |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b5d44c40fa809ac9bdd72eac32bdeaa86ecaf8b45c8811ba9237bcff40065ee/sharingjoin/bestJavaer |
| og:image:alt | 这是一个成为更好的Java程序员的系列教程. Contribute to sharingjoin/bestJavaer development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3084aead77cbcb4f4904fba53851fa1a0546b0dec3619bd250815e72588dc6d |
| turbo-cache-control | no-cache |
| go-import | github.com/sharingjoin/bestJavaer git https://github.com/sharingjoin/bestJavaer.git |
| octolytics-dimension-user_id | 18749359 |
| octolytics-dimension-user_login | sharingjoin |
| octolytics-dimension-repository_id | 567096189 |
| octolytics-dimension-repository_nwo | sharingjoin/bestJavaer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 269198820 |
| octolytics-dimension-repository_parent_nwo | crisxuan/bestJavaer |
| octolytics-dimension-repository_network_root_id | 269198820 |
| octolytics-dimension-repository_network_root_nwo | crisxuan/bestJavaer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5410e4bebd3e45b138c853ecef3992279d86d5af |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsharingjoin%2FbestJavaer%2Fblob%2Fmaster%2Fjava-basic%2Fjava-reflect.md |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsharingjoin%2FbestJavaer%2Fblob%2Fmaster%2Fjava-basic%2Fjava-reflect.md |
| Sign up | https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=sharingjoin%2FbestJavaer |
| Reload | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md |
| Reload | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md |
| Reload | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md |
| sharingjoin | https://redirect.github.com/sharingjoin |
| bestJavaer | https://redirect.github.com/sharingjoin/bestJavaer |
| Code | https://redirect.github.com/sharingjoin/bestJavaer |
| Pull requests | https://redirect.github.com/sharingjoin/bestJavaer/pulls |
| Actions | https://redirect.github.com/sharingjoin/bestJavaer/actions |
| Projects | https://redirect.github.com/sharingjoin/bestJavaer/projects |
| Security and quality | https://redirect.github.com/sharingjoin/bestJavaer/security |
| Insights | https://redirect.github.com/sharingjoin/bestJavaer/pulse |
| https://redirect.github.com/sharingjoin/bestJavaer |
| bestJavaer | https://redirect.github.com/sharingjoin/bestJavaer/tree/master |
| java-basic | https://redirect.github.com/sharingjoin/bestJavaer/tree/master/java-basic |
| History | https://redirect.github.com/sharingjoin/bestJavaer/commits/master/java-basic/java-reflect.md |
| https://redirect.github.com/sharingjoin/bestJavaer/commits/master/java-basic/java-reflect.md |
| bestJavaer | https://redirect.github.com/sharingjoin/bestJavaer/tree/master |
| java-basic | https://redirect.github.com/sharingjoin/bestJavaer/tree/master/java-basic |
| Raw | https://github.com/sharingjoin/bestJavaer/raw/refs/heads/master/java-basic/java-reflect.md |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#java基础-反射篇 |
| Java基础 反射篇 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#java%E5%9F%BA%E7%A1%80-%E5%8F%8D%E5%B0%84%E7%AF%87 |
| 反射的思想及作用 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E7%9A%84%E6%80%9D%E6%83%B3%E5%8F%8A%E4%BD%9C%E7%94%A8 |
| 反射的基本使用 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8 |
| 获取类的 Class 对象 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E7%B1%BB%E7%9A%84-class-%E5%AF%B9%E8%B1%A1 |
| 构造类的实例化对象 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E6%9E%84%E9%80%A0%E7%B1%BB%E7%9A%84%E5%AE%9E%E4%BE%8B%E5%8C%96%E5%AF%B9%E8%B1%A1 |
| 获取一个类的所有信息 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E4%B8%80%E4%B8%AA%E7%B1%BB%E7%9A%84%E6%89%80%E6%9C%89%E4%BF%A1%E6%81%AF |
| 获取类中的变量(Field) | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E7%B1%BB%E4%B8%AD%E7%9A%84%E5%8F%98%E9%87%8Ffield |
| 获取类中的方法(Method) | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E7%B1%BB%E4%B8%AD%E7%9A%84%E6%96%B9%E6%B3%95method |
| 获取类的构造器(Constructor) | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E7%B1%BB%E7%9A%84%E6%9E%84%E9%80%A0%E5%99%A8constructor |
| 获取注解 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E8%8E%B7%E5%8F%96%E6%B3%A8%E8%A7%A3 |
| 通过反射调用方法 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E9%80%9A%E8%BF%87%E5%8F%8D%E5%B0%84%E8%B0%83%E7%94%A8%E6%96%B9%E6%B3%95 |
| 反射的应用场景 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E7%9A%84%E5%BA%94%E7%94%A8%E5%9C%BA%E6%99%AF |
| Spring 的 IOC 容器 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#spring-%E7%9A%84-ioc-%E5%AE%B9%E5%99%A8 |
| 反射 + 抽象工厂模式 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84--%E6%8A%BD%E8%B1%A1%E5%B7%A5%E5%8E%82%E6%A8%A1%E5%BC%8F |
| JDBC 加载数据库驱动类 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#jdbc-%E5%8A%A0%E8%BD%BD%E6%95%B0%E6%8D%AE%E5%BA%93%E9%A9%B1%E5%8A%A8%E7%B1%BB |
| 反射的优势及缺陷 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E7%9A%84%E4%BC%98%E5%8A%BF%E5%8F%8A%E7%BC%BA%E9%99%B7 |
| 增加程序的灵活性 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%A2%9E%E5%8A%A0%E7%A8%8B%E5%BA%8F%E7%9A%84%E7%81%B5%E6%B4%BB%E6%80%A7 |
| 破坏类的封装性 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E7%A0%B4%E5%9D%8F%E7%B1%BB%E7%9A%84%E5%B0%81%E8%A3%85%E6%80%A7 |
| 性能损耗 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E6%80%A7%E8%83%BD%E6%8D%9F%E8%80%97 |
| 反射基础篇文末总结 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#%E5%8F%8D%E5%B0%84%E5%9F%BA%E7%A1%80%E7%AF%87%E6%96%87%E6%9C%AB%E6%80%BB%E7%BB%93 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#反射的思想及作用 |
| https://camo.githubusercontent.com/06769e8844e9af7d5483b4d643e9a787d797276b41539cef87d0eb567fbc0b3a/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539363532393731383731382d39303331353665662d326532322d343238652d393434392d6162323663656433623566382e706e67 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#反射的基本使用 |
| https://camo.githubusercontent.com/323c3309775cd0f49c45691326b0f6c327982251f6884980f477843c36e35f1f/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539363535353832333631312d30663832643537612d643262312d343435372d613130662d6233366531303163306238652e706e67 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#获取类的-class-对象 |
| https://camo.githubusercontent.com/549f81906dfdc750ae73fd1700cea3f113e4bb4741e4496e8e026c816f02462c/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539363533343738393031382d38373039353862612d393131662d343561332d623462372d6637336666393332353166642e706e67 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#构造类的实例化对象 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#获取一个类的所有信息 |
| https://camo.githubusercontent.com/aeed20bda3298a39fb364fca36586f681039ff0d9bc4d897376668746720077f/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539373331333630373635392d32646634663836352d336263382d346462642d386466632d6636656166653334353139642e706e67 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#获取类中的变量field |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#获取类中的方法method |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#获取类的构造器constructor |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#获取注解 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#通过反射调用方法 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#反射的应用场景 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#spring-的-ioc-容器 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#反射--抽象工厂模式 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#jdbc-加载数据库驱动类 |
| https://camo.githubusercontent.com/5bfb9f0c5f154557bc2805aadea9a9feb216da490b4433787b30b435e21610ff/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539373333323430363136382d35313033663333642d373966352d343536622d393936322d3066373739626162353137342e706e67 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#反射的优势及缺陷 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#增加程序的灵活性 |
| https://camo.githubusercontent.com/d1e7a6050bff377068a10070f226010d9ebf63891a5d6de35f5b0c3ec5f537cd/68747470733a2f2f63646e2e6e6c61726b2e636f6d2f79757175652f302f323032302f706e672f313639343032392f313539363638393131393539322d39386165303666642d633539652d343739342d383133302d6666306264666530663535302e706e67 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#破坏类的封装性 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#性能损耗 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-reflect.md#反射基础篇文末总结 |
| https://camo.githubusercontent.com/64d47cab7320552526c1e21a3ca1138c2c6b231cbf63173ff1e31c982b37b734/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766b62637a786f6a33316c32307438616c352e6a7067 |
| https://camo.githubusercontent.com/d15ead80e46ed776dd253e5c3a5914e7fa7332043f7d7dbfc2c4906ed1c9975b/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766c346b687a396a333164363068386d7a652e6a7067 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |