<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by codeincharge on Medium]]></title>
        <description><![CDATA[Stories by codeincharge on Medium]]></description>
        <link>https://medium.com/@codeincharge?source=rss-3b530106c0a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nvRDz9-7fqtnrTQqDY_rhw.png</url>
            <title>Stories by codeincharge on Medium</title>
            <link>https://medium.com/@codeincharge?source=rss-3b530106c0a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:56:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@codeincharge/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Google’s New Gemini File Search: The Missing Piece Every AI Developer Wanted]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@codeincharge/googles-new-gemini-file-search-the-missing-piece-every-ai-developer-wanted-23a2a942aa1b?source=rss-3b530106c0a1------2"><img src="https://cdn-images-1.medium.com/max/2600/1*Mq0fbcuVIgXgkwcSW9Vucw.png" width="2816"></a></p><p class="medium-feed-snippet">If you&#x2019;ve ever tried to make an AI system &#x201C;understand&#x201D; your own files&#x200A;&#x2014;&#x200A;PDFs, docs, code snippets, long reports&#x200A;&#x2014;&#x200A;you already know it&#x2019;s&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@codeincharge/googles-new-gemini-file-search-the-missing-piece-every-ai-developer-wanted-23a2a942aa1b?source=rss-3b530106c0a1------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@codeincharge/googles-new-gemini-file-search-the-missing-piece-every-ai-developer-wanted-23a2a942aa1b?source=rss-3b530106c0a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/23a2a942aa1b</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[google-gemini-ai]]></category>
            <category><![CDATA[ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[rags]]></category>
            <dc:creator><![CDATA[codeincharge]]></dc:creator>
            <pubDate>Sat, 22 Nov 2025 20:02:44 GMT</pubDate>
            <atom:updated>2025-11-22T20:02:44.922Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Static nested classes and why we should use them]]></title>
            <link>https://medium.com/@codeincharge/static-nested-classes-and-singleton-design-pattern-1e0c6d3f661d?source=rss-3b530106c0a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e0c6d3f661d</guid>
            <category><![CDATA[singleton-pattern]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[singleton-design-pattern]]></category>
            <category><![CDATA[nested-classes]]></category>
            <category><![CDATA[inner-class]]></category>
            <dc:creator><![CDATA[codeincharge]]></dc:creator>
            <pubDate>Sat, 30 Sep 2023 08:08:01 GMT</pubDate>
            <atom:updated>2023-10-03T17:54:18.473Z</atom:updated>
            <content:encoded><![CDATA[<h3>Static nested classes in java and why should we use them</h3><p>If you are not aware about the inner classes then I highly recommend you to read article in <a href="https://medium.com/@kunal.batra/nested-classes-in-java-and-why-should-we-use-them-5d02e2116821">Nested classes</a>.</p><p>Static nested class <strong><em>can not directly access</em></strong> to instance variable and methods of its enclosing class. It can only access thorugh object reference.<br>If you try to access non static instance variables and methods then you will get compile time error <strong><em>‘Compiler error: Cannot make a static reference to the non-static</em></strong>’.<br>To access variables and methods of its enclosing class you shoud use the object refrence.</p><pre>public class Outer {<br>    private String outerField = &quot;test&quot;;<br>    <br>    public static class InnerStatic{<br>        public void accessMembers(Outer outer)<br>// Non-static field &#39;outerField&#39; cannot be referenced from a static context<br>            System.out.println(outerField);<br>// below is the correct way to access its enclosing member using object refernece<br>            System.out.println(outer.outerField);<br>        }<br>    }<br>    <br>}</pre><p><strong><em>So you can say static nested class just behave like an any other top level class,</em></strong> because to access members of its enclosing class its requies an object reference.<br>You can use static nested class in</p><ul><li><strong>Builder design pattern</strong></li><li><strong>Singleton design pattern</strong></li></ul><p>Below is the simple implementation of Singleton design pattern</p><pre>public final class Outer {<br>    public static class Instance{<br>        private static Outer INST = new Outer();<br>//A private constructor so that no one other class can access Instance class<br>//except from Outer class<br>        private Instance(){<br>        }<br>    }<br>    public static Outer getInstance(){<br>        return Instance.INST;<br>    }<br><br>    public static void main(String[] args) {<br>        System.out.println(Outer.getInstance());<br>    }<br><br>}</pre><p>In the above example Static nested class ‘<strong><em>Instance</em></strong>’ is ceating an object of its outer class and we have also created a private constructor of <strong>‘Instance’</strong> so that no other class can directly access our ‘<strong><em>Instance</em></strong>’ class.<br>Now at the time JVM initialize our application its assign memory to static class and creates only one reference of <strong><em>‘Outer’</em></strong> class through below line of above example</p><pre>private static Outer INST = new Outer();</pre><p>As <strong><em>‘Outer’</em></strong> class we can easily access its inner static class <strong><em>‘Instance’</em></strong>, so it can refer the object through <strong><em>Instance.INST.</em></strong></p><p>So to get the instance of its outer class we have defined a method <strong>getInstance()</strong><em> </em>in <strong><em>‘Outer’.</em></strong></p><p>There are multiple ways to create singleton class, here our intension is only related to static nested classes, so above is the implementation of the same.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e0c6d3f661d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nested classes in java and why should we use them]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Nested class simply means that class within class, below is the sample code</p><p class="medium-feed-link"><a href="https://medium.com/@codeincharge/nested-classes-in-java-and-why-should-we-use-them-5d02e2116821?source=rss-3b530106c0a1------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@codeincharge/nested-classes-in-java-and-why-should-we-use-them-5d02e2116821?source=rss-3b530106c0a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d02e2116821</guid>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[nested-classes]]></category>
            <dc:creator><![CDATA[codeincharge]]></dc:creator>
            <pubDate>Thu, 21 Sep 2023 10:42:57 GMT</pubDate>
            <atom:updated>2023-10-03T08:53:41.308Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Effective final in java lambda]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Problem statement&#xA0;: What is Effective final in Java?</p><p class="medium-feed-link"><a href="https://medium.com/@codeincharge/effective-final-in-java-lambda-d969d5da30b2?source=rss-3b530106c0a1------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@codeincharge/effective-final-in-java-lambda-d969d5da30b2?source=rss-3b530106c0a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d969d5da30b2</guid>
            <category><![CDATA[lambda-expressions]]></category>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[lambda-function]]></category>
            <dc:creator><![CDATA[codeincharge]]></dc:creator>
            <pubDate>Wed, 13 Sep 2023 11:52:27 GMT</pubDate>
            <atom:updated>2023-09-13T11:59:15.718Z</atom:updated>
        </item>
    </channel>
</rss>