<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Java - Vinod Sebastian - B.Tech, M.Com, PGCBM, PGCPM, PGDBIO</title>
	<atom:link href="https://vinodsebastian.com/category/it-made-easy-cat/java-cat/feed/" rel="self" type="application/rss+xml" />
	<link>https://vinodsebastian.com</link>
	<description>Hi I&#039;m a Web Architect by Profession and an Artist by nature. I love empowering People, aligning to Processes and delivering Projects.</description>
	<lastBuildDate>Sat, 06 Dec 2025 01:25:55 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://vinodsebastian.com/wp-content/uploads/2020/12/cropped-Me-32x32.jpg</url>
	<title>Java - Vinod Sebastian - B.Tech, M.Com, PGCBM, PGCPM, PGDBIO</title>
	<link>https://vinodsebastian.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Java Programming Notes</title>
		<link>https://vinodsebastian.com/java-programming-notes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=java-programming-notes</link>
					<comments>https://vinodsebastian.com/java-programming-notes/#respond</comments>
		
		<dc:creator><![CDATA[vinodsebastian]]></dc:creator>
		<pubDate>Tue, 22 Dec 2020 10:19:01 +0000</pubDate>
				<category><![CDATA[IT Made Easy]]></category>
		<category><![CDATA[Java]]></category>
		<guid isPermaLink="false">https://vinodsebastian.com/notes/</guid>

					<description><![CDATA[<p>Java Programming Notes Identifiers and Class Members Identifiers in Java must start with a letter, a currency character ($), or an underscore (_). Class members are initialized with default values of binary 0s for primitive types and null for objects. Modifiers in Java Default: Scope limited to the same package. Public: Scope visible everywhere. Protected: [&#8230;]</p>
<p>The post <a href="https://vinodsebastian.com/java-programming-notes/">Java Programming Notes</a> first appeared on <a href="https://vinodsebastian.com">Vinod Sebastian - B.Tech, M.Com, PGCBM, PGCPM, PGDBIO</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1>Java Programming Notes</h1>
<h2>Identifiers and Class Members</h2>
<ul>
<li>Identifiers in Java must start with a letter, a currency character ($), or an underscore (_).</li>
<li>Class members are initialized with default values of binary 0s for primitive types and null for objects.</li>
</ul>
<h2>Modifiers in Java</h2>
<ul>
<li><strong>Default:</strong> Scope limited to the same package.</li>
<li><strong>Public:</strong> Scope visible everywhere.</li>
<li><strong>Protected:</strong> Scope within the package and all subclasses.</li>
<li><strong>Private:</strong> Scope limited to the class.</li>
</ul>
<p>
	<code><br />
		Static modifiers are used to create class variables and methods that can be accessed without an instance of the class. The <code>static</code> keyword is also used for static blocks to initialize static data members. These blocks execute before the <code>main()</code> method.<br />
	</code>
</p>
<p>
	<code><br />
		Synchronized is used to ensure that a method can only be accessed by one thread at a time, which is crucial in multithreading scenarios.<br />
	</code>
</p>
<h2>Interfaces and Polymorphism</h2>
<ul>
<li>Interfaces can be implemented by a class or extended by another interface, while classes can only be extended.</li>
<li>Polymorphism can be achieved through overloading or overriding methods.</li>
</ul>
<h2>Constructor and Static Methods</h2>
<ul>
<li>Constructors should always have a call to <code>super</code> or <code>this</code>. If a constructor is provided in the base class, a call to <code>super</code> must be included in the derived class constructor.</li>
<li>Static methods are called by class name, while instance methods are called by objects.</li>
</ul>
<h2>Nested Classes in Java</h2>
<p>
	<code><br />
		Nested classes in Java can be divided into inner classes and static nested classes. Inner classes have an association with an instance of their enclosing top-level class, while static nested classes exist independently. Anonymous inner classes are useful for on-the-fly object creation without defining a separate top-level class.<br />
	</code>
</p>
<h2>String Handling and Serialization</h2>
<ul>
<li>Strings in Java are immutable, and StringBuffer is used for thread safety while StringBuilder is faster for string concatenation.</li>
<li>Serialization in Java stores objects in a serialized form, excluding transient and static variables. Serialization involves methods like <code>readObject</code> and <code>writeObject</code>.</li>
</ul>
<h2>Exception Handling and Threads</h2>
<ul>
<li>Exceptions in Java are categorized into unchecked exceptions (subclass of RuntimeException) and checked exceptions. Errors are at the same level as unchecked exceptions.</li>
<li>Threads can be created by inheriting from the <code>Thread</code> class or implementing the <code>Runnable</code> interface. Various thread operations like <code>wait</code>, <code>notify</code>, <code>yield</code>, and <code>sleep</code> are used for synchronization.</li>
</ul>
<h2>Comparator and Comparable Interfaces</h2>
<ul>
<li>The <code>Comparator</code> interface is used for custom sorting logic, while the <code>Comparable</code> interface provides default sorting behavior.</li>
<li>Both interfaces offer methods for comparing objects based on specific criteria.</li>
</ul>
<h2>Importing Classes and JAR Files</h2>
<ul>
<li>Normal import declarations import classes from packages, while static import declarations import static members from classes for direct usage.</li>
<li>JAR files are checked in specific locations to resolve classpath dependencies.</li>
</ul>
<h2>Additional Concepts</h2>
<ul>
<li>Garbage collection in Java handles memory management by removing unreferenced objects in a non-deterministic manner.</li>
<li>Assertions are used to validate invariants in the code by triggering an <code>AssertionException</code> if the condition is false.</li>
</ul>
<h2>Overview of Java Collections</h2>
<ul>
<li>Java provides various collection types like Lists, Sets, Maps, and Queues for storing and manipulating data.</li>
<li>Features like ordering, sorting, and thread safety are inherent properties of specific collection types like Linked, Tree, and Vector.</li>
</ul>
<h2>Conclusion</h2>
<p>
	Java programming encompasses a wide range of concepts and features that are essential for developing robust and efficient applications. By understanding the core principles discussed in these notes, developers can enhance their skills in Java programming and build scalable and reliable software solutions.</p><p>The post <a href="https://vinodsebastian.com/java-programming-notes/">Java Programming Notes</a> first appeared on <a href="https://vinodsebastian.com">Vinod Sebastian - B.Tech, M.Com, PGCBM, PGCPM, PGDBIO</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://vinodsebastian.com/java-programming-notes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
