type information - Generic Class References

Java泛型与Class引用
本文探讨了Java中Class引用的使用方式及其与泛型结合的可能性。通过具体示例展示了如何利用泛型来约束Class引用的目标类型,并解释了这种类型约束如何帮助开发者减少类型错误。

A Class reference points to a Class object, which manufactures instances of classes and contains all the method code for those instances. It also contains the statics for that class. So a Class reference really does indicate the exact type of what it’s pointing to: an object of the class Class.

However, the Java designers saw an opportunity to make this a bit more specific by allowing we to constrain the type of Class object to which the Class reference points, using the generic syntax. In the following example, both syntaxes are correct:

// typeinfo/GenericClassReferences.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.

public class GenericClassReferences {
  public static void main(String[] args) {
    Class intClass = int.class;
    // generic syntax allows the compiler to enforce extra type checking.
    Class<Integer> genericIntClass = int.class;
    genericIntClass = Integer.class; // Same thing
    intClass = double.class;
    // genericIntClass = double.class; // [1] Illegal
  }
}

When uncomment [1], it prompts bellow error

typeinfo/GenericClassReferences.java:12: error: incompatible types: Class<Double> cannot be converted to Class<Integer
>
    genericIntClass = double.class; // [1] Illegal
                            ^
1 error

references:

1. On Java 8 - Bruce Eckel

2. https://github.com/wangbingfeng/OnJava8-Examples/blob/master/typeinfo/GenericClassReferences.java

This is pdfTeX, Version 3.141592653-2.6-1.40.27 (TeX Live 2025) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./manuscript.tex LaTeX2e <2024-11-01> patch level 2 L3 programming layer <2025-01-18> (c:/texlive/2025/texmf-dist/tex/latex/revtex/revtex4-2.cls Document Class: revtex4-2 2022/06/05 4.2f (https://journals.aps.org/revtex/ for documentation) ltxutil[2022/06/05 4.2f utilities package (portions licensed from W. E. Baxter web at superscript.com)] ltxfront[2022/06/05 4.2f frontmatter package (AO,DPC,MD)] ltxgrid[2022/06/05 4.2f page grid package (portions licensed from W. E. Baxter web at superscript.com)] (c:/texlive/2025/texmf-dist/tex/latex/revtex/aps4-2.rtx) (c:/texlive/2025/texmf-dist/tex/latex/revtex/aps10pt4-2.rtx) (c:/texlive/2025/texmf-dist/tex/latex/textcase/textcase.sty) (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/amssymb.sty (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amstext.sty (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsgen.sty)) (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsbsy.sty) (c:/texlive/2025/texmf-dist/tex/latex/amsmath/amsopn.sty)) (c:/texlive/2025/texmf-dist/tex/latex/url/url.sty) (c:/texlive/2025/texmf-dist/tex/latex/natbib/natbib.sty) (c:/texlive/2025/texmf-dist/tex/latex/revtex/revsymb4-2.sty)) (c:/texlive/2025/texmf-dist/tex/latex/xurl/xurl.sty) (c:/texlive/2025/texmf-dist/tex/latex/graphics/graphics.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics/trig.sty) (c:/texlive/2025/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (c:/texlive/2025/texmf-dist/tex/latex/graphics-def/pdftex.def)) (c:/texlive/2025/texmf-dist/tex/latex/tools/dcolumn.sty (c:/texlive/2025/texmf-dist/tex/latex/tools/array.sty)) (c:/texlive/2025/texmf-dist/tex/latex/tools/bm.sty) (c:/texlive/2025/texmf-dist/tex/latex/caption/subcaption.sty (c:/texlive/2025/texmf-dist/tex/latex/caption/caption.sty (c:/texlive/2025/texmf-dist/tex/latex/caption/caption3.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics/keyval.sty)) Package caption Warning: Unknown document class (or package), (caption) standard defaults will be used. See the caption package documentation for explanation. )) (c:/texlive/2025/texmf-dist/tex/latex/xcolor/xcolor.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics-cfg/color.cfg) (c:/texlive/2025/texmf-dist/tex/latex/graphics/mathcolor.ltx)) (c:/texlive/2025/texmf-dist/tex/latex/graphics/dvipsnam.def) (c:/texlive/2025/texmf-dist/tex/latex/xcolor/svgnam.def) (c:/texlive/2025/texmf-dist/tex/latex/xcolor/x11nam.def) (c:/texlive/2025/texmf-dist/tex/latex/changes/changes.sty *** changes package 2021/07/15 v4.2.1 *** (c:/texlive/2025/texmf-dist/tex/latex/xkeyval/xkeyval.sty (c:/texlive/2025/texmf-dist/tex/generic/xkeyval/xkeyval.tex (c:/texlive/2025/texmf-dist/tex/generic/xkeyval/xkvutils.tex))) (c:/texlive/2025/texmf-dist/tex/latex/etoolbox/etoolbox.sty) (c:/texlive/2025/texmf-dist/tex/generic/xstring/xstring.sty (c:/texlive/2025/texmf-dist/tex/generic/xstring/xstring.tex)) ulem-option 'normalem,normalbf', passed to package ulem truncate-option 'breakall,fit', passed to package truncate (c:/texlive/2025/texmf-dist/tex/generic/ulem/ulem.sty) (c:/texlive/2025/texmf-dist/tex/latex/todonotes/todonotes.sty (c:/texlive/2025/texmf-dist/tex/latex/base/ifthen.sty) (c:/texlive/2025/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty (c:/texlive/2025/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty (c:/texlive/2025/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty (c:/texlive/2025/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def) (c:/texlive/2025/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex (c:/texlive/2025/texmf-dist/tex/generic/pgf/pgf.revision.tex))) (c:/texlive/2025/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics/graphicx.sty) (c:/texlive/2025/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty (c:/texlive/2025/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex (c:/texlive/2025/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex (c:/texlive/2025/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.co de.tex)) (c:/texlive/2025/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg) (c:/texlive/2025/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def (c:/texlive/2025/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def)) ) (c:/texlive/2025/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex ) (c:/texlive/2025/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex )) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.te x) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric .code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.t ex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.co de.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex ) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.te x) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex ) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithm etics.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex)) (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfint.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.cod e.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.te x) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code .tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.c ode.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.co de.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex ) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex ) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code .tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex ) (c:/texlive/2025/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex))) (c:/texlive/2025/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex) (c:/texlive/2025/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.st y) (c:/texlive/2025/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.st y)) (c:/texlive/2025/texmf-dist/tex/latex/pgf/utilities/pgffor.sty (c:/texlive/2025/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty (c:/texlive/2025/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex)) (c:/texlive/2025/texmf-dist/tex/latex/pgf/math/pgfmath.sty (c:/texlive/2025/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)) (c:/texlive/2025/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex)) (c:/texlive/2025/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex (c:/texlive/2025/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.co de.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex) (c:/texlive/2025/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzli brarytopaths.code.tex))) (c:/texlive/2025/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzli brarypositioning.code.tex) (c:/texlive/2025/texmf-dist/tex/latex/tools/calc.sty )) (c:/texlive/2025/texmf-dist/tex/latex/truncate/truncate.sty)) (c:/texlive/2025/texmf-dist/tex/latex/multirow/multirow.sty) (c:/texlive/2025/texmf-dist/tex/latex/hyperref/hyperref.sty (c:/texlive/2025/texmf-dist/tex/generic/iftex/iftex.sty) (c:/texlive/2025/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty) (c:/texlive/2025/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty) (c:/texlive/2025/texmf-dist/tex/generic/pdfescape/pdfescape.sty (c:/texlive/2025/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty) (c:/texlive/2025/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty (c:/texlive/2025/texmf-dist/tex/generic/infwarerr/infwarerr.sty))) (c:/texlive/2025/texmf-dist/tex/latex/hycolor/hycolor.sty) (c:/texlive/2025/texmf-dist/tex/latex/hyperref/nameref.sty (c:/texlive/2025/texmf-dist/tex/latex/refcount/refcount.sty) (c:/texlive/2025/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty (c:/texlive/2025/texmf-dist/tex/latex/kvoptions/kvoptions.sty)) Package nameref Warning: The definition of \label has changed! (nameref) Check your packages! (nameref) Replacing it with the kernel definition on input line 149. ) (c:/texlive/2025/texmf-dist/tex/generic/stringenc/stringenc.sty) (c:/texlive/2025/texmf-dist/tex/latex/hyperref/pd1enc.def) (c:/texlive/2025/texmf-dist/tex/generic/intcalc/intcalc.sty) (c:/texlive/2025/texmf-dist/tex/latex/hyperref/puenc.def) (c:/texlive/2025/texmf-dist/tex/generic/bitset/bitset.sty (c:/texlive/2025/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty)) (c:/texlive/2025/texmf-dist/tex/latex/base/atbegshi-ltx.sty)) (c:/texlive/2025/texmf-dist/tex/latex/hyperref/hpdftex.def (c:/texlive/2025/texmf-dist/tex/latex/base/atveryend-ltx.sty) (c:/texlive/2025/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty (c:/texlive/2025/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty))) Package hyperref Warning: Option `hypertex' has already been used, (hyperref) setting the option has no effect on input line 26. (c:/texlive/2025/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def) (./manuscript.aux) (c:/texlive/2025/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (c:/texlive/2025/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty (c:/texlive/2025/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) (./manuscript.out) (./manuscript.out) Overfull \hbox (214.60706pt too wide) in paragraph at lines 44--46 [][][][]\OT1/cmr/m/n/9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Overfull \hbox (63.78166pt too wide) in paragraph at lines 44--46 \OT1/cmr/m/n/9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/umsa.fd) (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/umsb.fd) Package natbib Warning: Citation `bailin2001hundred' on page 1 undefined on inp ut line 52. Package natbib Warning: Citation `einstein1906theory' on page 1 undefined on in put line 52. Package natbib Warning: Citation `einstein1956investigations' on page 1 undefin ed on input line 52. Package natbib Warning: Citation `einstein1906theory' on page 1 undefined on in put line 56. Package natbib Warning: Citation `einstein1956investigations' on page 1 undefin ed on input line 56. Package natbib Warning: Citation `vlahos2008normal' on page 1 undefined on inpu t line 60. Package natbib Warning: Citation `langevin1908theorie' on page 1 undefined on i nput line 60. Package natbib Warning: Citation `kubo1966fluctuation' on page 1 undefined on i nput line 64. (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/ueuf.fd) Package natbib Warning: Citation `bailin2001hundred' on page 1 undefined on inp ut line 70. Package natbib Warning: Citation `vlahos2008normal' on page 1 undefined on inpu t line 70. Package natbib Warning: Citation `blumen1986models' on page 1 undefined on inpu t line 76. Package natbib Warning: Citation `guo2023brownian' on page 1 undefined on input line 76. Package natbib Warning: Citation `livi2023anomalous' on page 1 undefined on inp ut line 76. Package natbib Warning: Citation `woszczek2025scaled' on page 1 undefined on in put line 76. Package natbib Warning: Citation `metzler2000random' on page 1 undefined on inp ut line 76. Package natbib Warning: Citation `metzler2000random' on page 1 undefined on inp ut line 81. Package natbib Warning: Citation `metzler2000random' on page 1 undefined on inp ut line 81. [1{c:/texlive/2025/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] Package natbib Warning: Citation `metzler2000random' on page 2 undefined on inp ut line 83. Package natbib Warning: Citation `fokker1914mittlere' on page 2 undefined on in put line 83. Package natbib Warning: Citation `samko1993fractional' on page 2 undefined on i nput line 83. Package natbib Warning: Citation `slkezak2018superstatistical' on page 2 undefi ned on input line 83. Package natbib Warning: Citation `bailin2001hundred' on page 2 undefined on inp ut line 87. Package natbib Warning: Citation `kubo1966fluctuation' on page 2 undefined on i nput line 87. Package natbib Warning: Citation `metzler2000random' on page 2 undefined on inp ut line 91. Package natbib Warning: Citation `metzler2004restaurant' on page 2 undefined on input line 91. Package natbib Warning: Citation `lam1992surface' on page 2 undefined on input line 96. Package natbib Warning: Citation `li1997surface' on page 2 undefined on input l ine 96. Package natbib Warning: Citation `boniecki2010effect' on page 2 undefined on in put line 96. Package natbib Warning: Citation `portsel2023diffusion' on page 2 undefined on input line 96. Package natbib Warning: Citation `collini2018out' on page 2 undefined on input line 96. Package natbib Warning: Citation `wu2008propagators' on page 2 undefined on inp ut line 96. Package natbib Warning: Citation `chen2015memoryless' on page 2 undefined on in put line 96. Package natbib Warning: Citation `yang2022generalisation' on page 2 undefined o n input line 96. Package natbib Warning: Citation `guo2023brownian' on page 2 undefined on input line 98. [2] Package natbib Warning: Citation `mandelbrot1971fast' on page 3 undefined on in put line 110. Package natbib Warning: Citation `lam1992surface' on page 3 undefined on input line 110. Package natbib Warning: Citation `lam1993surface' on page 3 undefined on input line 110. Package natbib Warning: Citation `song2016long' on page 3 undefined on input li ne 120. Package natbib Warning: Citation `rodriguez2024fragility' on page 3 undefined o n input line 123. Package natbib Warning: Citation `guo2023brownian' on page 3 undefined on input line 125. Package natbib Warning: Citation `metzler2000random' on page 3 undefined on inp ut line 125. Package natbib Warning: Citation `livi2023anomalous' on page 3 undefined on inp ut line 125. Package natbib Warning: Citation `woszczek2025scaled' on page 3 undefined on in put line 125. Package natbib Warning: Citation `dos2021random' on page 3 undefined on input l ine 125. Package natbib Warning: Citation `salgado2016normal' on page 3 undefined on inp ut line 125. Package natbib Warning: Citation `arbia2025comprehensive' on page 3 undefined o n input line 125. Package natbib Warning: Citation `metzler2000random' on page 3 undefined on inp ut line 125. Package natbib Warning: Citation `metzler2004restaurant' on page 3 undefined on input line 125. Package natbib Warning: Citation `yang2022generalisation' on page 3 undefined o n input line 125. Package natbib Warning: Citation `salgado2016normal' on page 3 undefined on inp ut line 125. Package natbib Warning: Citation `arbia2025comprehensive' on page 3 undefined o n input line 125. Package natbib Warning: Citation `metzler2000random' on page 3 undefined on inp ut line 125. Package natbib Warning: Citation `metzler2004restaurant' on page 3 undefined on input line 125. Package caption Warning: \label without proper reference on input line 139. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig1' on page 3 undefined on input line 136. [3] Package natbib Warning: Citation `vlahos2008normal' on page 4 undefined on inpu t line 147. Package natbib Warning: Citation `dos2021random' on page 4 undefined on input l ine 147. Package natbib Warning: Citation `eliazar2011anomalous' on page 4 undefined on input line 147. Package caption Warning: \label without proper reference on input line 159. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig2' on page 4 undefined on input line 149. Package caption Warning: \label without proper reference on input line 166. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig3' on page 4 undefined on input line 151. Package caption Warning: \label without proper reference on input line 173. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig4' on page 4 undefined on input line 153. Package natbib Warning: Citation `vlahos2008normal' on page 4 undefined on inpu t line 155. Package natbib Warning: Citation `dos2021random' on page 4 undefined on input l ine 155. Package natbib Warning: Citation `eliazar2011anomalous' on page 4 undefined on input line 155. [4 <./fig1.pdf> <./fig2.pdf> <./fig3.pdf>] LaTeX Warning: A float is stuck (cannot be placed); try class option [floatfix] on input line 181. LaTeX Warning: Reference `Fig5' on page 5 undefined on input line 182. Package natbib Warning: Citation `vlahos2008normal' on page 5 undefined on inpu t line 182. Package natbib Warning: Citation `eliazar2011anomalous' on page 5 undefined on input line 182. Package natbib Warning: Citation `luo2025anomalous' on page 5 undefined on inpu t line 182. Package natbib Warning: Citation `metzler2000random' on page 5 undefined on inp ut line 182. Package natbib Warning: Citation `metzler2004restaurant' on page 5 undefined on input line 182. Package caption Warning: \label without proper reference on input line 192. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig6' on page 5 undefined on input line 184. Package natbib Warning: Citation `ribeiro2016active' on page 5 undefined on inp ut line 184. Underfull \hbox (badness 1990) in paragraph at lines 184--185 []\OT1/cmr/m/n/10 Under iden-ti-cal sim-u-la-tion con-di-tions, Fig-ure [][][][ ][] Package caption Warning: \label without proper reference on input line 199. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig7' on page 5 undefined on input line 186. Package caption Warning: \label without proper reference on input line 199. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig7' on page 5 undefined on input line 186. Package caption Warning: \label without proper reference on input line 199. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig7' on page 5 undefined on input line 186. Package natbib Warning: Citation `metzler2000random' on page 5 undefined on inp ut line 186. Package natbib Warning: Citation `dos2021random' on page 5 undefined on input l ine 186. Package natbib Warning: Citation `eliazar2011anomalous' on page 5 undefined on input line 186. Underfull \hbox (badness 3872) in paragraph at lines 186--187 []\OT1/cmr/m/n/10 Given the ef-fi-cient char-ac-ter-is-tic trans-port phe- Package natbib Warning: Citation `livi2023anomalous' on page 5 undefined on inp ut line 188. Package natbib Warning: Citation `woszczek2025scaled' on page 5 undefined on in put line 188. Package natbib Warning: Citation `metzler2000random' on page 5 undefined on inp ut line 188. Package natbib Warning: Citation `dos2021random' on page 5 undefined on input l ine 188. Package natbib Warning: Citation `salgado2016normal' on page 5 undefined on inp ut line 188. Package natbib Warning: Citation `arbia2025comprehensive' on page 5 undefined o n input line 188. Package natbib Warning: Citation `guo2023brownian' on page 5 undefined on input line 188. Package caption Warning: \label without proper reference on input line 199. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig7' on page 5 undefined on input line 209. Package caption Warning: \label without proper reference on input line 199. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig7' on page 5 undefined on input line 209. [5 <./fig4.pdf>] LaTeX Warning: A float is stuck (cannot be placed); try class option [floatfix] on input line 214. Package caption Warning: \label without proper reference on input line 222. See the caption package documentation for explanation. LaTeX Warning: Reference `Fig9' on page 6 undefined on input line 217. Package natbib Warning: Citation `guo2023brownian' on page 6 undefined on input line 217. [6 <./fig6.pdf> <./fig7.pdf> <./fig8.pdf>] LaTeX Warning: A float is stuck (cannot be placed); try class option [floatfix] on input line 234. Package natbib Warning: Citation `Data' on page 7 undefined on input line 246. (./manuscript.bbl LaTeX Warning: Reference `LastBibItem' on page 7 undefined on input line 9. ! LaTeX Error: Command \k unavailable in encoding OT1. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.159 {Magdziarz}},\ } \href@noop {} {\bibfield {journal} {\bibinfo {jour... ?
05-30
Java是一种具备卓越性能与广泛平台适应性的高级程序设计语言,最初由Sun Microsystems(现属Oracle公司)的James Gosling及其团队于1995年正式发布。该语言在设计上追求简洁性、稳定性、可移植性以及并发处理能力,同时具备动态执行特性。其核心特征与显著优点可归纳如下: **平台无关性**:遵循“一次编写,随处运行”的理念,Java编写的程序能够在多种操作系统与硬件环境中执行,无需针对不同平台进行修改。这一特性主要依赖于Java虚拟机(JVM)的实现,JVM作为程序与底层系统之间的中间层,负责解释并执行编译后的字节码。 **面向对象范式**:Java全面贯彻面向对象的设计原则,提供对封装、继承、多态等机制的完整支持。这种设计方式有助于构建结构清晰、模块独立的代码,提升软件的可维护性与扩展性。 **并发编程支持**:语言层面集成了多线程处理能力,允许开发者构建能够同时执行多项任务的应用程序。这一特性尤其适用于需要高并发处理的场景,例如服务器端软件、网络服务及大规模分布式系统。 **自动内存管理**:通过内置的垃圾回收机制,Java运行时环境能够自动识别并释放不再使用的对象所占用的内存空间。这不仅降低了开发者在内存管理方面的工作负担,也有效减少了因手动管理内存可能引发的内存泄漏问题。 资源来源于网络分享,仅用于学习交流使用,请勿用于商业,如有侵权请联系我删除!
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值