<?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 oshada eranga on Medium]]></title>
        <description><![CDATA[Stories by oshada eranga on Medium]]></description>
        <link>https://medium.com/@oshadaeraboy?source=rss-670a80781b8b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Fue4yRXOQ693jAnLkCqEqA.png</url>
            <title>Stories by oshada eranga on Medium</title>
            <link>https://medium.com/@oshadaeraboy?source=rss-670a80781b8b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 19:07:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oshadaeraboy/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[ProgrammingLetterz S01 — EP01 : හැදින්වීම සහ Programming යනු කුමක්ද?]]></title>
            <link>https://medium.com/@oshadaeraboy/programmingletterz-s01-ep01-%E0%B7%84%E0%B7%90%E0%B6%AF%E0%B7%92%E0%B6%B1%E0%B7%8A%E0%B7%80%E0%B7%93%E0%B6%B8-%E0%B7%83%E0%B7%84-programming-%E0%B6%BA%E0%B6%B1%E0%B7%94-%E0%B6%9A%E0%B7%94%E0%B6%B8%E0%B6%9A%E0%B7%8A%E0%B6%AF-837ff622f542?source=rss-670a80781b8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/837ff622f542</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[oshada eranga]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 05:47:41 GMT</pubDate>
            <atom:updated>2024-03-04T05:47:41.177Z</atom:updated>
            <content:encoded><![CDATA[<h3>ProgrammingLetterz S01 — EP01 : හැදින්වීම සහ Programming යනු කුමක්ද?</h3><p>කාලෙකට කලින් මම හිතුවෙි Programming ගැන මගේ තියෙන knowledge එකෙන් වැඩක් ගන්න. ඒත් අධ්‍යාපනික කටයුතුත් එක්ක ඒක පොඩිඩකට අත්හැරලා දාන්න සිද්ධ වුණා.</p><p>ඒත් මම හැම ඉරිදා හරි කවදහරි මෙම මෙි ලිපි පෙලෙන් Programming සමිබන්ධ දේවල් ෂෙයා කරන්න බලාපොරොත්තු වෙනවා.</p><p>හරි. දැන් මම කලින් කිවිවානේ ⁣Programming ගැන මගේ Knowledge එකෙන් වැඩක් ගන්නවා කියලා. එතකොට මෙි ලිපි පෙල ලියන්න හිතුණා. නමුත් මම මෙිකේදි Target කරන්නේ Programming ගැන දන්න අයට මතක් කරන්නටත්, දන්නේ නැති අයට ඉගෙන ගන්නටත් අවස්ථාවක් හදලා දෙන්න තමා මෙිකෙදි මම කරන්න හදන්නේ.</p><p>ඒ හින්දා මෙි ලිපි පෙල සීසන්ස් කිහිපයකට කඩන්න හිතුවා.</p><p>පලමු Season එකේදි කතා කරන්න බලාපොරොත්තු වෙන්නේ Programming කියන්නේ මොකක්ද, ඇයි අපි ⁣Programming ඉගෙන ගන්න ඕනේ?, Program Design වල Basics, මොනවද මෙි Programming Languages, Compiler, Interpreter කියන්නේ මොකක්ද, Programming සමිබන්ධ මූලික දැනුමි සංකල්ප, ඒ කියන්නේ variables, methods, arrays, type casting වගේ ඒවා.</p><p>දෙවැනි Season එකේදි කතා කරන්න බලාපොරොත්තු වෙන්නේ වස්තු පාදක ක්‍රමලේඛනය, ඒ කියන්නේ Object Oriented Programming (OOP) වල Basics සහ Concepts 4 ගැනත් අපි මෙතනදි කතා වෙනවා.</p><p>දැන් කටිටියට ප්‍රශ්නයක් ඇති මම මෙිවට Use කරන Programming Language එක මොකක්ද කියලා. මම මෙිකට පාවිච්චි කරන්නේ Java. හේතුව තමයි OOPs හොදටම වැඩ කරන හොදම Programming language එකක්.</p><p>හරි. එහෙනමි Medium එකෙන් Java ඉගෙන ගමුකෝ…</p><p>මොකක්ද ඇත්තටම Programming කියන්නේ? සාමාන්‍යයෙන් අපිට කාර්යයක්(වැඩක්) කරනකො⁣ට ගැටලුවක් ආවම අපි normally කරන්නේ මොකක්ද? එක්කෝ දන්න කෙනෙක්ගෙන් අහගන්නවා නේ. එහෙම නැත්නම් අන්තර්ජාලයෙන් ඒ ප්‍රශ්නය type කලාම ඒකෙන් දෙන උත්තරය අනුව තමා වැඩ කරන්න වෙන්නේ.</p><p>අන්න ඒ වගේ තමයි පරිගණකයේත් වෙන්නේ. ඒ කියන්නේ යමි කිසි කාර්යයක් (task එකක්) කරනකොට යමි කිසි ගැටලුවක් ආවොත් ඒක විසදන්න මොනවද කරන්න ඕනේ කියලා පරිගණකයට කොහොමද කියන්න ඕනේ? අන්න ඒ Process එකට තමයි අපි Programming කියලා කියන්නේ.</p><p>දැන් ප්‍රශ්නයක් කටිටියට ඇතිවෙනවා. එහෙනමි ඇයි අපි Programming ඉගෙන ගන්න ඕනේ කියලා.</p><p>හේතු එකක් නෙමෙි. ගොඩක් තියෙනවා.</p><p>සාමාන්‍යයෙන් කෙනෙක්ව රැකියාවට තෝරා ගන්නේ Skill එක, හැසිරීම්, attitudes පාදක කරගෙන නේ. ඒ විදිහම තමා IT industry එකේදිත් සිද්ධ වෙන්නේ. ඉතින් Programming ඉගෙන ගත්තා කියන්නේ IT industry එකේ Job එකක් ගන්නවා ඉතින් Nothing.</p><p>හැබැයි guyz, මොකා කිවිවත් Skils අනිවාර්යයෙන්ම හදාගන්නම වෙනවා. ඒකට Programming අනිවාර්ය සාධකයක්. ඒ කියන්නේ තර්කන බුද්ධියත් අනිවා තියෙන්නම ඕනේ.</p><p>ඊලග කාරණය තමයි ඔයාගෙම බිස්නස් එකක් පටන් ගන්න එක. ඒකට හොදම උදාහරණයක් තමයි මෙි දෙන්නා. <a href="https://web.facebook.com/profile.php?id=100078516693000&amp;__cft__[0]=AZW18jEfWlC5TXnsfmo-LL8SwpBjlc8frbHnV4uxrGf0EjxmsVsiwuFttm_XhH9GHP3JqgfV7MZOuHe7PZTzPhRFvgZHGZkJf0eYwSig1EJSTQA3zOytht7ecLbU_uKXlgBlALZKqjOK-mxTIdxD7j3FK8fzDbZC2bUJZ3A-ETgylA-sqn3vsSny2lnnMkvZkXI&amp;__tn__=-]K-R">Hasika Sandaruwan</a> <a href="https://web.facebook.com/yasindu.sathsara?__cft__[0]=AZW18jEfWlC5TXnsfmo-LL8SwpBjlc8frbHnV4uxrGf0EjxmsVsiwuFttm_XhH9GHP3JqgfV7MZOuHe7PZTzPhRFvgZHGZkJf0eYwSig1EJSTQA3zOytht7ecLbU_uKXlgBlALZKqjOK-mxTIdxD7j3FK8fzDbZC2bUJZ3A-ETgylA-sqn3vsSny2lnnMkvZkXI&amp;__tn__=-]K-R">Yasindu Sathsara</a> ඇත්තටම ඒ අයියලා දෙන්නව මෙන්ෂන් කරන්න ප්‍රධාන හේතුවක් තමයි අද මම Programming හරි හැටි දන්නේ එයාලා දෙන්නගෙන් හරි හැටි ඉගෙන ගත්තු හින්දා. (තව අය ඉන්නවා. නැතුවාම නොවෙි.)</p><p>එයාලත් එයාලගේම Companies පටන් ගත්තේ මොනවගේ හේතුවක් නිසාද කියලා කිවිවොත් එයාලා Programming ඉගෙන ගත්තු හින්දා.</p><p>ඒකෙන් හොද හැටි සල්ලි හමිබ කරගන්නත් පුළුවන්.</p><p>තව හේතුවක් තමයි ගොඩක් Programming languages පාවිච්චි කරන්න පුළුවන් වෙනවා. උදාහරණයක් විදිහට කටිට කාලා එක Programming Language එකක් ඉගෙන ගත්තා කියමුකෝ. දැන් ඔයා හිතන්න ඔයාව එක Company එකකට තෝර ගත්තා කියලා. ඒ Company එකේ තියෙන්නේ වෙන Language එකක්. (අදහස් කලේ Programming Language එකක්) තමන් Basics දන්නවා නමි, මෙවිවා කියන්නේ ඉතින් Nothing.</p><p>මම ඔය කිවිවෙි ටිකයි. තව හේතු ගොඩක් තියෙනවා.</p><p>හරි අද කතා කලේ Programming කියන්නේ මොකක්ද, ඇයි අපි ඒක ඉගෙන ගන්න ඕනේ කියලා. ඊලග සතියේ අපි කතා කරමු,</p><p>මොකක්ද මෙි Program Design කියන්නේ, Program Design කරන විදි ගැන ඊලග සතියේ ඉගෙන ගමු.</p><p>ජයම වෙිවා…!</p><p>ප.ලි: අඩුපාඩු ඇති. ඒකට සමාවෙන්න ⁣හොදේ.</p><p><a href="https://web.facebook.com/hashtag/eraboy?__eep__=6&amp;__cft__[0]=AZW18jEfWlC5TXnsfmo-LL8SwpBjlc8frbHnV4uxrGf0EjxmsVsiwuFttm_XhH9GHP3JqgfV7MZOuHe7PZTzPhRFvgZHGZkJf0eYwSig1EJSTQA3zOytht7ecLbU_uKXlgBlALZKqjOK-mxTIdxD7j3FK8fzDbZC2bUJZ3A-ETgylA-sqn3vsSny2lnnMkvZkXI&amp;__tn__=*NK-R">#eraboy</a></p><p><a href="https://web.facebook.com/hashtag/programmingletterz?__eep__=6&amp;__cft__[0]=AZW18jEfWlC5TXnsfmo-LL8SwpBjlc8frbHnV4uxrGf0EjxmsVsiwuFttm_XhH9GHP3JqgfV7MZOuHe7PZTzPhRFvgZHGZkJf0eYwSig1EJSTQA3zOytht7ecLbU_uKXlgBlALZKqjOK-mxTIdxD7j3FK8fzDbZC2bUJZ3A-ETgylA-sqn3vsSny2lnnMkvZkXI&amp;__tn__=*NK-R">#ProgrammingLetterz</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/0*7sp3U4U3vgR2Nu4e" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=837ff622f542" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Type Casting in Java: Intro and Usage]]></title>
            <link>https://medium.com/@oshadaeraboy/type-casting-in-java-intro-and-usage-be86ae907322?source=rss-670a80781b8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/be86ae907322</guid>
            <category><![CDATA[java8-tutorial]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[java8]]></category>
            <dc:creator><![CDATA[oshada eranga]]></dc:creator>
            <pubDate>Fri, 21 Apr 2023 17:51:58 GMT</pubDate>
            <atom:updated>2023-04-21T17:51:58.612Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*7odXKTUVQDuuCSkZmjaTDg.png" /><figcaption>Image Courtesy: javatpoint.com</figcaption></figure><p>Hello World..! In this article, we talk about “<em>type casting conversion</em> <em>in Java.</em>” We talk the what is types of casting and what types of type casting, with examples. Firstly We Talk about typecasting.</p><ul><li><em>What is type casting?<br>- </em>In Java, type casting <em>is a method or process that converts a data type into another data type in both ways manually and automatically.</em> The automatic conversion is done by the compiler and the manual conversion is performed by the programmer.<br>- Type Casting is divided into 2 parts.<br>1. <em>Widening Type Casting</em><br>2. <em>Narrowing Type Casting</em></li><li><em>Widening Type Casting<br>- Widening Type Casting </em>means, Converting a lower data type into a higher one. It is also known as <em>implicit conversion</em> or <em>casting down.<br>- </em>It is done automatically. It is safe because there is no chance of lost data. (Figure 1)<br>- Then the widening type casting data types as,<br><strong>byte -&gt; short -&gt; char -&gt; int -&gt; long -&gt; float -&gt; double</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*I8acl_l-T18aZvWPeOkiQA.png" /><figcaption>Figure 1: Example of Widening Type Casting in Java.</figcaption></figure><ul><li><em>Narrowing Type Casting<br>- </em>This is an opposite of a widening casting. Simply, It means, Converting a higher data type into a lower one. It is also known as <em>explicit conversion</em> or <em>casting up.<br>- </em>It is done by Programmer, Manually. If we don’t perform casting then the compiler reports a compile-time error. (Figure 2)<br>- Then the narrowing type casting data types as,<br><strong>double -&gt; float -&gt; long -&gt; int -&gt; char -&gt; short -&gt; byte</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*UVEg9RXzoH0r1tbtBnBGiw.png" /><figcaption>Figure 2: Example of Narrowing Type Casting in Java.</figcaption></figure><p>In this Letter, We talk about Java type casting. If you can ask questions or got a problem, please contact me following this.<br>Email: oshadaeranga919@gmail.com<br>LinkedIn: Oshada Eranga<br>Facebook : Oshada Eranga<br>Whatsapp: +94 767627455</p><p>References<br>1. Type Casting in Java: JavaTPoint<br>(<a href="https://www.javatpoint.com/type-casting-in-java">https://www.javatpoint.com/type-casting-in-java</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be86ae907322" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Variables: Intro and usage]]></title>
            <link>https://medium.com/@oshadaeraboy/java-variables-intro-and-usage-4c1a665c4c17?source=rss-670a80781b8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c1a665c4c17</guid>
            <category><![CDATA[java8-tutorial]]></category>
            <category><![CDATA[java-variables]]></category>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[oshada eranga]]></dc:creator>
            <pubDate>Sat, 08 Apr 2023 17:33:37 GMT</pubDate>
            <atom:updated>2023-04-08T17:33:37.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*U5BJIkqx414Tub0X_BsETA.jpeg" /><figcaption>Image Courtesy: Startertutorials.com</figcaption></figure><p>Hello World..! In this article, We talk about Java variables. Firstly we talk about what are variables and After, we talk about Java variables, Java Variable Types, and Java Variable Rules with examples.</p><p><em>What is a variable?</em><br>- Simply, <em>The variable is a quantity that may change within the context of a mathematical problem or experiment.</em></p><p>- But <em>On the programming side, a variable is a value that can change, depending on conditions or information passed to the program.</em></p><p>- It is a name given to a<em> memory location. </em>It is the <em>basic unit of storage in the program.</em></p><p>Special Points:<br>- The value stored in a variable can be changed during program execution.<br>- A Variable is only a name given to a memory location. All the operations done on the variable affect that memory location.<br>- In Java, all variables must be declared before use.</p><p><em>What is a variable in Java?</em><br>- A variable is a container.</p><p><em>How to Declare Variables in Java?</em><br>- We can declare variables in Java as pictorially depicted below as a visual aid.[Figure 1: Variable Declaration Syntax in Java. (Image Courtesy: Guru99.com)]</p><p>- From the image, it can be easily perceived that while declaring a variable, we need to take care of two things that are:<br>1. <em>Datatype</em>: Type of data that can be stored in this variable.<br>2. <em>Variable Name</em>: The name was given to the variable.</p><p>- In this way, a name can only be given to a memory location. It can be assigned values in two ways.<br>1. <em>Variable Initialization.</em><br>2. <em>Assigning value by taking input.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*Xicfv04-Zs7NTpmBkXrF6A.jpeg" /><figcaption>Figure 1: Variable Declaration Syntax in Java. (Image Courtesy: Guru99.com)</figcaption></figure><p><em>How to Initialize Variables in Java?</em><br>- It can be perceived with the help of <em>3 components</em> that are as follows.<br># <em>datatype</em>: Type of data(we talk about data types in another article. Please don’t confuse about it.) that can be stored in this variable.<br># <em>Variable name</em>: Name given to the variable.<br># <em>Value</em>: It is the initial value stored in the variable.<br>[Figure 2: Variable Initialization Syntax in Java. (Image Courtesy: geeksforgeeks.org)]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*T6jq9kcH_-ZLAb_-3RKlUA.png" /><figcaption>Figure 2: Variable Initialization Syntax in Java. (Image Courtesy: geeksforgeeks.org)</figcaption></figure><p><em>Variables Ex:<br></em>[Figure 3: Example of Variables in Java.]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*xogT7eeLPgbm6IjBRaynyQ.png" /><figcaption>Figure 3: Example of Variables in Java.</figcaption></figure><p><em>Types of Variables in Java<br>- </em>It is divided into 3 types.<br> 1. Local Variables.<br> 2. Instance Variables<br> 3. Static Variables</p><ul><li><em>Local Variables<br>- A Variable Defined within a block or method or constructor is called a local variable.<br># </em>These variables are created when the block is entered, or the function is called and destroyed after exiting from the block or when the call returns from the function.<br># The <em>Scope of these variables exists only within the block in which the variables are declared, i.e., we can access these variables only within that block.</em><br># <em>Initialization of the local variable is mandatory before using it in the defined scope.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*rVW3EcoatKLBLB53AdG1kw.png" /><figcaption>Figure 4: Local Variables in Java</figcaption></figure><ul><li><em>Instance Variables<br>Instance Variables are non-static variables and are declared in a class when an object of the class is created and destroyed when the object is destroyed.<br># </em>As instance variables are declared in a class, these variables are created when an object of the class is created and destroyed when the object is destroyed.<br># Unlike local variables, we may use access specifiers for instance variables. If we do not specify any access specifier, then the default access specifier will be used.<br># Initialization of an instance variable is not mandatory. Its default value is dependent on the data type of variable. For String it is null, for float it is 0.0f, for int it is 0, for Wrapper classes like Integer it is null, etc.<br># Instance variables can be accessed only by creating objects.<br># We initialize instance variables using <em>constructors while creating an object.</em> We <em>can also use instance blocks to initialize the instance variables.<br></em>(Figure 5: Instance Variables in the constructor and Instance Variables in the Instance Block.)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*fWhqTEEGqiduUFbQGQ_2eQ.png" /><figcaption>Figure 5: Instance Variables in the constructor and Instance Variables in the Instance Block.</figcaption></figure><ul><li><em>Static Variables<br>Static variables are also known as class variables.<br></em>#<em> </em>These<em> </em>variables are declared similarly to instance variables. The difference is that static variables are declared using the static keyword within a class outside any method, constructor, or block.<br># Unlike instance variables, we can only have one copy of a static variable per class, irrespective of how many objects we create.<br># Static variables are created at the start of program execution and destroyed automatically when execution ends.<br># <em>Initialization of a static variable is not mandatory. Its default value is dependent on the data type of variable.</em><br># If<em> we access a static variable like an instance variable (through an object), the compiler will show a warning message, which won’t halt the program. The compiler will replace the object name with the class name automatically.</em><br># If<em> we access a static variable without the class name, the compiler will automatically append the class name.</em> But for <em>accessing the static variable of a different class, we must mention the class name as 2 different classes might have a static variable with the same name.</em><br># <em>Static variables cannot be declared locally inside an instance method.</em><br># <em>Static blocks can be used to initialize static variables.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*3LajSBSs5lym7azptrewOw.png" /><figcaption>Figure 6: Static Variables</figcaption></figure><ul><li><em>Rules Of Variable Declarations<br></em>1. A Variable name can consist of capital letters (A-Z), lowercase letters (a-z), digits (0–9), and two special characters such as _ underscore and $ dollar sign. (Figure 7)<br>2. The First Character must not be a digit. (Figure 8)<br>3. Blank Spaces can not be used in variable names. (Figure 9)<br>4. Java Keywords can not be used as variable names. (Figure 10)<br>5. Variable names are case-sensitive. (Figure 11)<br>6. There is no limit on the length of a variable name but by convention, I should be between 4 to 15 chars.<br>7. Variable names always should exist on the left-hand side of assignment operators.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*fwCjhsI7tAHAlhaMxiTgcQ.png" /><figcaption>Figure 7: 1st Rule of Variable Declarations.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*UwY0DMbzkPj1Ks_79JcC-Q.png" /><figcaption>Figure 8: 2nd Rule of Variable Declarations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*R2pAE9_eio1ZSn-RG6nSmg.png" /><figcaption>Figure 9: 3rd Rule of Variable Declarations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*LqdoEanfXCc8gwNqgSueRQ.png" /><figcaption>Figure 10: 4th Rule of Variable Declarations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*5yRVyN03-gKHcomePdn6aA.png" /><figcaption>Figure 11: 5th Rule of Variable Declarations</figcaption></figure><p>In this Letter, We talk about Java variables. If you can ask questions or got a problem, please contact me following this.<br>Email: oshadaeranga919@gmail.com<br>LinkedIn: Oshada Eranga<br>Facebook : Oshada Eranga<br>Whatsapp: +94 767627455</p><p>References include in this letter:<br>1. Java Variables: Geeks For Geeks<br>(<a href="https://www.geeksforgeeks.org/variables-in-java/">https://www.geeksforgeeks.org/variables-in-java/</a>)<br>2. Rules for Variable Declaration in java: Geeks For Geeks<br>(<a href="https://www.geeksforgeeks.org/rules-for-variable-declaration-in-java/">https://www.geeksforgeeks.org/rules-for-variable-declaration-in-java/</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c1a665c4c17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Vs Next.Js: Which Framework Is Better For your Front-end?]]></title>
            <link>https://medium.com/@oshadaeraboy/react-vs-next-js-which-framework-is-better-for-your-front-end-c12cc468caa4?source=rss-670a80781b8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c12cc468caa4</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[oshada eranga]]></dc:creator>
            <pubDate>Tue, 04 Apr 2023 04:39:55 GMT</pubDate>
            <atom:updated>2023-04-04T04:39:55.503Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*ixzkE88aA7hK3vSiI8WBkw.png" /><figcaption>Figure 1: Next.Js vs React.Js</figcaption></figure><p><em>Hello World..! In this article, We talk about the two famous javascript frameworks and which Framework Is Better For your Front-end in two frameworks (react and next). Firstly We talk about what is a javascript framework and after we talk about react js and next js (introduction, equal, and difference).</em></p><ul><li><em>What is a javascript framework?</em><br>- Simply,<em> the JavaScript framework is a collection of JavaScript code libraries that provide a web developer with pre-written code for routine programming tasks. Frameworks are structures with particular content and help you create web applications within that context.</em><br><br>- It is <em>entirely possible to build strong web applications without JS Frameworks, but frameworks provide a template that handles common programming patterns. </em>Each time you have to build an application, you don’t need to write code for every single feature from scratch. Instead, you can build upon an existing feature set.<br><br>- <em>Modern JavaScript frameworks use a software design pattern called Model–View–Controller (MVC). </em>It is commonly used for developing user interfaces that divide related programming logic into three interconnected elements.<br><br>- Frameworks are built around the MVC design pattern to provide structure and adaptability in software development.</li><li><em>Popular Frontend JS Frameworks<br>-</em> React<br>- Angular<br>- Vue<br>- BackBone<br>- Ember<br>- Svelte<br>- Next<br>- Preact<br>etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hnBA_dj9pefMf1vnQT9xLg.jpeg" /><figcaption>Figure 2: JS Frameworks</figcaption></figure><p>Ok. We talked about JS Frameworks. So let’s start talking about Which Framework Is Better For your Front-end with react vs next? Firstly, We talk about React Js.</p><ul><li>React Js</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cY5nCEgq82Ma52KJnuHNiQ.png" /><figcaption>Figure 3: React JS Logo</figcaption></figure><p><em>- React (also known as ReactJS/React.js) is a free and open-source front-end JS Library for building user interfaces based on components.</em></p><p>- It is maintained by <em>Meta (formerly Facebook)</em> and a community of individual developers and companies. <em>It was initially released in 2013</em>.</p><p>- React was created By<em> Jordan Walke</em>, who works as a Software engineer at Facebook.</p><ul><li>React can be used as a<em> base in the development of single-page, mobile, or server-rendered applications with frameworks like Next.js</em> (We Talk after it.).<br><br>- React is used by many large companies and organizations. Some of the best-known companies are Facebook, Instagram, Netflix, Uber, and Airbnb.</li><li>Why Use React.js?<br>- Flexible<br>- React Has a Great Developer Experience<br>- React Has Facebook’s Support/Resources<br>- React Has Broader Community Support, Too<br>- React Has Great Performance<br>- React is Easy to Test</li><li><em>Features of React<br>- </em>JavaScript Syntax Extension (JSX)<br>- Component<br>- Virtual DOM<br>- One-way data binding</li></ul><p>-&gt;<strong> What is a Virtual DOM?</strong><br>- <em>The virtual DOM is an instance of the original or actual DOM.</em> The browser’s DOM is in its first slow and still re-renders everything to show a small state change which makes the case even worse, but the React team came up with a concept of creating another instance of the actual DOM with JavaScript, which is actually fast and when a state change occurs, the virtual DOM makes a comparison between it and another new virtual DOM.<br>If the two DOMs are equal, the actual DOM never gets touched; the actual DOM gets updated.<br><br>-&gt; <strong>What is a One-Way Data Binding?</strong><br>- <em>A components logic contains the data to be displayed on the user interface. The connection flow between the data displayed and the logic component is called data binding in React.js.</em><br> <br>- <em>One-way binding means data flows from the parent components to the children only.</em> This is a simpler way of data flow than two-way binding, which can become complex.<br><br>- These data are passed using a read-only prop, which cannot pass back data to the parent component but has a way of communicating to the parent for state changes based on inputs.</p><p>-&gt; <strong>What is a JSX(JavaScript Syntax Extension)?</strong><br>- <em>JSX is a combination of JavaScript and HTML.</em> This syntax extension is basically used to create React elements.</p><p>-&gt;<strong> What is a Component?</strong><br>- <em>Everything in React is a component.</em> Multiple React components are coupled to create simple user interfaces for very large and complex UI. Each of these components can have its logic and behaviors. Components are reusable in any part of the web page by just calling it.</p><ul><li><em>What are the Pros and cons of react.js?<br>-&gt; </em>Pros<br>- Easy To Learn<br>- JSX Extension(JavaScript Syntax Extension)<br>- Reusable Components<br>- Performance Enhancement<br>- React.js is SEO Friendly<br>- Large ecosystem of third-party libraries(including Redux, Router and Axios)<br>- Easily Write Unit Tests<br>- Allows for server-side rendering<br>- Creating Dynamic Web Applications Becomes Easier<br>- The Support of Handy Tools<br>- The Benefit of Having JavaScript Library<br><br>-&gt; Cons<br>- Fast-Developing<br>- Complex Documentation<br>- Re-Rendering<br>- View Part<br>- JSX as a barrier<br>- Not a full-featured framework<br>- Flexibility and Lack of Conventions<br>- large size library</li><li><em>React Version History<br></em>In this case, We list down the major releases only(shortly).<br>- v0.3.0 (initial public release) to v0.8.0 are released in 2013.<br>- v0.9.0 to v0.12.0 are released in 2014.<br>- v0.13.0 and v0.14.1 are released in 2015.<br>- v15.0.0 to v15.4.1 are released in 2016.*<br>- v15.4.2 to v16.1.0 are released in 2017.*<br>- v16.3.0 to v16.7.0 are released in 2018.*<br>- v16.8.0 to v16.12.0 are released in 2019.*<br>- v16.13.0 to v17.0.1 are released in 2020.*<br>- v17.0.2 are released in 2021.<br>- v18.0.0 to v18.2.0 are released in 2022*<br>*included sub-versions. If you like the in-detail, please refer to this <a href="https://en.wikipedia.org/wiki/React_(JavaScript_library)">link</a>.</li></ul><p>Ok. Let’s go to Next.js.</p><ul><li>Next Js</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*oh500L-MZ-X1d9NfR7fMuw.png" /><figcaption>Figure 4: Next.JS Logo</figcaption></figure><p>Next.js is a server-side rendering framework built on top of React. It was created by the development team at Vercel (formerly Zeit) and provides a set of tools for building server-rendered React applications. Next.js takes care of the configuration and setup required to build server-rendered React applications, which can save developers a lot of time.</p><p>Next.js provides several features that make it a good choice for building complex applications. One of the most important features is server-side rendering, which allows Next.js to generate the initial HTML on the server and send it to the client. This can improve the performance of your application, especially for users with slow internet connections or older devices.</p><p>Another feature of Next.js is static site generation, which allows you to generate static HTML pages at build time. This can improve the performance of your application even further, as the server can serve pre-rendered HTML pages instead of generating them on the fly.</p><p>Finally, Next.js provides a set of tools for building API routes, which can be used to build serverless functions that run on Vercel’s serverless platform. This can be useful for building serverless backends for your application, which can reduce the operational complexity of your application.</p><p>What is the difference in React vs Next.js?</p><p>React and Next.js are both built on top of React, but they have different use cases and strengths. React is a client-side JavaScript library for building user interfaces, while Next.js is a server-side rendering framework built on top of React.</p><p>React is often used to build single-page applications (SPAs), while Next.js is a good choice for building complex applications that require server-side rendering or static site generation.</p><p>If you are building a simple SPA, then React is a good choice. However, if you are building a complex application that requires server-side rendering or static site generation, then Next.js is a better choice.</p><p>Conclusion</p><p>React and Next.js are both powerful tools for building front-end web applications. React is a good choice for building simple SPAs, while Next.js is a better choice for building complex applications that require server-side rendering or static site generation.</p><p>Ultimately, the choice between React and Next.js depends on the specific requirements of your project. If you are not sure which framework to choose, it’s always a good idea to start with React and then add Next.js if you need server-side rendering or static site generation.</p><p>In this Letter, We talk about the “React Vs Next.Js: Which Framework Is Better For your Front-end?’’. If you can ask questions or got a problem, please contact me following this.<br>Email: oshadaeranga919@gmail.com<br>LinkedIn: Oshada Eranga<br>Facebook : Oshada Eranga<br>Whatsapp: +94 767627455</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c12cc468caa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Typescript: Intro]]></title>
            <link>https://medium.com/@oshadaeraboy/typescript-intro-4dc743f25fd7?source=rss-670a80781b8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dc743f25fd7</guid>
            <category><![CDATA[js]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[t]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[oshada eranga]]></dc:creator>
            <pubDate>Thu, 23 Mar 2023 09:56:39 GMT</pubDate>
            <atom:updated>2023-03-23T09:57:38.230Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*moJeTvW97yShLB7URRj5Kg.png" /><figcaption>Figure 1: Typescript Logo</figcaption></figure><p><em>Hello World..! Welcome to the Programming Languages Intro Article Series S01. In the last article, we talked about the Java programming language and its history. In this episode, We talk about typescript programming language. But First, we get an idea about javascript and ECMAScript. Because It’s better to easily learn the typescript. (It’s the same syntaxes, but got some differences in typescript.)</em></p><ul><li><em>Javascript / ECMAScript: Introduction and history</em><br>- Simpliy, Javascript is a world-famous <em>scripting or programming language</em>. It is <em>lightweight </em>and most commonly used in part of web pages, whose implementations <em>allow client-side scripts to interact with the user and make dynamic pages.</em> It is an <em>interpreted or just-in-time compiled</em><strong> </strong>programming language with <em>OO capabilities</em>. (OO-Object Oriented)<br><br>- Javascript was invented by <em>Brendan Eich(Figure 2) in 1995 Dec 4</em>. It was developed by <em>Netscape 2</em>, First known as<em> LiveScript</em>. But Netscape changed the name <em>JavaScript</em>, possibly because of the excitement being generated by java.<br><br>- But Netscape handed in javascript over to <em>ECMA Committee(It started in 1996)</em>, and <em>Mozilla foundation </em>continued developing js for its web browser (Mozilla Firefox).<br><br>- The first ES1 supportive web browser is internet explorer [IE4] (build in Microsoft).<br>(Sp.Note: <br>-&gt; <em>ECMAScript is the standard name of the javascript language.)</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*yM3i-bSd__JVbbfz6NVUhQ.jpeg" /><figcaption>Figure 2: Brendan eich (Founder of the javascript)</figcaption></figure><p>Ok. Let’s Move to the Typescript.</p><ul><li><em>What is a typescript?</em><br>- Typescript is a <em>free, open-source, high-level programming language</em>. It was <em>developed and maintained by Microsoft. </em><br> <br>- It is a <em>strict syntactical superset of JS </em>and <em>adds optional static typing</em> to the language. (Addition of<em> class-based object-oriented programming</em>.)<br><br>- Typescript has been created to tackle the development of large programs. Being a <em>superset of JavaScript</em>, it can be <em>trans-compiled to the latter and all JavaScript programs can be considered TypeScript programs</em>.</li><li><em>Typescript History<br>-</em> <em>First Typescript version was released to public use in</em> <em>October 2012</em>, as <em>version 0.8</em> of the language. It was a result of two years of development at Microsoft, with<em> Anders Hejlsberg(Figure 3)</em>, the lead architect of c#, as well as the creator of Delphi and Turbo Pascal working on the project too.<br><br>- Soon after the initial public release, <em>Miguel de lcaza(Figure 4)</em> praised the language itself but criticized the lack of mature IDE support apart from Microsoft Visual Studio, which was not available on Linux and OS X at that time. <br>(Sp.Note: But in April 2021, there is support in other IDEs.[Emacs, Vim, WebStrom, Atom and VS Code(Visual Studio Code)])<br><br>- Typescript v0.8 was followed by a newer version, <em>Typescript 0.9 which was released in 2013</em>. <em>It had an additional feature- support for generics.</em><br><br>- The new version,<em> Typescript 1.0 was released at the build in 2014</em>. The second update for Visual Studio 2013 provides default support for typescript.<br><br>- <em>A New compiler for TypeScript was announced by its development team in July 2014</em>. The team claimed that the new compiler would bring five times gains in performance with itself. Around the same time, the source code for TypeScript, which was originally hosted by CodePlex, was shifted to Github.<br> <br>-On <em>22 Sep 2016, Typescript 2.0 was released,</em> introducing several features, including the ability for programmers to optionally enforce null safety, sometimes referred to as the <em>billion-dollar mistake</em>.<br><br>- <em>Typescript 3.0 was released on 30th July 2018</em>, bringing many language additions like <em>tuples in rest parameters and spread expressions, rest parameters with tuple types, generic rest parameters and so on</em>.<br><em><br>-TypeScript 4.0 was released on 20 August 2020</em>. While 4.0 did not introduce any breaking changes, it added language features such as <em>Custom JSX Factories and Variadic Tuple Types</em>.<br><br>- The Latest Version, <em>Typescript 5.0</em> was released on <em>16 March 2023</em>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*L3RULYdfq1PIn1ex7kjzPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*P7lSFUWpF4kzaxPaJBWGuA.jpeg" /><figcaption>Figure 3, 4 (Anders Hejisberg and <em>Miguel de lcaza)</em></figcaption></figure><ul><li><em>What are the features of Typescript?</em><br>- TypeScript Code is converted into Plain JavaScript Code<br>- JavaScript is TypeScript(file extension changing)<br>- Use TypeScript anywhere<br>- TypeScript supports JS libraries</li><li><em>What is the difference between javascript vs typescript?</em><br>- JavaScript is a prototype-based language(Scripting language), but TypeScript is an object-oriented programming language. (a superset of JavaScript)<br><br>- JavaScript is not supported in static typing(It is called dynamic typing), but TypeScript supports this feature.<br><br>- JavaScript doesn&#39;t support interfaces, but TypeScript supported it.<br><br>- JavaScript code did not need compiling, But typescript did need compiling.<br><br>- JavaScript is an ideal option for small-size projects, But Typescript is a powerful type system, including generics &amp; JS features for large-size projects.<br><br>- JavaScript’s Learning curve is low, but TypeScript’s Learning Curve is high.</li><li><em>What are the advantages and disadvantages of using typescript?</em><br>- Advantages<br> 1. Strict typing<br> 2. Structural typing<br> 3. Type annotations<br> 4. Type inference<br><br>- Disadvantages<br> 1. Overly complicated typing system<br> 2. Required compilation<br> 3. False sense of security</li><li><em>What are some alternatives to TypeScript?</em><br>1. Flow<br>2. JSDoc<br>3. Other strictly typed languages that compile to JavaScript<br>- Kotlin<br>- Rust<br>- Go <br>- Elm and Reason</li></ul><p>In this Article, We talk about Typescript. If you can ask questions or got a problem, please contact me following this.<br>Email: oshadaeranga919@gmail.com<br>LinkedIn: Oshada Eranga<br>Facebook : Oshada Eranga<br>Whatsapp: +94 767627455</p><p>References included in this article:<br>1. TypeScript | Definition, Programming, History: Cleverism<br>(<a href="https://www.cleverism.com/skills-and-tools/typescript/">https://www.cleverism.com/skills-and-tools/typescript/</a>)<br>2. TypeScript: Wikipedia<br>(<a href="https://en.wikipedia.org/wiki/TypeScript">https://en.wikipedia.org/wiki/TypeScript</a>)<br>3. Difference between TypeScript and JavaScript: GeeksForGeeks<br>(<a href="https://www.geeksforgeeks.org/difference-between-typescript-and-javascript/">https://www.geeksforgeeks.org/difference-between-typescript-and-javascript/</a>)<br>4. JavaScript History: w3schools<br>(<a href="https://www.w3schools.com/js/js_history.asp">https://www.w3schools.com/js/js_history.asp</a>)<br>5. JavaScript Overview: Tutorials Point<br>(<a href="https://www.tutorialspoint.com/javascript/javascript_overview.htm#">https://www.tutorialspoint.com/javascript/javascript_overview.htm#</a>)<br>6. TypeScript Tutorial: Tutorials Point<br>(<a href="https://www.tutorialspoint.com/typescript/">https://www.tutorialspoint.com/typescript/</a>)<br>7. What is JavaScript?: MDN Web Docs<br>(<a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript">https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dc743f25fd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Programming Language: Intro]]></title>
            <link>https://medium.com/@oshadaeraboy/java-programming-language-9889525644d1?source=rss-670a80781b8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9889525644d1</guid>
            <dc:creator><![CDATA[oshada eranga]]></dc:creator>
            <pubDate>Tue, 21 Mar 2023 15:45:35 GMT</pubDate>
            <atom:updated>2023-03-22T09:23:39.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OUh8ruzun93cvyZIjcIJdw.png" /><figcaption>Figure 1: Java Programming Language Logo</figcaption></figure><p><em>Hello Friends, Welcome to the Programming Languages Intro Article Series S01. This is a starting point episode article. Firstly We Talk About java.</em></p><p><em>Java is a world-famous programming language in all-in-one applications. (It means standalone, mobile, and web applications) This Letter includes what is a java programming language, its history, and many questions about java programming language.</em></p><ol><li>What is a Java Programming Language?<br>- Simply, java is a<em> world-famous, high-level, class-based, object-oriented programming language</em>. It was based on C# and C++ Programming Languages.<br>- Java was developed by <em>James Gosling</em> in <em>1995 in Sun microsystems</em>, later acquired by oracle corporation.</li><li>Java History:-<br>- It is a very interesting story. In 1991, <em>James Gosling(Father of java),</em> <em>Mike Sheridan,</em> and <em>Patrick Naughton</em> created a programming language. (At this time they’re working in sun microsystems and they working for the team.) They called the <em>Green Team</em> and they initiated the java language in 1991. Sun Microsystem released the first public implementation in 1996 as Java 1.0. <br>- In 1997, Sun Microsystems approached the ISO standards body and later formalized Java, but it soon withdrew from the process. At one time, Sun made most of its Java implementations available without charge, despite their proprietary software status. Sun generated revenue from Java through the selling of licenses for specialized products such as the Java Enterprise System.<br>- On November 13, 2006, Sun released much of its Java virtual machine as free, open-source software. On May 8, 2007, Sun finished the process, making all of its JVM’s core code available under open-source distribution terms.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*GmPOkCQLFEK-L-BPsywcaA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rzGf6B-Kj-Zf-IXlhsf22Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*HtjjK3ctNan_ZeGJC1Id_g.jpeg" /><figcaption>Figure 2,3,4:Java Founders in sun microsystems(The Green team - <em>Mike Sheridan, James Gosling, and Patrick Naughton</em>)</figcaption></figure><p>3. What are the main features of java?<br>- Object-Oriented<br>- Portable<br>- Simple<br>- Secure<br>- Robust<br>- Platform independent<br>- Multithreading<br>- Distributed<br>- High Performance<br>- Dynamic Flexibility<br>- Sandbox Execution<br>- Write Once Run Anywhere (Architecture neutral)<br>- Power of complication and interpretation</p><p>4. Where is java used?<br>- Desktop Applications<br>- Web Applications<br>- Mobile Applications<br>- Embedded System<br>- Robotics<br>- Games etc.</p><p>5. What is a common term in using java(java terminology)?<br>- Firstly, before we learn java, We will get knowledge of these common terms.<br> 01.<em> Java Virtual Machine(JVM):</em><strong> </strong>This is generally referred to as JVM. There are three execution phases of a program. They are written, compile and run the program.</p><ul><li>Writing a program is done by a java programmer like you and me.</li><li>The compilation is done by the <strong>JAVAC</strong> compiler which is a primary Java compiler included in the Java development kit (JDK). It takes the Java program as input and generates bytecode as output.</li><li>In the Running<strong> </strong>phase of a program,<strong> JVM</strong> executes the bytecode generated by the compiler.</li></ul><p>Now, we understood that the function of Java Virtual Machine is to execute the bytecode produced by the compiler. Every Operating System has a different JVM but the output they produce after the execution of bytecode is the same across all the operating systems. This is why Java is known as a<strong> platform-independent language.</strong></p><p>02. <em>Bytecode in the Development Process:</em><strong><em> </em></strong>As discussed, the Javac compiler of JDK compiles the java source code into bytecode so that it can be executed by JVM. It is saved as a <strong>.class</strong> file by the compiler. To view the bytecode, a disassembler like java can be used.</p><p><strong>03. </strong><em>Java Development Kit(JDK):</em><strong><em> </em></strong>While we were using the term JDK when we learn about bytecode and JVM. So, as the name suggests, it is a complete Java development kit that includes everything including compiler, Java Runtime Environment (JRE), java debuggers, java docs, etc. For the program to execute in java, we need to install JDK on our computer to create, compile and run the java program.</p><p><strong>04. </strong><em>Java Runtime Environment (JRE):</em><strong><em> </em></strong>JDK includes JRE. JRE installation on our computers allows the java program to run, however, we cannot compile it. JRE includes a browser, JVM, applet support, and plugins. For running the java program, a computer needs JRE.</p><p><strong>05. </strong><em>Garbage Collector:</em><strong> </strong>In Java, programmers can’t delete the objects. To delete or recollect that memory JVM has a program called Garbage Collector. Garbage Collectors can recollect the objects that are not referenced. So Java makes the life of a programmer easy by handling memory management. However, programmers should be careful about their code whether they are using objects that have been used for a long time. Because Garbage cannot recover the memory of objects being referenced.</p><p><strong>06. </strong><em>ClassPath: </em>The classpath is the file path where the java runtime and Java compiler look for <strong>.class</strong> files to load. By default, JDK provides many libraries. If you want to include external libraries they should be added to the classpath.</p><p>6. List down the java version history.<br>- In this case, I will give the version information shortly. (JDK Version and release date)[Sp. Note: * marked in the LTS Versions.]<br> 1. JDK 1.0: 23th Jan 1996<br> 2. JDK 1.1: 2nd Feb 1997<br> 3. J2SE 1.2: 4th Dec 1998<br> 4. J2SE 1.3: 8th May 2000 <br> 5. J2SE 1.4: 13th Feb 2002<br> 6. Java SE 5: 29th Sep 2004<br> 7. Java SE 6: 11th Dec 2006<br> 8. Java SE 7: 28th July 2011<br> 9. Java SE 8*: 18th March 2014<br>10. Java SE 9: 21st Sep 2017<br>11. Java SE 10: 20th March 2018<br>12. Java SE 11*: 25th Sep 2018<br>13. Java SE 12: 19th March 2019<br>14. Java SE 13: 17th Sep 2019<br>15. Java SE 14: 17th March 2020<br>16. Java SE 15: 16th September 2020<br>17. Java SE 16: 16th March 2021<br>18. Java SE 17*: 14th September 2021<br>19. Java SE 18: 22nd March 2022<br>20. Java SE 19<em>(Latest Version): </em>20th September 2022<br>21. Java SE 20(Future Update): March 2023<br>22. Java SE 21*: September 2023<br>- Sp.Note: <em>Java 20 and 21 are ready to release this year.</em></p><p>7. What is a step in implementing a java application?<br>- Implementation of a Java application program involves the following step. They include:<br> 1. Creating the program<br> 2. Compiling the program<br> 3. Running the program</p><p>Remember that, before we begin creating the program, the Java Development Kit (JDK) must be properly installed on our system and also path will be set.<br>• Creating Program<br> We can create a program using Text Editor (Notepad) or IDE (NetBeans)<br> class Test<br> {<br> public static void main(String []args)<br> {<br> System.out.println(“My First Java Program.”);<br> }<br> }</p><p>File -&gt; Save -&gt; d:\Test.java</p><p>• Compiling the program<br> To compile the program, we must run the Java compiler (javac), with the name of the source file on the “command prompt” as follows</p><p>If everything is OK, the “javac” compiler creates a file called “Test. class” containing the byte code of the program.</p><p>• Running the program<br> We need to use the Java Interpreter to run a program.</p><p>In this Letter, We talk about java programming language. If you can ask questions or got a problem, please contact me following this.<br>Email: oshadaeranga919@gmail.com<br>LinkedIn: Oshada Eranga<br>Facebook : Oshada Eranga<br>Whatsapp: +94 767627455</p><p>References include in this letter:<br>1. Introduction to java: Scaler Topics (<a href="https://www.scaler.com/topics/java/introduction-to-java/">https://www.scaler.com/topics/java/introduction-to-java/</a>)<br>2. Introduction to java: w3schools (<a href="https://www.w3schools.com/java/java_intro.asp">https://www.w3schools.com/java/java_intro.asp</a>)<br>3. Introduction to java programming -Tutorial<br>(<a href="https://www.vogella.com/tutorials/JavaIntroduction/article.html">https://www.vogella.com/tutorials/JavaIntroduction/article.html</a>)<br>4. Introduction to java: geeks for geeks (<a href="https://www.geeksforgeeks.org/introduction-to-java/">https://www.geeksforgeeks.org/introduction-to-java/</a>)<br>5. Java Tutorial: tutorials point<br>(<a href="https://www.tutorialspoint.com/java/index.htm">https://www.tutorialspoint.com/java/index.htm</a>)<br>6. Introduction to java: java overview<br>(<a href="https://www.knowledgehut.com/tutorials/java-tutorial/java-introduction">https://www.knowledgehut.com/tutorials/java-tutorial/java-introduction</a>)<br>7. Java version history: Wikipedia<br>(<a href="https://en.wikipedia.org/wiki/Java_version_history">https://en.wikipedia.org/wiki/Java_version_history</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9889525644d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install scene builder in windows and configure in IntelliJ idea ?]]></title>
            <link>https://medium.com/@oshadaeraboy/how-to-install-scene-builder-in-windows-and-configure-in-intellij-idea-7291a23a7de7?source=rss-670a80781b8b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7291a23a7de7</guid>
            <category><![CDATA[intellij-idea]]></category>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[core-java-tutorial]]></category>
            <category><![CDATA[javafx]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[oshada eranga]]></dc:creator>
            <pubDate>Mon, 06 Mar 2023 12:00:50 GMT</pubDate>
            <atom:updated>2023-03-22T09:14:45.498Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to install scene builder in windows and configure it in IntelliJ idea?</h3><p><em>Scene builder is a visual layout tool using java fx. It is an open-source tool and using easily with the java fx framework. This Letter includes to the installation process of scene builder in windows and configuring process in IntelliJ idea.</em></p><p>Step 1: First You go to the scene builder visual layout tool&#39;s official website. (link: <a href="https://gluonhq.com/products/scene-builder/">https://gluonhq.com/products/scene-builder/</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*60MmQnHK4_7wRRrTbsuTqQ.png" /><figcaption>figure 1: Scene builder Official Site</figcaption></figure><p>Step 2: If you scroll the downside, you can see the downloads section. You can see the 2 versions. Firstly you can see the java 11 or higher downloads. After You can see the java 8 downloads. In my case, I’m Using the java 1.8 LTS version, So I download the scene builder 8.5.0 version. (Note:- You using the java 11 or higher version, You download the 19th version of scene builder. And Please Download the installer file[Windows Installer] in your correct bit version.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ChwLFK2exPtlYhbvgR9dMw.png" /><figcaption>Figure 2: Download Section in scene builder</figcaption></figure><p>Step 3: After Downloading and double-click the setup and start the setup. The first UI shows the Agreement. You check the radio button, “I accept the agreement”. After Checking the radio button and click next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*vHwDtTWYrg5DYU3PD2gGig.png" /><figcaption>Figure 3: First Step of the Installation Process of Scene builder</figcaption></figure><p>Step 4: This step is the setup of installing location. Do not any changes in this location and click next. (Note:- But you hadn&#39;t any space in Default Drive(It means C drive) you can change the location.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*vAtKvUzHjKzjMi92st4Wsg.png" /><figcaption>Figure 4: Location of the installing scene builder</figcaption></figure><p>After clicking next, Start the installation process. It will take seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*R_jw5aBkro73SbopxIfeeA.png" /><figcaption>Figure 5: Installing Process.</figcaption></figure><p>Then You can see this UI. This is a starting UI of Scene builder software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wuOM0uqDyzFvZQvWVQex8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4R4Ltz9uvNlffoczin3epA.png" /><figcaption>Figures 6 and 7: Starting UI for Scene Builder</figcaption></figure><p>We finished the installation of the scene builder software. Now we go to the Configuration of the scene builder for the IntelliJ idea.</p><p>Step 1: First, click the search bar (or win.key + s) and search the scene builder and click “open file location”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*W7FGmcH_wsIo7NjkgG5UUw.png" /><figcaption>Figure 8: Searching the Scene builder and click the open file location</figcaption></figure><p>Step 2: After clicking the open file location, You can see the scene builder shortcut right-click the icon and click the “open file location”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OVgmW5ecD-RVW1cMCXqYxA.png" /><figcaption>Figure 9: open file location step</figcaption></figure><p>Step 3: After clicking the open file location you can see the files in the scene builder. Then you go to the file location title bar and click once and select the path using the shortcut (Ctrl+A)[Figure 10] or right-click and copy [Figure 11] or right-click the location bar and click the copy address [Figure 12].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*of2wnR0OfGtid12bxdpwxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vxD1Se5Mb9kdgRnmDAN6sA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2FlkbD3jtEWY8cDp1iSdA.png" /><figcaption>Figures 10, 11, 12</figcaption></figure><p>Step 4: Open IntelliJ idea and go to the file &gt; settings(Shortcut key: ctrl + alt + s).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*meKwxt_hArDa8QqJc0eexA.png" /><figcaption>Figure 13: Opening the settings</figcaption></figure><p>Step 5: After opening the settings window, type this keyword “JavaFX”. You can see the textbox in fill the path of scene builder configuration path. Then you paste the file path of the copied path into the scene builder configuration path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XphK49QSqr5KOLZ2MCcO9w.png" /><figcaption>Figure 14</figcaption></figure><p>Step 6: After pasting the file path, type backslash and press the ctrl + space and find and select the “scenebuilder.exe”. After clicking apply and ok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u55hZDujmvBZqVIfDkKoOQ.png" /><figcaption>Figure 15</figcaption></figure><p>Then you create the empty project and right-click to src and select the FXML file and create the fxml file. after creating fxml file and right click the fxml file and you can see the “open with scene builder”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8sOpBciHCN6yluqKZqiQQ.png" /><figcaption>Figure 16</figcaption></figure><p>This is a step for the installation process of the scene builder.</p><p>If you can ask questions or got a problem, please contact me following this.</p><p>Email: oshadaeranga919@gmail.com<br>LinkedIn: Oshada Eranga<br>Facebook : Oshada Eranga<br>whatsapp: +94 767627455</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7291a23a7de7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>