<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.byte-welt.net/index.php?action=history&amp;feed=atom&amp;title=Reflection_%28Java%29</id>
	<title>Reflection (Java) - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.byte-welt.net/index.php?action=history&amp;feed=atom&amp;title=Reflection_%28Java%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;action=history"/>
	<updated>2026-08-10T22:29:41Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Byte-Welt Wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=9468&amp;oldid=prev</id>
		<title>L-ectron-X am 27. Juni 2022 um 12:43 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=9468&amp;oldid=prev"/>
		<updated>2022-06-27T12:43:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 27. Juni 2022, 12:43 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Zeile 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Um mit Reflection zu arbeiten, benötigt man ein [[Class_(Java_API)|Class]]-Objekt desjenigen Typen, mit dem man arbeiten will. Dieses Objekt erhält man üblicherweise auf einem der folgenden Wege:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Um mit Reflection zu arbeiten, benötigt man ein [[Class_(Java_API)|Class]]-Objekt desjenigen Typen, mit dem man arbeiten will. Dieses Objekt erhält man üblicherweise auf einem der folgenden Wege:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Mittels dem Syntax &amp;quot;x.class&amp;quot;, wobei &amp;quot;x&amp;quot; ein beliebiger Typ sein kann.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Mittels dem Syntax &amp;quot;x.class&amp;quot;, wobei &amp;quot;x&amp;quot; ein beliebiger Typ sein kann.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;=java&amp;gt;Class&amp;lt;?&amp;gt; classString = String.class;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;java&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;&amp;gt;Class&amp;lt;?&amp;gt; classString = String.class;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Class&amp;lt;?&amp;gt; classInt = int.class;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Class&amp;lt;?&amp;gt; classInt = int.class;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Class&amp;lt;?&amp;gt; classFloatArray = float[].class;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code=java&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Class&amp;lt;?&amp;gt; classFloatArray = float[].class;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Mit der Methode &amp;quot;getClass&amp;quot;, welche jedes Objekt besitzt.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Mit der Methode &amp;quot;getClass&amp;quot;, welche jedes Objekt besitzt.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;=java&amp;gt;Object unknown = ...&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;java&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;&amp;gt;Object unknown = ...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Class&amp;lt;?&amp;gt; classUnknown = unknown.getClass();&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code=java&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Class&amp;lt;?&amp;gt; classUnknown = unknown.getClass();&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Über einen [[ClassLoader_(Java_API)|ClassLoader]], der diesen Typ kennt.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Über einen [[ClassLoader_(Java_API)|ClassLoader]], der diesen Typ kennt.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;=java&amp;gt;ClassLoader loader = ClassLoader.getSystemClassLoader();&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;java&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;&amp;gt;ClassLoader loader = ClassLoader.getSystemClassLoader();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Class&amp;lt;?&amp;gt; classFrame = loader.loadClass( &quot;javax.swing.JFrame&quot; );&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code=java&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Class&amp;lt;?&amp;gt; classFrame = loader.loadClass( &quot;javax.swing.JFrame&quot; );&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Zugriff auf Informationen ==  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Zugriff auf Informationen ==  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot;&gt;Zeile 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Im folgenden Beispiel wird ein Punkt erzeugt, und ausgegeben:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Im folgenden Beispiel wird ein Punkt erzeugt, und ausgegeben:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;=java&amp;gt;Class&amp;lt;?&amp;gt; point = Class.forName( &quot;java.awt.Point&quot; );&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;java&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;&amp;gt;Class&amp;lt;?&amp;gt; point = Class.forName( &quot;java.awt.Point&quot; );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Constructor&amp;lt;?&amp;gt; constructor = point.getConstructor(  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Constructor&amp;lt;?&amp;gt; constructor = point.getConstructor(  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   new Class[]{ int.class, int.class });&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   new Class[]{ int.class, int.class });&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object object = constructor.newInstance( new Object[]{ 45, 97 });&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Object object = constructor.newInstance( new Object[]{ 45, 97 });&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;System.out.println( object );&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code=java&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;System.out.println( object );&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Aufrufe tätigen ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Aufrufe tätigen ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot;&gt;Zeile 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Restriktionen aushebeln ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Restriktionen aushebeln ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Das folgende Beispiel benutzt Reflection um auf den, eigentlich geschützten, char-[[Array]] eines [[String_(Java_API)|Strings]] zuzugreiffen.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Das folgende Beispiel benutzt Reflection um auf den, eigentlich geschützten, char-[[Array]] eines [[String_(Java_API)|Strings]] zuzugreiffen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;=java&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;java&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import java.lang.reflect.Field;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import java.lang.reflect.Field;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l85&quot;&gt;Zeile 85:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 85:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code=java&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Objekt herstellen und Methoden aufrufen ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Objekt herstellen und Methoden aufrufen ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dieses Beispiel zeigt, wie eine Klasse, von der man nur den Namen kennt, und die garantiert noch nicht im System existiert, geladen wird. Danach wird eine [[Instanz]] dieser Klasse angelegt, und eine Methode aufgerufen.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dieses Beispiel zeigt, wie eine Klasse, von der man nur den Namen kennt, und die garantiert noch nicht im System existiert, geladen wird. Danach wird eine [[Instanz]] dieser Klasse angelegt, und eine Methode aufgerufen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;=java&amp;gt;package hidden;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang&lt;/ins&gt;=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;java&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;&amp;gt;package hidden;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import java.lang.reflect.Method;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import java.lang.reflect.Method;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l218&quot;&gt;Zeile 218:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 218:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         0, 2, 0, 1, 0, 76, 0, 0, 0, 2, 0, 77 };&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         0, 2, 0, 1, 0, 76, 0, 0, 0, 2, 0, 77 };&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code=java&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java Grundlagen]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java Grundlagen]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bytewelt_wiki:diff:1.41:old-3184:rev-9468:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>L-ectron-X</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=3184&amp;oldid=prev</id>
		<title>AndreUhres: /* Objekt herstellen und Methoden aufrufen */</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=3184&amp;oldid=prev"/>
		<updated>2008-07-26T06:48:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Objekt herstellen und Methoden aufrufen&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 26. Juli 2008, 06:48 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l221&quot;&gt;Zeile 221:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 221:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Allgemeines&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Java Grundlagen&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>AndreUhres</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=3118&amp;oldid=prev</id>
		<title>AndreUhres: /* Objekt herstellen und Methoden aufrufen */</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=3118&amp;oldid=prev"/>
		<updated>2008-07-25T22:08:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Objekt herstellen und Methoden aufrufen&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 25. Juli 2008, 22:08 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l221&quot;&gt;Zeile 221:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 221:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Kategorie:Java]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Kategorie:Allgemeines]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>AndreUhres</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=1636&amp;oldid=prev</id>
		<title>Swerflash: 1 Versionen</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=1636&amp;oldid=prev"/>
		<updated>2007-06-13T18:30:40Z</updated>

		<summary type="html">&lt;p&gt;1 Versionen&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 13. Juni 2007, 18:30 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Swerflash</name></author>
	</entry>
	<entry>
		<id>https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=1635&amp;oldid=prev</id>
		<title>Beni am 27. Februar 2007 um 22:42 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.byte-welt.net/index.php?title=Reflection_(Java)&amp;diff=1635&amp;oldid=prev"/>
		<updated>2007-02-27T22:42:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Reflection in [[Java_(Programmiersprache)|Java]] ist eine Möglichkeit, Informationen über [[Klasse_(Java)|Klassen]], [[Methode_(Java)|Methoden]] und andere Sprachelemente zu erhalten, ohne diese Elemente während dem Programmieren zu kennen.&lt;br /&gt;
&lt;br /&gt;
Eine kleine Auswahl von Informationen:&lt;br /&gt;
* Eine Liste aller Methoden einer Klasse&lt;br /&gt;
* Die Argumente einer Methode&lt;br /&gt;
* Die [[Modifier_(Java)|Sichtbarkeit]] einer [[Variable]]&lt;br /&gt;
* Die [[Annotation_(Java)|Annotationen]] eines Elementes&lt;br /&gt;
&lt;br /&gt;
Diese Informationen können auch dazu verwendet werden, [[Objekt|Objekte]] einer bestimmten Klasse herzustellen, die Methoden des Objektes aufzurufen, oder Felder des Objektes abzuändern. Der Typ des Objektes muss wiederum nicht im vornherein bekannt sein.&lt;br /&gt;
&lt;br /&gt;
= Arbeiten mit Reflection =&lt;br /&gt;
Um mit Reflection zu arbeiten, benötigt man ein [[Class_(Java_API)|Class]]-Objekt desjenigen Typen, mit dem man arbeiten will. Dieses Objekt erhält man üblicherweise auf einem der folgenden Wege:&lt;br /&gt;
* Mittels dem Syntax &amp;quot;x.class&amp;quot;, wobei &amp;quot;x&amp;quot; ein beliebiger Typ sein kann.&lt;br /&gt;
&amp;lt;code=java&amp;gt;Class&amp;lt;?&amp;gt; classString = String.class;&lt;br /&gt;
Class&amp;lt;?&amp;gt; classInt = int.class;&lt;br /&gt;
Class&amp;lt;?&amp;gt; classFloatArray = float[].class;&amp;lt;/code=java&amp;gt;&lt;br /&gt;
* Mit der Methode &amp;quot;getClass&amp;quot;, welche jedes Objekt besitzt.&lt;br /&gt;
&amp;lt;code=java&amp;gt;Object unknown = ...&lt;br /&gt;
Class&amp;lt;?&amp;gt; classUnknown = unknown.getClass();&amp;lt;/code=java&amp;gt;&lt;br /&gt;
* Über einen [[ClassLoader_(Java_API)|ClassLoader]], der diesen Typ kennt.&lt;br /&gt;
&amp;lt;code=java&amp;gt;ClassLoader loader = ClassLoader.getSystemClassLoader();&lt;br /&gt;
Class&amp;lt;?&amp;gt; classFrame = loader.loadClass( &amp;quot;javax.swing.JFrame&amp;quot; );&amp;lt;/code=java&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Zugriff auf Informationen == &lt;br /&gt;
Die Klasse &amp;#039;&amp;#039;Class&amp;#039;&amp;#039; bietet verschiedene Methoden mehr über die dargestellte Klasse herauszufinden. Das geht von dem Namen der Klasse (&amp;quot;getName&amp;quot;), über die Klasse von der geerbt wurde (&amp;quot;getSuperclass&amp;quot;) bis zu allen Methoden (&amp;quot;getDeclaredMethods&amp;quot;), [[Konstruktor_(Java)|Konstruktoren]] (&amp;quot;getConstructors&amp;quot;) und Feldern (&amp;quot;getFields&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Über einzelne Felder, Methoden, ... lassen sich dann wiederum zusätzliche Informationen abrufen, z.B. die Argumente eines Konstruktors.&lt;br /&gt;
&lt;br /&gt;
== Objekte generieren ==&lt;br /&gt;
Besitzt man erstmal die Klasse, will man meist auch ein Objekt dieser Klasse haben.&lt;br /&gt;
&lt;br /&gt;
Dazu gibt es zwei einfache Wege:&lt;br /&gt;
* Direkt über die Methode &amp;quot;newInstance&amp;quot; von &amp;#039;&amp;#039;Class&amp;#039;&amp;#039; kann ein Objekt erzeugt werden. Das entspricht genau dem Verhalten, wie wenn man den [[Defaultkonstruktor_(Java)|Defaultkonstruktor]] aufrufen würde. Wenn kein solcher Konstruktor vorhanden ist, wird eine [[Exception_(Java)|Exception]] geworfen.&lt;br /&gt;
* Über ein [[Constructor_(Java)|Constructor]]-Objekt, indem die Methode &amp;quot;newInstance&amp;quot; mit passenden Argumenten aufgerufen wird.&lt;br /&gt;
&lt;br /&gt;
Im folgenden Beispiel wird ein Punkt erzeugt, und ausgegeben:&lt;br /&gt;
&amp;lt;code=java&amp;gt;Class&amp;lt;?&amp;gt; point = Class.forName( &amp;quot;java.awt.Point&amp;quot; );&lt;br /&gt;
Constructor&amp;lt;?&amp;gt; constructor = point.getConstructor( &lt;br /&gt;
  new Class[]{ int.class, int.class });&lt;br /&gt;
Object object = constructor.newInstance( new Object[]{ 45, 97 });&lt;br /&gt;
&lt;br /&gt;
System.out.println( object );&amp;lt;/code=java&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Aufrufe tätigen ==&lt;br /&gt;
Mit Reflection kann man auch Methoden aufrufen oder Felder ändern.&lt;br /&gt;
* Anstelle des normalen Methodenaufrufes &amp;quot;object.x( y, z )&amp;quot; benutzt man das [[Method_(Java_API)|Method]]-Objekt, welches die Methode &amp;quot;x&amp;quot; darstellt, und ruft &amp;quot;x.invoke( object, x, y )&amp;quot; auf.&lt;br /&gt;
* Anstelle einer Zuweisung &amp;quot;object.x = y&amp;quot; benutzt man das [[Field_(Java_API)|Field]]-Objekt, welches &amp;quot;x&amp;quot; darstellt, und ruft &amp;quot;x.set( object, y )&amp;quot; auf.&lt;br /&gt;
&lt;br /&gt;
= Beispiele =&lt;br /&gt;
== Restriktionen aushebeln ==&lt;br /&gt;
Das folgende Beispiel benutzt Reflection um auf den, eigentlich geschützten, char-[[Array]] eines [[String_(Java_API)|Strings]] zuzugreiffen.&lt;br /&gt;
&amp;lt;code=java&amp;gt;&lt;br /&gt;
import java.lang.reflect.Field;&lt;br /&gt;
&lt;br /&gt;
public class Evil {&lt;br /&gt;
    public static void main( String[] args ) throws Exception{&lt;br /&gt;
        // Die Ausgabe dieses Programmes ist...&lt;br /&gt;
        System.out.println( &amp;quot;Hallo Welt&amp;quot; );&lt;br /&gt;
        // ... jedenfalls nicht &amp;quot;Hallo Welt&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    static{&lt;br /&gt;
        try{&lt;br /&gt;
            // Repräsentation der String-Klasse abrufen&lt;br /&gt;
            Class&amp;lt;String&amp;gt; clazz = String.class;&lt;br /&gt;
            &lt;br /&gt;
            String object = &amp;quot;Hallo Welt&amp;quot;;&lt;br /&gt;
            String text = &amp;quot;Ich bin böse!&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
            // Zugriff auf die Felder &amp;quot;value&amp;quot; und &amp;quot;count&amp;quot; erlangen&lt;br /&gt;
            Field value = clazz.getDeclaredField( &amp;quot;value&amp;quot; );&lt;br /&gt;
            Field count = clazz.getDeclaredField( &amp;quot;count&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
            // Die Sichtbarkeit der Felder von private auf public erhöhen&lt;br /&gt;
            value.setAccessible( true );&lt;br /&gt;
            count.setAccessible( true );&lt;br /&gt;
&lt;br /&gt;
            // Den Feldern neue Werte zuweisen&lt;br /&gt;
            value.set( object, text.toCharArray() );&lt;br /&gt;
            count.setInt( object, text.length() );&lt;br /&gt;
        }&lt;br /&gt;
        catch( Exception ex ){&lt;br /&gt;
            ex.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code=java&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Objekt herstellen und Methoden aufrufen ==&lt;br /&gt;
&lt;br /&gt;
Dieses Beispiel zeigt, wie eine Klasse, von der man nur den Namen kennt, und die garantiert noch nicht im System existiert, geladen wird. Danach wird eine [[Instanz]] dieser Klasse angelegt, und eine Methode aufgerufen.&lt;br /&gt;
&amp;lt;code=java&amp;gt;package hidden;&lt;br /&gt;
&lt;br /&gt;
import java.lang.reflect.Method;&lt;br /&gt;
&lt;br /&gt;
public class Hidden {&lt;br /&gt;
    public static void main( String[] args ) throws Exception{&lt;br /&gt;
        Loader loader = new Loader();&lt;br /&gt;
        Class&amp;lt;?&amp;gt; clazz = loader.loadClass( &amp;quot;hidden.Riddle&amp;quot; );&lt;br /&gt;
        &lt;br /&gt;
        Object object = clazz.newInstance();&lt;br /&gt;
        Method run = clazz.getMethod( &amp;quot;run&amp;quot;, new Class[0] );&lt;br /&gt;
        run.invoke( object, new Object[0] );&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    private static class Loader extends ClassLoader{&lt;br /&gt;
        @Override&lt;br /&gt;
        protected Class&amp;lt;?&amp;gt; findClass( String name ) throws ClassNotFoundException {&lt;br /&gt;
            if( name.equals( &amp;quot;hidden.Riddle&amp;quot; )){&lt;br /&gt;
                return defineClass( &amp;quot;hidden.Riddle&amp;quot;, CODE, 0, CODE.length );&lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
                return super.findClass( name );&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    public static final byte[] CODE = {&lt;br /&gt;
        -54, -2, -70, -66, 0, 0, 0, 49, 0, 78, 7, &lt;br /&gt;
        0, 2, 1, 0, 13, 104, 105, 100, 100, 101, 110, &lt;br /&gt;
        47, 82, 105, 100, 100, 108, 101, 7, 0, 4, 1, &lt;br /&gt;
        0, 16, 106, 97, 118, 97, 47, 108, 97, 110, 103, &lt;br /&gt;
        47, 79, 98, 106, 101, 99, 116, 1, 0, 5, 118, &lt;br /&gt;
        97, 108, 117, 101, 1, 0, 1, 73, 1, 0, 6, &lt;br /&gt;
        60, 105, 110, 105, 116, 62, 1, 0, 3, 40, 41, &lt;br /&gt;
        86, 1, 0, 4, 67, 111, 100, 101, 10, 0, 3, &lt;br /&gt;
        0, 11, 12, 0, 7, 0, 8, 10, 0, 13, 0, &lt;br /&gt;
        15, 7, 0, 14, 1, 0, 14, 106, 97, 118, 97, &lt;br /&gt;
        47, 108, 97, 110, 103, 47, 77, 97, 116, 104, 12, &lt;br /&gt;
        0, 16, 0, 17, 1, 0, 6, 114, 97, 110, 100, &lt;br /&gt;
        111, 109, 1, 0, 3, 40, 41, 68, 6, 64, 89, &lt;br /&gt;
        0, 0, 0, 0, 0, 0, 9, 0, 1, 0, 21, &lt;br /&gt;
        12, 0, 5, 0, 6, 1, 0, 15, 76, 105, 110, &lt;br /&gt;
        101, 78, 117, 109, 98, 101, 114, 84, 97, 98, 108, &lt;br /&gt;
        101, 1, 0, 18, 76, 111, 99, 97, 108, 86, 97, &lt;br /&gt;
        114, 105, 97, 98, 108, 101, 84, 97, 98, 108, 101, &lt;br /&gt;
        1, 0, 4, 116, 104, 105, 115, 1, 0, 15, 76, &lt;br /&gt;
        104, 105, 100, 100, 101, 110, 47, 82, 105, 100, 100, &lt;br /&gt;
        108, 101, 59, 1, 0, 3, 114, 117, 110, 7, 0, &lt;br /&gt;
        28, 1, 0, 17, 106, 97, 118, 97, 47, 117, 116, &lt;br /&gt;
        105, 108, 47, 83, 99, 97, 110, 110, 101, 114, 9, &lt;br /&gt;
        0, 30, 0, 32, 7, 0, 31, 1, 0, 16, 106, &lt;br /&gt;
        97, 118, 97, 47, 108, 97, 110, 103, 47, 83, 121, &lt;br /&gt;
        115, 116, 101, 109, 12, 0, 33, 0, 34, 1, 0, &lt;br /&gt;
        2, 105, 110, 1, 0, 21, 76, 106, 97, 118, 97, &lt;br /&gt;
        47, 105, 111, 47, 73, 110, 112, 117, 116, 83, 116, &lt;br /&gt;
        114, 101, 97, 109, 59, 10, 0, 27, 0, 36, 12, &lt;br /&gt;
        0, 7, 0, 37, 1, 0, 24, 40, 76, 106, 97, &lt;br /&gt;
        118, 97, 47, 105, 111, 47, 73, 110, 112, 117, 116, &lt;br /&gt;
        83, 116, 114, 101, 97, 109, 59, 41, 86, 9, 0, &lt;br /&gt;
        30, 0, 39, 12, 0, 40, 0, 41, 1, 0, 3, &lt;br /&gt;
        111, 117, 116, 1, 0, 21, 76, 106, 97, 118, 97, &lt;br /&gt;
        47, 105, 111, 47, 80, 114, 105, 110, 116, 83, 116, &lt;br /&gt;
        114, 101, 97, 109, 59, 8, 0, 43, 1, 0, 38, &lt;br /&gt;
        71, 105, 98, 32, 101, 105, 110, 101, 32, 90, 97, &lt;br /&gt;
        104, 108, 32, 122, 119, 105, 115, 99, 104, 101, 110, &lt;br /&gt;
        32, 48, 32, 117, 110, 100, 32, 49, 48, 48, 32, &lt;br /&gt;
        101, 105, 110, 58, 32, 10, 0, 45, 0, 47, 7, &lt;br /&gt;
        0, 46, 1, 0, 19, 106, 97, 118, 97, 47, 105, &lt;br /&gt;
        111, 47, 80, 114, 105, 110, 116, 83, 116, 114, 101, &lt;br /&gt;
        97, 109, 12, 0, 48, 0, 49, 1, 0, 5, 112, &lt;br /&gt;
        114, 105, 110, 116, 1, 0, 21, 40, 76, 106, 97, &lt;br /&gt;
        118, 97, 47, 108, 97, 110, 103, 47, 83, 116, 114, &lt;br /&gt;
        105, 110, 103, 59, 41, 86, 10, 0, 27, 0, 51, &lt;br /&gt;
        12, 0, 52, 0, 53, 1, 0, 10, 104, 97, 115, &lt;br /&gt;
        78, 101, 120, 116, 73, 110, 116, 1, 0, 3, 40, &lt;br /&gt;
        41, 90, 10, 0, 27, 0, 55, 12, 0, 56, 0, &lt;br /&gt;
        57, 1, 0, 7, 110, 101, 120, 116, 73, 110, 116, &lt;br /&gt;
        1, 0, 3, 40, 41, 73, 8, 0, 59, 1, 0, &lt;br /&gt;
        7, 82, 105, 99, 104, 116, 105, 103, 10, 0, 45, &lt;br /&gt;
        0, 61, 12, 0, 62, 0, 49, 1, 0, 7, 112, &lt;br /&gt;
        114, 105, 110, 116, 108, 110, 8, 0, 64, 1, 0, &lt;br /&gt;
        16, 70, 97, 108, 115, 99, 104, 44, 32, 122, 117, &lt;br /&gt;
        32, 107, 108, 101, 105, 110, 8, 0, 66, 1, 0, &lt;br /&gt;
        16, 70, 97, 108, 115, 99, 104, 44, 32, 122, 117, &lt;br /&gt;
        32, 103, 114, 111, 115, 115, 8, 0, 68, 1, 0, &lt;br /&gt;
        24, 68, 97, 115, 32, 115, 111, 108, 108, 32, 101, &lt;br /&gt;
        105, 110, 101, 32, 90, 97, 104, 108, 32, 115, 101, &lt;br /&gt;
        105, 110, 63, 10, 0, 27, 0, 70, 12, 0, 71, &lt;br /&gt;
        0, 72, 1, 0, 4, 110, 101, 120, 116, 1, 0, &lt;br /&gt;
        20, 40, 41, 76, 106, 97, 118, 97, 47, 108, 97, &lt;br /&gt;
        110, 103, 47, 83, 116, 114, 105, 110, 103, 59, 1, &lt;br /&gt;
        0, 1, 115, 1, 0, 19, 76, 106, 97, 118, 97, &lt;br /&gt;
        47, 117, 116, 105, 108, 47, 83, 99, 97, 110, 110, &lt;br /&gt;
        101, 114, 59, 1, 0, 5, 99, 104, 101, 99, 107, &lt;br /&gt;
        1, 0, 10, 83, 111, 117, 114, 99, 101, 70, 105, &lt;br /&gt;
        108, 101, 1, 0, 11, 82, 105, 100, 100, 108, 101, &lt;br /&gt;
        46, 106, 97, 118, 97, 0, 33, 0, 1, 0, 3, &lt;br /&gt;
        0, 0, 0, 1, 0, 2, 0, 5, 0, 6, 0, &lt;br /&gt;
        0, 0, 2, 0, 1, 0, 7, 0, 8, 0, 1, &lt;br /&gt;
        0, 9, 0, 0, 0, 67, 0, 5, 0, 1, 0, &lt;br /&gt;
        0, 0, 17, 42, -73, 0, 10, 42, -72, 0, 12, &lt;br /&gt;
        20, 0, 18, 107, -114, -75, 0, 20, -79, 0, 0, &lt;br /&gt;
        0, 2, 0, 22, 0, 0, 0, 14, 0, 3, 0, &lt;br /&gt;
        0, 0, 5, 0, 4, 0, 6, 0, 16, 0, 5, &lt;br /&gt;
        0, 23, 0, 0, 0, 12, 0, 1, 0, 0, 0, &lt;br /&gt;
        17, 0, 24, 0, 25, 0, 0, 0, 1, 0, 26, &lt;br /&gt;
        0, 8, 0, 1, 0, 9, 0, 0, 0, -33, 0, &lt;br /&gt;
        3, 0, 3, 0, 0, 0, 105, -69, 0, 27, 89, &lt;br /&gt;
        -78, 0, 29, -73, 0, 35, 76, -78, 0, 38, 18, &lt;br /&gt;
        42, -74, 0, 44, 43, -74, 0, 50, -103, 0, 65, &lt;br /&gt;
        43, -74, 0, 54, 61, 28, 42, -76, 0, 20, -96, &lt;br /&gt;
        0, 14, -78, 0, 38, 18, 58, -74, 0, 60, -89, &lt;br /&gt;
        0, 57, 28, 42, -76, 0, 20, -94, 0, 14, -78, &lt;br /&gt;
        0, 38, 18, 63, -74, 0, 60, -89, -1, -55, 28, &lt;br /&gt;
        42, -76, 0, 20, -92, -1, -63, -78, 0, 38, 18, &lt;br /&gt;
        65, -74, 0, 60, -89, -1, -74, -78, 0, 38, 18, &lt;br /&gt;
        67, -74, 0, 60, 43, -74, 0, 69, 87, -89, -1, &lt;br /&gt;
        -90, -79, 0, 0, 0, 2, 0, 22, 0, 0, 0, &lt;br /&gt;
        62, 0, 15, 0, 0, 0, 9, 0, 11, 0, 11, &lt;br /&gt;
        0, 19, 0, 12, 0, 26, 0, 13, 0, 31, 0, &lt;br /&gt;
        14, 0, 39, 0, 15, 0, 47, 0, 16, 0, 50, &lt;br /&gt;
        0, 18, 0, 58, 0, 19, 0, 69, 0, 21, 0, &lt;br /&gt;
        77, 0, 22, 0, 88, 0, 26, 0, 96, 0, 27, &lt;br /&gt;
        0, 101, 0, 30, 0, 104, 0, 31, 0, 23, 0, &lt;br /&gt;
        0, 0, 32, 0, 3, 0, 0, 0, 105, 0, 24, &lt;br /&gt;
        0, 25, 0, 0, 0, 11, 0, 94, 0, 73, 0, &lt;br /&gt;
        74, 0, 1, 0, 31, 0, 57, 0, 75, 0, 6, &lt;br /&gt;
        0, 2, 0, 1, 0, 76, 0, 0, 0, 2, 0, 77 };&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code=java&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Java]]&lt;/div&gt;</summary>
		<author><name>Beni</name></author>
	</entry>
</feed>