| 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:06eb1c75-8d3f-e038-381c-f15e702d4886 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 8350:363C92:4EB83E:6C9B46:6AFCB61C |
| html-safe-nonce | 7567197ceeb0cd1e86a7fbcb13d6ccd9cb53566e29f74bdcc1521bff847987ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzUwOjM2M0M5Mjo0RUI4M0U6NkM5QjQ2OjZBRkNCNjFDIiwidmlzaXRvcl9pZCI6IjMxMDA1NzI4ODQ2MDMyODcwNjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 92bdb8efdc38ae8bb95246411e44d337cefd6503379371fd13e6164d7929e266 |
| 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-createobject.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-createobject.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-createobject.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-createobject.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-createobject.md |
| Reload | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md |
| Reload | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.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-createobject.md |
| https://redirect.github.com/sharingjoin/bestJavaer/commits/master/java-basic/java-createobject.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-createobject.md |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#java-创建对象的五种方式 |
| Java 创建对象的五种方式 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#java-%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1%E7%9A%84%E4%BA%94%E7%A7%8D%E6%96%B9%E5%BC%8F |
| 使用 new 来创建对象 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#%E4%BD%BF%E7%94%A8-new-%E6%9D%A5%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1 |
| 使用 newInstance 方法来创建 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#%E4%BD%BF%E7%94%A8-newinstance-%E6%96%B9%E6%B3%95%E6%9D%A5%E5%88%9B%E5%BB%BA |
| 使用反射来创建对象 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#%E4%BD%BF%E7%94%A8%E5%8F%8D%E5%B0%84%E6%9D%A5%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1 |
| 使用对象克隆来创建对象 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#%E4%BD%BF%E7%94%A8%E5%AF%B9%E8%B1%A1%E5%85%8B%E9%9A%86%E6%9D%A5%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1 |
| 使用反序列化创建对象 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#%E4%BD%BF%E7%94%A8%E5%8F%8D%E5%BA%8F%E5%88%97%E5%8C%96%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1 |
| 最后 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#%E6%9C%80%E5%90%8E |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#使用-new-来创建对象 |
| https://camo.githubusercontent.com/0f1bddd1abb4d17bc8abaa1b74b02efdc305739743762e29df0b64df9e043298/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e67793167736c687366646e79346a363134673066776a736a30322e6a7067 |
| https://camo.githubusercontent.com/da02c3ba215e5340a90a9538d45b64b7390f7c7a9263fbbcb0d9359bcf418fac/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e67793167736c68736a633461326a33313269303473337a612e6a7067 |
| https://www.zhihu.com/question/52749416 | https://www.zhihu.com/question/52749416 |
| https://camo.githubusercontent.com/31e28981af8cc6b0208df15aa2bcf654ee238503352173415f2e7f8aacf4179c/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e67793167736c68736e6b7038776a33313534306638337a6d2e6a7067 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#使用-newinstance-方法来创建 |
| https://camo.githubusercontent.com/ebe96b4a89ade41c59375692082ab6da819d16481c9d701ad145d676ba14e453/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e67793167736c687375716e62636a3331396d3038677133772e6a7067 |
| https://camo.githubusercontent.com/1ba2aeac19b333f45e0e10c9bbf60ab5db171e1cd2a55c91bad973b71150f3af/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e67793167736c68743367746c306a3331397730386f7439672e6a7067 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#使用反射来创建对象 |
| https://camo.githubusercontent.com/186c600a34c3d30698d8e247035c2fddfa95edd86ca6d7b316846841e23ad02e/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e67793167736c687439346137316a3331396d306271337a742e6a7067 |
| https://camo.githubusercontent.com/dde482d3d7a1f1be6190d6d9473a1e6235682ec300c4a4d4139112535d75d431/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e67793167736c687465743272616a333139323036693734742e6a7067 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.md#使用对象克隆来创建对象 |
| https://camo.githubusercontent.com/18ed829cc74342fabd986f776ff664e981c061d102a977e889e1171367595322/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e67793167736c68746d673064636a36313965306a6534316130322e6a7067 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-createobject.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 |