<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kumar Sanskar</title>
    <description>The latest articles on DEV Community by Kumar Sanskar (@kumarsanskar).</description>
    <link>https://dev.to/kumarsanskar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F528429%2Fdfd7d061-3a78-4071-b2d3-7d4408b3f2a0.jpeg</url>
      <title>DEV Community: Kumar Sanskar</title>
      <link>https://dev.to/kumarsanskar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kumarsanskar"/>
    <language>en</language>
    <item>
      <title>Program Control Statements 3</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Fri, 28 May 2021 18:29:19 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/program-control-statements-3-14a0</link>
      <guid>https://dev.to/kumarsanskar/program-control-statements-3-14a0</guid>
      <description>&lt;p&gt;So it's &lt;strong&gt;day nine&lt;/strong&gt; of my learning java journey and today I will discuss the topic of loops in program control statements.&lt;/p&gt;

&lt;p&gt;Loops in general understanding means to repeatedly doing the same task over and over again for example writing &lt;strong&gt;Sorry&lt;/strong&gt; hundred times to your professor for not submitting assignment on time😂😂.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aTRqgJmL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2y4rkcsaq3ny19vtal8y.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aTRqgJmL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2y4rkcsaq3ny19vtal8y.jpg" alt="Alt Text" width="225" height="225"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;Beware! &lt;/center&gt;

&lt;p&gt;There are three general type of loop control structure in case of every programming language. They are -&lt;br&gt;
i. For loop&lt;br&gt;
ii. while loop&lt;br&gt;
iii. do-while loop&lt;br&gt;
but in java in addition to these we also have an enhanced for loop which is another variant of for loop which will be discussed after arrays so it is more understandable as per the book I am following.&lt;/p&gt;

&lt;h1&gt;
  
  
  for loop -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;it is pretty easy in understanding and I suppose the syntax and example provoided will be self explanatory for it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;syntax -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   for(*intialization* ; *condition* ; *iteratation*)
   {
       statements
   }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;example -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class UsingForLoop {
    public static int NUMBER_ITERATIONS = 5;

    /*
     *here we demonstrate the of use the for loop for printing input name five times.
     */
    public static void main(String[] args) {
        System.out.println("Please enter your name: ");
        Scanner scannerObject = new Scanner(System.in);
        String studentName = scannerObject.next();

        for (int NUMBER_ITERATORS = 0; NUMBER_ITERATORS &amp;lt; 5; NUMBER_ITERATORS++) {
            System.out.println("Your name is: " + studentName);

        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;it is also called as entry controlled loop because the condition is checked at the beginning of the loop and as soon as condition evaluates to 'false' the loop is terminated.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Infinite for loop -&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   for(;;)
   {
     statements
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  while loop -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;it is a type of loop control structure where condition is checked in the beginning and loop executes or runs till the condition holds 'true'.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;syntax -&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     while(condition)
     {
       statements  
      }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;example -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    public class UsingWhileLoop {
    /*
     *her ewe use while loop to print squares of number from 1 to 100.
     */
    public static void main(String[] args) {
        int i = 1;
        while (i &amp;lt;= 100) {
            System.out.println(i + "^2 =" + i * i);
            i++;
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  do while loop -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;it is also a loop control structure but unlike for and while loop it is exit control in nature that is it will be executed at-least even when the condition is 'false'.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;syntax -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   do{
    statements
   }while(condition);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;exapmle -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class usingDoWhileLoop {
    /*
     *here we use do while loop to add user input numbers till zero is input by user.
     */

    public static void main(String[] args) {
        int sum = 0;
        int number = 0;

        Scanner scannerObject = new Scanner(System.in);


        do {
            System.out.println("input a number: ");
            number = scannerObject.nextInt();
            sum += number;
        } while (number != 0);
        System.out.println("sum= " + sum);
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;another type of program control structures apart form the loops are &lt;em&gt;break&lt;/em&gt; and &lt;em&gt;continue&lt;/em&gt;, they are statements and can even be used to alter the normal execution of program like break is used in &lt;strong&gt;switch&lt;/strong&gt; statements.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's the end of the program control structures although I left out the example for break and continue I will update it as soon as possible. Till then keep learning, keep growing and feel free to suggest any changes in post.&lt;/p&gt;

</description>
      <category>java</category>
      <category>goal</category>
      <category>beginners</category>
      <category>motivation</category>
    </item>
    <item>
      <title>Program Control Statements 2</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Thu, 27 May 2021 18:19:32 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/program-control-statements-2-3ed8</link>
      <guid>https://dev.to/kumarsanskar/program-control-statements-2-3ed8</guid>
      <description>&lt;p&gt;So today, is &lt;strong&gt;day nine&lt;/strong&gt; of my learning Java journey and today I will discuss the another part of Program control statements in Java as said yesterday. So, let's get rolling.&lt;/p&gt;

&lt;h1&gt;
  
  
  Switch statements -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;it can be said as a more enhanced as well as efficient version of if else condition as when there are multiple situations and pertaining to each of them there is a statement.&lt;/li&gt;
&lt;li&gt;it works like as soon as a match to the condition is found then the statement related to it is executed and rest are discarded and if none then a default statement is executed.&lt;/li&gt;
&lt;li&gt;also with each statement of by-conditions pertaining to an input &lt;strong&gt;break&lt;/strong&gt; has to be used if &lt;strong&gt;break&lt;/strong&gt; is not used then all statements will be executed.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;Syntax - *&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   switch(expression){
       case constantOne:
       statement sequence
       break;
       case constantTwo:
       statementSequenceTwo
       break;
       .
       .
       .
       .
       default:
        statementSequenceDefault
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;here duplicate values are not allowed.&lt;/li&gt;
&lt;li&gt;also the nesting can be implemented of switch case statements in Java just like the nesting of if-statements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;example -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class usingSwitchCase {
    /*
     *here we enter a day number and by using switch case statement we return the corresponding day name.
     */
    public static void main(String[] args) {
        int dayNumber = 5;
        System.out.println("For day number "+ dayNumber +" from week the day name is: ");
        scanner.close();
        String dayName;
        switch (dayNumber) {
            case 1:
                dayName = "Sunday";
                break;
            case 2:
                dayName = "Monday";
                break;
            case 3:
                dayName = "Tuesday";
                break;
            case 4:
                dayName = "Wednesday";
                break;
            case 5:
                dayName = "Thursday";
                break;
            case 6:
                dayName = "Friday";
                break;
            case 7:
                dayName = "Saturday";
                break;
            default:
                dayName = "Invalid day number input.";
        }
        System.out.println("The day is " + dayName);
    }

}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's halt it here for the day today and will continue tomorrow from the next topic in program control structure that is loops.&lt;br&gt;
Till then keep learning, keep growing. and feel free to point or add anything related to the topic that I may have missed.          &lt;/p&gt;

</description>
      <category>java</category>
      <category>motivation</category>
      <category>beginners</category>
      <category>goal</category>
    </item>
    <item>
      <title>Program Control Statements in Java</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Wed, 26 May 2021 18:26:52 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/program-control-statements-in-java-3bd0</link>
      <guid>https://dev.to/kumarsanskar/program-control-statements-in-java-3bd0</guid>
      <description>&lt;p&gt;Hello readers, it has been a wonderful journey of learning Java till today and today is &lt;strong&gt;day eight&lt;/strong&gt; of my learning Java. By now since you must have read the title of the post you must be aware that I must have studied Program Control statements today and so it is but since it contains a lot of topics I will be posting about them in parts. &lt;br&gt;
Today I will discuss about the various &lt;strong&gt;if statements&lt;/strong&gt; with their examples. &lt;/p&gt;

&lt;h1&gt;
  
  
  The if statement -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;like we use the &lt;em&gt;if&lt;/em&gt; in our normal English language in order to show and make use of the condition like for example - If Ram finishes his homework in time, his mother will reward him.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here we show a condition that if Ram does his homework in time he would be rewarded so is the case with the &lt;strong&gt;if statements&lt;/strong&gt; in Java programming it is used in programming to control the flow of program and decision making.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Syntax -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    if(condition)
    {
      statements
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;example : -
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class UsingIfStatement {
    public static void main(String[] args) {
        // here we demonstrate using the if statement in a program.

        int numberOfBoys = 29;
        if (numberOfBoys == 29) {
            System.out.println("There are twenty-nine male students in the class.");
        }
        System.out.println("This statement is general statement and is independent of if block .");
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  The if-else Statement -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;it is similar to the 'if' statement discussed above but the only difference is that it contains an else so if the provided condition evaluates to false then other set of statements will be executed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Syntax -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  if(condition)
    {
      statements
    }
  else(condition)
   {
      statements
   }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;exapmle -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
public class UsingIfElseStatement {
    /*
     * here we make a simple program which checks for the number to be even or odd using if else block.
     */
    public static void main(String[] args) {
        int checkNumber = 7;
        System.out.println("Check whether number 7 is even or odd? ");

        if (checkNumber % 2 == 0) {
            System.out.println("Number is even.");
        } else {
            System.out.println("Number is odd.");
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Nested if Statements -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;an if statement is said to be &lt;em&gt;nested if&lt;/em&gt; statement when it is a result of another if statement in an if-else block&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;exapmle -&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class NestedIfStatements {
    /*in this program we learn how to use nested if statement in java
     *
     * here if first condition evaluates to true then second condition is checked to produce an output.
     */

    public static void main(String[] args) {
        int number1 = 4, number2 = -1;
        if (number1 &amp;gt; 10) {
            if (number2 &amp;gt; 0) {
                System.out.println("Number1 is = " + number1 + " and " + "Number2 is = " + number2);
            }
        }
        else{
            System.out.println("Sorry number1 and number2 didn't fall  in range of 10 and greater than 20.");
        }

    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  if else-if else ladder -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;it is also like if and if else and nested if conditions but differs in a fact that as soon as condition evaluating to 'true' is found the statement related to it is executed and rest is discarded and if none of the conditions are evaluated as true then 'else' condition is executed.
+
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class UsingIfElseifElseStatement {
    /*
     *here we check that whether a number is positive, negative or equal to zero.
     */
    public static void main(String[] args) {
        int checkNumber = 7;
        System.out.println("Check the number 7 whether it id positive, negative or zero. ");


        if (checkNumber &amp;gt; 0) {
            System.out.println("Number is Positive.");
        } else if (checkNumber &amp;lt; 0) {
            System.out.println("number is Negative.");
        } else {
            System.out.println("Number is zero.");
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, that's it for the day in program control statements tomorrow we will be discussing the other remaining topics in that, till then keep learning keep growing.&lt;br&gt;
If you encounter any discrepancies feel free to point out or give any suggestions. &lt;/p&gt;

</description>
      <category>java</category>
      <category>goal</category>
      <category>motivation</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Operators in Java</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Tue, 25 May 2021 18:29:39 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/operators-in-java-og6</link>
      <guid>https://dev.to/kumarsanskar/operators-in-java-og6</guid>
      <description>&lt;p&gt;Hello readers it's day seven of my learning Java journey and today I will share with you my learning of Operators in java.&lt;/p&gt;

&lt;p&gt;As we have symbols in mathematics to perform certain calculation say the plus '+' for addition and so on similarly we have operators in Java to perform either a mathematical or logical  manipulation&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Java has four types of operators:-
i. Mathematical
ii. Logical
iii. Relational
iv. Bitwise&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Mathematical Operators -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;it contains all the symbols that are used in mathematical computation only just be a bit careful with the use of &lt;strong&gt;/&lt;/strong&gt; and &lt;strong&gt;%&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symbol&lt;/th&gt;
&lt;th&gt;Function&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;+&lt;/td&gt;
&lt;td&gt;addition&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;subtraction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;*&lt;/td&gt;
&lt;td&gt;multiplication&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/&lt;/td&gt;
&lt;td&gt;integer division (returns quotient)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;%&lt;/td&gt;
&lt;td&gt;modulus (returns remainder)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;++&lt;/td&gt;
&lt;td&gt;increment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;--&lt;/td&gt;
&lt;td&gt;decrement&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;the increment (++) and decrement (--) operators increase or decrease the value of operands by one.&lt;/li&gt;
&lt;li&gt;it can be used in two ways either prefix or postfix.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Relational  and Logical Operators -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;relational and logical operators are used to show decide or compare two operands and they produce result as of type &lt;strong&gt;Boolean&lt;/strong&gt; that is either true or false.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;in case of logiacal operators the operands must be in form of &lt;strong&gt;boolean&lt;/strong&gt; values.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Relational Operataors:-&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symbol&lt;/th&gt;
&lt;th&gt;Function&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;gt;&lt;/td&gt;
&lt;td&gt;greater than&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;lt;&lt;/td&gt;
&lt;td&gt;less than&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;gt;=&lt;/td&gt;
&lt;td&gt;greater than equal to&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;lt;=&lt;/td&gt;
&lt;td&gt;less  than equal to&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;==&lt;/td&gt;
&lt;td&gt;equal to&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;!=&lt;/td&gt;
&lt;td&gt;not equal to&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Logical Operators:-&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symbol&lt;/th&gt;
&lt;th&gt;Function&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&amp;amp;&lt;/td&gt;
&lt;td&gt;AND&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;^&lt;/td&gt;
&lt;td&gt;XOR&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;amp;&amp;amp;&lt;/td&gt;
&lt;td&gt;SHORT-CIRCUIT AND&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;!&lt;/td&gt;
&lt;td&gt;NOT&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;the difference between normal and short-circuit logical operators is that normal ones evaluate each operand but in case of short-circuit they only evaluate the second condition of necessary&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;u&gt;the short-circuit operators are also known as conditional-and &lt;/u&gt; and &lt;u&gt;conditional-or operators.&lt;/u&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Assignment Operator -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;it is used for assigning values to variables.&lt;/li&gt;
&lt;li&gt;it is represented by normal '=' sign and should not be confused with '==' of relational operators.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;java also allows you to make a chain of assignments that is to make them get a common value.&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; int a, b, c;
 a = b = c =1;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Shorthand Assignment -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;it is used to simplify the coding convention and save some time.
for example-
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  x = x + 10;
can be re-written as 
  x += 10;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>java</category>
      <category>motivation</category>
      <category>goal</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Literals and Variables in Java.</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Mon, 24 May 2021 18:28:20 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/literals-and-variables-in-java-6m</link>
      <guid>https://dev.to/kumarsanskar/literals-and-variables-in-java-6m</guid>
      <description>&lt;p&gt;Well I took a break of two days from my learning Java journey so that I could do my another favorite thing that is doing some art work after being surrounded from tech my all days, some time these breaks are necessary so as to give you a mental peace.&lt;br&gt;
Enough of talks now let's get back to our business that is learning Java.&lt;/p&gt;

&lt;p&gt;It's &lt;strong&gt;day six&lt;/strong&gt; and today I will talk about Literals and variables.&lt;/p&gt;
&lt;h1&gt;
  
  
  Literals :-
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;literal can be anything that has a fixed value and can be represented in a human readable form and are also called as &lt;strong&gt;consonants&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;in java literals can be of any of the eight primitive types.&lt;/li&gt;
&lt;li&gt;in addition too the eight primitive types Java also supports &lt;strong&gt;Hexadecimal&lt;/strong&gt;, &lt;strong&gt;octal&lt;/strong&gt;, and &lt;strong&gt;binary&lt;/strong&gt; literals.&lt;/li&gt;
&lt;li&gt;Hexadecimal literals have to begin with &lt;strong&gt;0x&lt;/strong&gt; or &lt;strong&gt;0X&lt;/strong&gt; and octal literals have to begin with &lt;strong&gt;0&lt;/strong&gt; and similarly binary literals have to begin with &lt;strong&gt;0b&lt;/strong&gt; or &lt;strong&gt;0B&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Java furthermore also supports another type of literal &lt;em&gt;String&lt;/em&gt;, it can be understood as set of characters enclosed by double quotes and can even contain character escape sequences like /n, /t etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;
  
  
  Variables -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;as evident from the name itself it refers to something that can vary and are used to declare as well as initialize values in a Java program.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Initializing Variables in Java&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  type variableName = value;
  for example :- 
  int ageOfStudent = 20;
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;
&lt;li&gt;&lt;p&gt;while declaring and initializing variables of same data type we can separate them using commas and even assign values simulatenously. for example -&lt;br&gt;&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    int ageOfStudent = 10, numberOfSiblings = 2;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;java also supports dynamic initialization of variables that is at run time.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Scope and Lifetime of a Variable&lt;/strong&gt; -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;in Java all the variables are defined within a block of code which like every other program is defined by opening and closing of curly braces.&lt;/li&gt;
&lt;li&gt;these blocks define a &lt;u&gt;&lt;strong&gt;scope&lt;/strong&gt;&lt;/u&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;in Java scopes are defined by two ways:-&lt;/p&gt;

&lt;p&gt;i. defined by methods&lt;br&gt;
 ii. defined by class&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;&lt;p&gt;a variable defined within a block is called local variable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;objects declared in outer scope will be visible to inner scope but the vice-versa will not hold true.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Closing here for the day, feel free to add, correct or suggest any mistake that may have crept in.&lt;/p&gt;

</description>
      <category>java</category>
      <category>beginners</category>
      <category>goal</category>
      <category>motivation</category>
    </item>
    <item>
      <title>More into Data types!</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Fri, 21 May 2021 18:28:15 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/more-into-data-types-5ehh</link>
      <guid>https://dev.to/kumarsanskar/more-into-data-types-5ehh</guid>
      <description>&lt;p&gt;Today is &lt;strong&gt;day five&lt;/strong&gt; of my learning Java journey.&lt;/p&gt;

&lt;p&gt;Yesterday, I had learnt and shared with you the data types available in Java and the various types under the respective Primitive and Reference data type. Today, I would be sharing more in depth about each of the data types discussed in the previous post.&lt;/p&gt;

&lt;p&gt;As we had discussed that Java has eight sub types of data types under the category of Primitive data types.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The types Byte, Short Int and Long can be combined under one umbrella as &lt;em&gt;Integer&lt;/em&gt; data types.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Size in bits&lt;/th&gt;
&lt;th&gt;Range&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;byte&lt;/td&gt;
&lt;td&gt;8 bits&lt;/td&gt;
&lt;td&gt;-127 to 128&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;short&lt;/td&gt;
&lt;td&gt;16 bits&lt;/td&gt;
&lt;td&gt;-32768 to 32767&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;int&lt;/td&gt;
&lt;td&gt;32 bits&lt;/td&gt;
&lt;td&gt;-2147483648 to 2147483647&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;long&lt;/td&gt;
&lt;td&gt;64 bits&lt;/td&gt;
&lt;td&gt;-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;these types of integer data types have a wide implications from being as variable types in control statements, for example in loops as control variables data type to general purpose mathematics.&lt;/li&gt;
&lt;li&gt;the byte and short data type are generally type-casted with (byte) or (short) so as to make it clear to compiler so as not to be mistaken with int.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;also with large data type we use 'L' as format specifier. for example - 244368L&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Another data type that combines two data types are &lt;strong&gt;Floating Point Types&lt;/strong&gt; : -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;it consists of float and double.&lt;/li&gt;
&lt;li&gt;if you are new to programming let me break it clear for you that floating point numbers are those that have a &lt;strong&gt;decimal part&lt;/strong&gt; in common language or technically those number which have a &lt;strong&gt;fractional component&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Size in bits&lt;/th&gt;
&lt;th&gt;Range&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;float&lt;/td&gt;
&lt;td&gt;32 bits&lt;/td&gt;
&lt;td&gt;1.4 E -45 to 3.402835E38&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;double&lt;/td&gt;
&lt;td&gt;64 bits&lt;/td&gt;
&lt;td&gt;1.7976931348623157 x 10308 to  4.9406564584124654 x 10-324&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;in case of data having float or double value we use format specifier 'f' or 'd' respectively. for example - 0.002f or 0.0235d.  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Char data type:-&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Size in bits&lt;/th&gt;
&lt;th&gt;Range&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;char&lt;/td&gt;
&lt;td&gt;unsigned 16 bits&lt;/td&gt;
&lt;td&gt;0 to 65,535&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;also the ASCII values are valid as Java characters.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;arithmetic manipulations are viable on char data type.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Boolean data type:-&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;&lt;p&gt;it has two values &lt;strong&gt;true&lt;/strong&gt; and &lt;strong&gt;false&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;these true and false are defined as reserved words in Java as it defines the values true and false using these words and not like in many programming languages where false is considered as 0(zero) and true as any other value than 0. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Closing for today, and will be sharing my next learnt topic tomorrow till then keep learning, keep growing. Also feel free to give any suggestions or add up any point that I may have missed.&lt;/p&gt;

</description>
      <category>java</category>
      <category>goal</category>
      <category>motivation</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Data types in Java</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Thu, 20 May 2021 18:25:36 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/data-types-in-java-lcn</link>
      <guid>https://dev.to/kumarsanskar/data-types-in-java-lcn</guid>
      <description>&lt;p&gt;Another day in the journey of learning Java, well it's &lt;strong&gt;day 4&lt;/strong&gt; and today I will talk about the very essential component in any programming language &lt;em&gt;'data types'&lt;/em&gt;, it can be thought as that important label without which we won't be able to identify the type of food kept in a container in kitchen.&lt;br&gt;
Like every programming language, Java too has data types in order to facilitate the working on data and operations to be performed upon the data input by the user. &lt;br&gt;
Java being a &lt;em&gt;strongly typed language&lt;/em&gt; makes sure that all operations are checked for data type compatibility and illegal operations are rejected by the compiler. Furthermore the presence of data types makes it easier to determine what kind of operation are allowed on each type of data.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Java has two kinds of data types :-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;u&gt; Primitive Data type&lt;/u&gt;&lt;/li&gt;
&lt;li&gt;&lt;u&gt; Reference Data type&lt;/u&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;h1&gt;
  
  
  Primitive Data Types -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;they are also called the built-in data type.&lt;/li&gt;
&lt;li&gt;Java has eight types of data defined as primitive data types and they are:-&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;i. Byte &lt;br&gt;
 ii. Short&lt;br&gt;
 iii. Char&lt;br&gt;
 iv. Int&lt;br&gt;
 v. Long&lt;br&gt;
 vi. Float&lt;br&gt;
 vii. Double&lt;br&gt;
 viii. Boolean&lt;/p&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;h1&gt;
  
  
  Reference Data Type -
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;it is also called as derived data type or non-primitive data type in Java.&lt;/li&gt;
&lt;li&gt;they refer to objects and are created by programmer.&lt;/li&gt;
&lt;li&gt;it has two subtypes :-&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;i. String, arrays, classes, intefaces.&lt;br&gt;
ii. BigInteger,BigDecimal......and so on.&lt;/p&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's it for today my readers, see you in the next blog till then keep learning keep growing, also you can put any suggestion or remarks if you feel or point mistake that may have crept in.&lt;/p&gt;

</description>
      <category>java</category>
      <category>beginners</category>
      <category>goal</category>
      <category>motivation</category>
    </item>
    <item>
      <title>Getting started with programming in Java</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Wed, 19 May 2021 18:23:29 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/getting-started-with-programming-in-java-3mie</link>
      <guid>https://dev.to/kumarsanskar/getting-started-with-programming-in-java-3mie</guid>
      <description>&lt;p&gt;Well, it's &lt;strong&gt;day 3&lt;/strong&gt; of my learning Java journey and today we will move ahead in that by learning some components and how to write and compile our first program in Java.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;In order to run and make programs in Java on your machine you needs to have something called as &lt;strong&gt;JDK&lt;/strong&gt; which stands for &lt;u&gt;&lt;em&gt;Java Development Kit&lt;/em&gt;&lt;/u&gt; and can be installed from the respective website of oracle, you can also install its open sourced counter-part OpenJDK if you want to and YouTube as well as Google are always ready to help you in doing so, but with some advanced IDE's like IntelliJ you don't need to worry for that as they do it automatically.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;h1&gt;
  
  
  JDK consists of :-
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;u&gt; JRE (Java Runtime Environment)&lt;/u&gt;&lt;/li&gt;
&lt;li&gt;&lt;u&gt; JVM (Java Virtual Machine)&lt;/u&gt;&lt;/li&gt;
&lt;li&gt;
&lt;u&gt; Java Compiler(javac)&lt;/u&gt; &lt;/li&gt;
&lt;li&gt;&lt;u&gt; Libraries&lt;/u&gt;&lt;/li&gt;
&lt;li&gt;&lt;u&gt; Development tools.&lt;/u&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JDK include JRE and other tool to develop and run programs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JRE includes JVM and the standard libraries.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;JVM executes the Byte-code.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;

&lt;h1&gt;
  
  
  Compilation Process of a Java Program:-
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;this process is generally happens inside of JVM.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Source Code(*.java file) ----&amp;gt; given to javac compiler -----&amp;gt; Byte Code(.class file) -----&amp;gt; given to JVM -------&amp;gt;Native Machine code(binary code) &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Now we come to final part of the blog  that is writing and compiling our first Java program:-
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//package information
package.codes.main;

//name of the class "Main" - executable class
public class Main{
    // name of the method "main" - executable method
    public static void main(String[] args){
        // statement to print out to console or display
        System.out.println("Hello, World!");
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I am assuming that with a prior knowledge of computer and IDE's everyone would be able to compile and check the output of the above program, also the line containing '//' are comments used to make it clear to a new person so as to make them understand what each line does in this program and won't be visible in the output.&lt;/p&gt;

&lt;p&gt;Let's catch up in another post tomorrow, till then keep learning keep growing also do let me know of any suggestion and improvements in the comments below.&lt;/p&gt;

</description>
      <category>java</category>
      <category>beginners</category>
      <category>goal</category>
      <category>motivation</category>
    </item>
    <item>
      <title>Main features that made Java it is today!</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Tue, 18 May 2021 18:24:06 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/main-features-that-made-java-it-is-today-45gb</link>
      <guid>https://dev.to/kumarsanskar/main-features-that-made-java-it-is-today-45gb</guid>
      <description>&lt;p&gt;Hey there so it's &lt;strong&gt;day 3&lt;/strong&gt; of the learning journey and as in my previous post, I mentioned some of the features of Java while closing that post. In this, we are gonna take some of those features that made Java as we know it today.&lt;/p&gt;

&lt;p&gt;1.&lt;strong&gt;Object-oriented&lt;/strong&gt; -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; at the heart of Java is this &lt;em&gt;paradigm&lt;/em&gt; that made it one of the most sought after programming languages in the list of programmers and developers.&lt;/li&gt;
&lt;li&gt;as we all know, before the advent of Java and this paradigm of programming, mostly all the programs were structured in nature. With time, they exceeded that approach where the structured programming was no longer useful.&lt;/li&gt;
&lt;li&gt;in the object-oriented approach the programs are organized around data that is we make it clear in our program that how that data is defined and what changes and modifications can be made to that data and it follows somewhat is close to real-life hierarchies.&lt;/li&gt;
&lt;li&gt;it is based on the concept of the objects.&lt;/li&gt;
&lt;li&gt;contains data in the form of fields also called attributes or properties&lt;/li&gt;
&lt;li&gt;contains code in the form of procedures also known as methods.&lt;/li&gt;
&lt;li&gt;methods of an object with fields and objects interact with other objects.&lt;/li&gt;
&lt;li&gt;this object-oriented model had three major traits that got adopted by Java namely encapsulation, polymorphism and inheritance and became a major part.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2.&lt;strong&gt;Encapsulation&lt;/strong&gt; - &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;encapsulation in a general sense means to inclose something within a capsule and similarly, it is with the object-oriented model and Java.&lt;/li&gt;
&lt;li&gt;it is a way to bind our code and data on which it operates in such a way that their misuse can be reduced by external factors.&lt;/li&gt;
&lt;li&gt;in Java basic unit of encapsulation is a class, as we said that object are instances of a class so conversely, we can take from that class can be thought as a set of rules specifying how to build that object and while creating those objects we can make sure which other classes can modify and make alterations to the object which we have created in a class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;3.&lt;strong&gt;Polymorphism&lt;/strong&gt; - &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;polymorphism has originated from Greek words 'poly' meaning many and 'morphe' meaning forms,&lt;/em&gt; that is to perform a single task with different inputs you don't need to repeatedly make structures to perform that task all you need is to define a general structure for how that task is to be performed.&lt;/li&gt;
&lt;li&gt;for Java generally the polymorphism is expressed by the phrase " one interface, multiple methods".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;4.&lt;strong&gt;Inheritence&lt;/strong&gt; -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;we all must have heard this word in our biology classes haven't we and you can say this concept of object-oriented paradigm was taken from there, in biology inheritance means passing down certain genetic traits from parents to their offsprings.&lt;/li&gt;
&lt;li&gt;in the case of Java and object-oriented programming it can be understood as the process by which one object can acquire the properties of another object, as we know that the object-oriented paradigm is based on hierarchical classification this feature furthermore supports that; an object will just need to define those qualities that make it unique within its class it's other properties that are preceded by its preceding class can be accessed and reused by using this feature of inheritance.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Closing for the day, I will like to hear from your side my readers too for any improvements or suggestions.&lt;/p&gt;

</description>
      <category>java</category>
      <category>motivation</category>
      <category>goal</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Some basic terminologies in Java</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Mon, 17 May 2021 17:00:17 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/some-basic-terminologies-in-java-3hn4</link>
      <guid>https://dev.to/kumarsanskar/some-basic-terminologies-in-java-3hn4</guid>
      <description>&lt;p&gt;So it's &lt;strong&gt;day 2&lt;/strong&gt; of the learning journey and today we will get to know some of the basic terminologies used frequently in java.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Classes&lt;/strong&gt; -

&lt;ul&gt;
&lt;li&gt;classes can be identified as Nouns in the problem statement&lt;/li&gt;
&lt;li&gt;they are also called the &lt;strong&gt;blueprint of an object&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;as per the rule every single class should define the single object and should contain data related to that object only.&lt;/li&gt;
&lt;li&gt;For example - A human&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Objects&lt;/strong&gt; -

&lt;ul&gt;
&lt;li&gt;also called as an instance of the class.&lt;/li&gt;
&lt;li&gt;consists of the exact values of the fields/properties defined by a class&lt;/li&gt;
&lt;li&gt;objects are always related to the class.&lt;/li&gt;
&lt;li&gt;For example - If humans are class then John is one of its objects.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fields&lt;/strong&gt; - 

&lt;ul&gt;
&lt;li&gt;fields can be of both objects as well as classes they are also called attributes or property.&lt;/li&gt;
&lt;li&gt;they define actual values that an object of a class can hold.&lt;/li&gt;
&lt;li&gt;only a method of an object should be allowed to change values of a field of the same object.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Methods&lt;/strong&gt; - 

&lt;ul&gt;
&lt;li&gt;it can also be of both classes and objects.&lt;/li&gt;
&lt;li&gt;can be understood as behaviours of an object or procedures.&lt;/li&gt;
&lt;li&gt;are functions associated with an object.&lt;/li&gt;
&lt;li&gt;changes values of fields of an object.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Naming Convention in Java:-&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PascalCase&lt;/strong&gt; =&amp;gt; used for naming Class.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;camelCase&lt;/strong&gt; =&amp;gt; used for naming Fields, Methods.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SCREAM_CASE&lt;/strong&gt; =&amp;gt; used for naming Constant Values.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;lowercase&lt;/strong&gt; =&amp;gt; used for naming packages.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Some key features of Java:-&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;i. Object-Oriented&lt;br&gt;
  ii. Platform Independent&lt;br&gt;
  iii. Simple and Easy to learn&lt;br&gt;
  iv. Architecture Neutral&lt;br&gt;
  v. Portable&lt;br&gt;
  vi. Robust&lt;br&gt;
  vii. Multi-threaded&lt;br&gt;
  viii. Interpreted-byte code&lt;br&gt;
  ix. High performance&lt;br&gt;
  x. Distributed&lt;br&gt;
  xi. Dynamic&lt;/p&gt;

</description>
      <category>java</category>
      <category>codenewbie</category>
      <category>motivation</category>
      <category>goal</category>
    </item>
    <item>
      <title>Why take up Java as a programming language?</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Sat, 15 May 2021 18:33:47 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/why-take-up-java-as-a-programming-language-4k70</link>
      <guid>https://dev.to/kumarsanskar/why-take-up-java-as-a-programming-language-4k70</guid>
      <description>&lt;p&gt;Okay, so Day 1 of my learning journey and as I said that I will be sharing the journey details of my learning Java, so without any delay let's roll in.&lt;br&gt;
Like every new learner, I was quite apprehensive of me choosing Java as a primary programming language as we all know that with the talks of other programming languages like Python and others rounds the corner the task of selecting a language becomes quite hard. But let me tell you why should you chose Java:-&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; What if I tell you that about &lt;strong&gt;13 Billion&lt;/strong&gt; devices run Java and that's a really huge number isn't it, from the smartphones to the smart chips in credit cards, to server-side process and lot many more.&lt;/li&gt;
&lt;li&gt;Another amazing fact that it has been in use for almost two decades now, as Java 1.0 came out in 1995 and that's a pretty good share of time for a programming language where after few years there is a new language in the market and another departs from the market.&lt;/li&gt;
&lt;li&gt;Now there will be an obvious question that how did it survive through time and the reason is by having &lt;strong&gt;backwards compatibility&lt;/strong&gt; which is also one of the features of Java.&lt;/li&gt;
&lt;li&gt;It has a huge community of developers about &lt;strong&gt;10 million&lt;/strong&gt; from all around the globe and that makes it a lot easier for you if you feel stuck somewhere and obviously if you are looking for help on StackOverflow😅.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--F2T7vPCU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r9lmps0norly4e4vtu0d.jpg" alt="Alt Text" width="460" height="364"&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It was mainly derived from C and C++ and you can say they are the nearest ancestor of Java, as it's quite evident that from C  Java derives many of its syntaxes and from C++ it's Object-oriented model.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;But be careful there are some instances where using &lt;strong&gt;Java can be Dangerous&lt;/strong&gt; like for the systems which are using &lt;strong&gt;real-time systems&lt;/strong&gt;(basically because of garbage collection) apart from some of the places like this it is one of the best choices as a programming language&lt;/p&gt;

&lt;blockquote&gt;
&lt;h3&gt;
  
  
  &lt;em&gt;"When web companies grow up, they turn into Java shops."&lt;/em&gt; -       James Governor(Redmonk analyst and co-founder)
&lt;/h3&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>java</category>
      <category>beginners</category>
      <category>motivation</category>
      <category>goal</category>
    </item>
    <item>
      <title>So Java, it is.</title>
      <dc:creator>Kumar Sanskar</dc:creator>
      <pubDate>Fri, 14 May 2021 18:48:47 +0000</pubDate>
      <link>https://dev.to/kumarsanskar/so-java-it-is-2lj6</link>
      <guid>https://dev.to/kumarsanskar/so-java-it-is-2lj6</guid>
      <description>&lt;p&gt;Since this is my first post or rather a small blog introducing myself and why the post has such an unusual heading let me make it easier for you.&lt;br&gt;
So if you go through my profile on this platform, you see that I have mentioned that I am currently pursuing my Bachelors from G.L.A. University, Mathura in Computer Science and Engineering and during the course I have now decided to finally pick Java as my fundamental programming language. &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HU9uH7i2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qyfemvtfie6ionw3r6i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HU9uH7i2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qyfemvtfie6ionw3r6i.jpg" alt="Alt Text" width="750" height="1000"&gt;&lt;/a&gt;&lt;br&gt;
And guess what! I decided that I will be sharing my journey and the path taken to achieve my goal.&lt;br&gt;
I would be making it like a journal where every day I will be briefing about the topic that I learnt, and the resources I would use.&lt;br&gt;
Let's see how much this approach of learning works for me, keeping the finger crossed🤞 for the best.&lt;/p&gt;

</description>
      <category>java</category>
      <category>motivation</category>
      <category>goal</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
