<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Java%2FC3%2FStatic-Blocks%2FEnglish-timed</id>
		<title>Java/C3/Static-Blocks/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Java%2FC3%2FStatic-Blocks%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C3/Static-Blocks/English-timed&amp;action=history"/>
		<updated>2026-04-04T11:45:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Java/C3/Static-Blocks/English-timed&amp;diff=41275&amp;oldid=prev</id>
		<title>Jyotisolanki at 07:15, 12 December 2017</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C3/Static-Blocks/English-timed&amp;diff=41275&amp;oldid=prev"/>
				<updated>2017-12-12T07:15:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:15, 12 December 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;#160; 00:52&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;#160; 00:52&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;|'''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;A &lt;/del&gt;Static block''' is mostly used for initializing values of '''static variables'''. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class=&quot;diffchange diffchange-inline&quot;&gt;A &lt;/ins&gt;''' Static block''' is mostly used for initializing values of '''static variables'''. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jyotisolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Java/C3/Static-Blocks/English-timed&amp;diff=40629&amp;oldid=prev</id>
		<title>Jyotisolanki at 12:40, 12 November 2017</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C3/Static-Blocks/English-timed&amp;diff=40629&amp;oldid=prev"/>
				<updated>2017-11-12T12:40:23Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:40, 12 November 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 286:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 286:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;#160; 06:19&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|&amp;#160; 06:19&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;|The video at the following link summarizes the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;S&lt;/del&gt;'''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;poken &lt;/del&gt;Tutorial Project'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;|The video at the following link summarizes the '''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Spoken &lt;/ins&gt;Tutorial Project'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jyotisolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Java/C3/Static-Blocks/English-timed&amp;diff=39027&amp;oldid=prev</id>
		<title>Jyotisolanki: Created page with &quot;{| border=1 || '''Time''' || '''Narration'''  |- |  00:01 |Welcome to the Spoken Tutorial on '''Static blocks '''.  |- |  00:06 |In this tutorial we will learn:  What are '''s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C3/Static-Blocks/English-timed&amp;diff=39027&amp;oldid=prev"/>
				<updated>2017-09-15T05:56:37Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=1 || &amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- |  00:01 |Welcome to the Spoken Tutorial on &amp;#039;&amp;#039;&amp;#039;Static blocks &amp;#039;&amp;#039;&amp;#039;.  |- |  00:06 |In this tutorial we will learn:  What are &amp;#039;&amp;#039;&amp;#039;s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
|| '''Time'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:01&lt;br /&gt;
|Welcome to the Spoken Tutorial on '''Static blocks '''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:06&lt;br /&gt;
|In this tutorial we will learn:  What are '''static blocks''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:10&lt;br /&gt;
|How to declare '''static blocks''' and  How to use '''static blocks'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:16&lt;br /&gt;
|Here we are using :'''Ubuntu 14.04'''  '''JDK 1 .7''' and  '''Eclipse 4.3.1''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:26&lt;br /&gt;
|To follow this tutorial, you must have knowledge of basics of '''Java''' and '''Eclipse IDE'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:34&lt;br /&gt;
|You should also have the knowledge of '''instance variables, static variables''' and '''static methods in Java'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:43&lt;br /&gt;
|If not, for relevant '''Java''' tutorials, please visit the link shown. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:48&lt;br /&gt;
|Let us learn about '''static blocks.''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:52&lt;br /&gt;
|'''A Static block''' is mostly used for initializing values of '''static variables'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:59&lt;br /&gt;
|A '''static block''' is declared using the '''static''' keyword. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:03&lt;br /&gt;
|'''Static blocks''' are executed when the '''class''' is loaded in memory. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:08&lt;br /&gt;
|If there are '''static blocks''' in a program, they are invoked before '''constructors'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:14&lt;br /&gt;
|We cannot access '''instance variables''' inside a '''static block'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:19&lt;br /&gt;
|Now, we will switch to '''Eclipse''' and create a new project called '''StaticBlockDemo'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:26&lt;br /&gt;
|Inside this project, we will create the necessary '''classes''' to demonstrate the usage of '''Static Blocks'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:33&lt;br /&gt;
|Right click on src folder and click '''New-&amp;gt; Class. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:38&lt;br /&gt;
|Type the name of the '''class''' as '''StudentEnroll''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:44&lt;br /&gt;
|Now type the following code to represent the '''StudentEnroll''' class. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:49&lt;br /&gt;
|Note that there are two '''static variables count''' and '''orgname'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:54&lt;br /&gt;
|Now click on '''Source''' -&amp;gt; and select '''Generate Constructor using Fields'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:00&lt;br /&gt;
|Delete the '''super''' keyword from the generated code. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:04&lt;br /&gt;
|We want a message to be printed whenever the '''constructor''' is invoked. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:09&lt;br /&gt;
|So inside this '''constructor''', type the following code to print “Constructor invoked”. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:15&lt;br /&gt;
|Now we will add a method '''showData'''( ) to this class to print the values of the variables. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:21&lt;br /&gt;
|So type the following code. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:23&lt;br /&gt;
|Now we will add a '''static block''' to initialize the values of '''count''' and '''orgname'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:29&lt;br /&gt;
|Type the following code. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:32&lt;br /&gt;
|The variables '''orgname''' and '''count''' are '''static variables'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:36&lt;br /&gt;
|This block of code within the curly brackets prefixed by the '''static''' keyword is a '''static block'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:42&lt;br /&gt;
|This '''static block''' initializes the values for '''count''' and '''orgname''' as '''100''' and '''IITM''' respectively. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:51&lt;br /&gt;
|Inside this '''static block''', type the following code to print '''“static block-1 is invoked”'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  02:58&lt;br /&gt;
|Now we will add one more '''class''' containing the '''main method'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:03&lt;br /&gt;
|So right click on the '''default package''', click '''New-&amp;gt; Class''' and then type the name as '''Demo'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:11&lt;br /&gt;
|Inside this '''class''' we will have the '''main''' method. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:15&lt;br /&gt;
|Type '''main''' and then press '''Ctrl+space''' to generate the '''main method'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:21&lt;br /&gt;
|We will create an object of '''StudentEnroll class'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:25&lt;br /&gt;
|Type the following code to create an object '''s1'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:29&lt;br /&gt;
|Now let us invoke the '''showData''' method to print the values. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:33&lt;br /&gt;
|Type '''s1.showData() semicolon''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:38&lt;br /&gt;
|Now let us run the '''Demo''' program. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:41&lt;br /&gt;
|We can observe that '''static block''' is invoked before the '''constructor'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:46&lt;br /&gt;
|The values of '''count and orgname''' are initialized as defined in the '''static block'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:53&lt;br /&gt;
|Now let us go back to the '''StudentEnroll class'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  03:57&lt;br /&gt;
|Let us see what happens if we initialise the value of id inside the '''static block'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:03&lt;br /&gt;
|Inside the '''static block''' type,  '''id equals IT01 semicolon''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:10&lt;br /&gt;
|We can see that an error comes up. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:13&lt;br /&gt;
|It indicates that an '''instance variable''' cannot be accessed inside a '''static block''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:19&lt;br /&gt;
|Now let us comment this line and proceed further. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:25&lt;br /&gt;
|Let us go back to the slides &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:27&lt;br /&gt;
|A '''class''' can contain multiple '''static blocks'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:30&lt;br /&gt;
|In such a case they are called only once in the order that they appear in the source code. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:37&lt;br /&gt;
|Switch back to '''Eclipse''' to verify it. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:40&lt;br /&gt;
|Let us include one more '''static block''' after the existing one. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:45&lt;br /&gt;
|Type the following code. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:47&lt;br /&gt;
|This '''static block''' initializes the values for '''count''' and '''orgname''' as '''200''' and '''IITB''' respectively. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  04:57&lt;br /&gt;
|Inside this '''static block''' type the following code. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:01&lt;br /&gt;
|Now let us run the '''Demo''' program again. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:04&lt;br /&gt;
|From the output, We can verify that the second '''static block''' is invoked after the first. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:10&lt;br /&gt;
|The values of the '''static variables count''' and '''orgname''' are updated by the second '''static block'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:18&lt;br /&gt;
|They are '''200''' and '''IITB''' respectively. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:22&lt;br /&gt;
|Let us summarize. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:24&lt;br /&gt;
|In this tutorial we have learnt : What is a '''static block''' &lt;br /&gt;
How to declare and define a '''static block''' and  How '''static blocks''' are invoked and executed.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:37&lt;br /&gt;
|For the Assignment, This assignment is a continuation of the '''Static Methods''' assignment. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:44&lt;br /&gt;
|Make sure that you have completed the '''Static Methods''' assignment. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:48&lt;br /&gt;
|As before design the class '''CarService''' as specified in this slide. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:54&lt;br /&gt;
|Identify the '''instance variables''' and '''static variables'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  05:58&lt;br /&gt;
|Define a '''constructor''' to initialize the values for '''instance variables'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:03&lt;br /&gt;
|Define a '''static block''' to initialize the values of '''static variables'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:08&lt;br /&gt;
|Also create a '''Demo''' class containing the '''main method'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:12&lt;br /&gt;
|Inside the main method, create a few objects of '''CarService''' and invoke the '''show'''( ) method. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:19&lt;br /&gt;
|The video at the following link summarizes the S'''poken Tutorial Project'''.&lt;br /&gt;
 &lt;br /&gt;
|-&lt;br /&gt;
|  06:24&lt;br /&gt;
|Please download and watch it. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:27&lt;br /&gt;
|The '''Spoken Tutorial Project''' Team  Conducts workshops using spoken tutorials and Gives certificates on passing the online tests. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:35&lt;br /&gt;
|For more details, please write to us. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:39&lt;br /&gt;
|'''Spoken Tutorial Project''' is funded by the NMEICT, MHRD, Government of India. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:46&lt;br /&gt;
|More information on this Mission is available at the link shown. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:50&lt;br /&gt;
|This script has been contributed by: '''Dept. of Information Technology, Amal Jyothi College of Engineering'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  06:58&lt;br /&gt;
|This is Priya from IIT Bombay. Thanks for joining. &lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jyotisolanki</name></author>	</entry>

	</feed>