<?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: Karthick M</title>
    <description>The latest articles on DEV Community by Karthick M (@karthick_m22).</description>
    <link>https://dev.to/karthick_m22</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%2F3719794%2F8b20351f-9b36-4df2-a844-68d4c65f053b.jpg</url>
      <title>DEV Community: Karthick M</title>
      <link>https://dev.to/karthick_m22</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karthick_m22"/>
    <language>en</language>
    <item>
      <title>Polimorphism</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Mon, 16 Feb 2026 18:01:41 +0000</pubDate>
      <link>https://dev.to/karthick_m22/polimorphism-2k3p</link>
      <guid>https://dev.to/karthick_m22/polimorphism-2k3p</guid>
      <description>&lt;p&gt;Types of Polimorphism:&lt;br&gt;
1.Method overriding or runtime polymorphism.&lt;br&gt;
2.Method overloading or compile-time polymorphism.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Method overriding:
Method overriding means defining a method in the child class with the same name, same parameters, and same return type as the method in the parent class.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is used to provide a specific implementation in the child class.&lt;br&gt;
1.Rules for Method Overriding&lt;br&gt;
2.Method name must be same&lt;br&gt;
3.Parameters must be same&lt;br&gt;
4.Return type must be same&lt;br&gt;
5.Must have inheritance (extends)&lt;br&gt;
6.Happens between parent and child class&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
class Animal {&lt;br&gt;
    void sound() {&lt;br&gt;
        System.out.println("Animal makes sound");&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;class Dog extends Animal {&lt;br&gt;
    &lt;a class="mentioned-user" href="https://dev.to/override"&gt;@override&lt;/a&gt;&lt;br&gt;
    void sound() {&lt;br&gt;
        System.out.println("Dog barks");&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;public class Main {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        Dog d = new Dog();&lt;br&gt;
        d.sound();&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Method overloading:
Method overloading means creating multiple methods with the same name in the same class, but with different parameters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Why we use Method Overloading?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Improves code readability&lt;/li&gt;
&lt;li&gt;Same method name for similar operations&lt;/li&gt;
&lt;li&gt;No need to create different method names&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rules for Method Overloading:&lt;br&gt;
Methods must differ in at least one of these:&lt;br&gt;
1.Number of parameters&lt;br&gt;
2.Type of parameters&lt;br&gt;
3.Order of parameters&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
class Calculator {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;void add(int a, int b) {
    System.out.println(a + b);
}

void add(int a, int b, int c) {
    System.out.println(a + b + c);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;public class Main {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        Calculator c = new Calculator();&lt;br&gt;
        c.add(10, 20);      // calls first method&lt;br&gt;
        c.add(10, 20, 30);  // calls second method&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>java</category>
      <category>oop</category>
      <category>programming</category>
    </item>
    <item>
      <title>Types of Inhertance</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Mon, 16 Feb 2026 17:48:23 +0000</pubDate>
      <link>https://dev.to/karthick_m22/types-of-inhertance-3ebc</link>
      <guid>https://dev.to/karthick_m22/types-of-inhertance-3ebc</guid>
      <description>&lt;p&gt;Types:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Single Inheritance (using extends keyword)&lt;/li&gt;
&lt;li&gt;Multilevel Inheritance (grand parent--&amp;gt;parent--&amp;gt;child)&lt;/li&gt;
&lt;li&gt;Hierarchical Inheritance (single parent multiple child)&lt;/li&gt;
&lt;li&gt;Multiple Inheritance (Not supported in java)&lt;/li&gt;
&lt;li&gt;Hybrid Inheritance (combination of all other inheritance)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Java supports Single, Multilevel, and Hierarchical inheritance using classes. Multiple and Hybrid inheritance are not supported using classes but can be achieved using interfaces.&lt;/p&gt;

&lt;p&gt;parent&lt;br&gt;
      /    \&lt;br&gt;
    Dog    Cat&lt;/p&gt;

&lt;p&gt;Multilevel Inheritance&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A class inherits from a class, and another class inherits from that class.
Example:
class Animal {
void eat() {
    System.out.println("Animal eats");
}
}&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;class Dog extends Animal {&lt;br&gt;
    void bark() {&lt;br&gt;
        System.out.println("Dog barks");&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;class Puppy extends Dog {&lt;br&gt;
    void weep() {&lt;br&gt;
        System.out.println("Puppy weeps");&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Multiple Inheritance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;it will not supported in java. because of ambiquity issue will come.&lt;/li&gt;
&lt;li&gt;One child class inherits from multiple parent classes.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Inheritance</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Mon, 16 Feb 2026 17:07:35 +0000</pubDate>
      <link>https://dev.to/karthick_m22/inheritance-1ci7</link>
      <guid>https://dev.to/karthick_m22/inheritance-1ci7</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;child object behaving as a parent object.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;by using Extends keyword we wil achive the inheritance&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If we want to create a relationship between two or more classes, we use Inheritance in Java.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What is Inheritance?&lt;br&gt;
Inheritance is a mechanism in Java where one class acquires the properties and behaviors (variables and methods) of another class.&lt;/p&gt;

&lt;p&gt;Advantages of using inheritance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;code reusability(less code duplication).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
parent class:&lt;br&gt;
package inheritance;&lt;/p&gt;

&lt;p&gt;public class Employee {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int empId;
int salary;
public static void main(String[] args) {

}

public void work() {

    System.out.println("Employee Work");
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;Child class:&lt;br&gt;
package inheritance;&lt;/p&gt;

&lt;p&gt;public class Developer extends Employee{&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        Developer dev1 = new Developer();&lt;br&gt;
        dev1.empId=101;&lt;br&gt;
        dev1.salary=10000;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    System.out.println(dev1.empId);
    System.out.println(dev1.salary);

    dev1.work();
    dev1.devwork();
}

public void devwork() {

    System.out.println("Coding");
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Constructor</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Sat, 14 Feb 2026 19:23:41 +0000</pubDate>
      <link>https://dev.to/karthick_m22/constructor-20ae</link>
      <guid>https://dev.to/karthick_m22/constructor-20ae</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Constructor name should be the class name.&lt;/li&gt;
&lt;li&gt;Constructor is a special method used to initialize the value for instance variable when the object created.&lt;/li&gt;
&lt;li&gt;when we create an object contructor will automatically run.&lt;/li&gt;
&lt;li&gt;we cannot manually run/call the contructor.&lt;/li&gt;
&lt;li&gt;this is the java keyword.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Costructor types:&lt;br&gt;
1.Default constructor &lt;br&gt;
2.No-Argument Constructor&lt;br&gt;
3.Parameterized constructor&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
class Bank {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int accountNo;
String name;
int balance;

Bank(int accountNo, String name , int balance)
{
    this.accountNo = accountNo;
    this.name = name;
    this.balance = balance;
}

public static void main(String[] args)
{

    Bank accholder = new Bank(101,"kumar",1000);
    System.out.println(accholder.accountNo);//101

    Bank accholder1 = new Bank(102,"hari",1000);
    System.out.println(accholder1.accountNo); //102

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

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;What is the purpose of constructor?&lt;br&gt;
Used to initial the values for instance variables at the object creation. By using *&lt;em&gt;this *&lt;/em&gt; keyword, we can access/assign values to the instance varaiable inside constructor. this refers to current object only. So this keyword is used to differentiate instance variables from local variables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;what is constructor over loading?&lt;br&gt;
while we are creating more than one contructor, arguments will differ for each contructors.&lt;br&gt;
example:&lt;br&gt;
public class Payilagam {&lt;/p&gt;

&lt;p&gt;String name;&lt;br&gt;
String email;&lt;br&gt;
String password;&lt;/p&gt;

&lt;p&gt;Payilagam(String name, String email, String password)&lt;br&gt;
{&lt;br&gt;
    this.name = name;&lt;br&gt;
    this.email = email;&lt;br&gt;
    this.password = password;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Payilagam( String email, String password)&lt;br&gt;
{&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;this.email = email;
this.password = password;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;public static void main(String[] args)&lt;br&gt;
{&lt;br&gt;
    Payilagam user1 = new Payilagam("kumar","abc.com","kumar@123");&lt;br&gt;
    System.out.println(user1);&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Payilagam user2 = new Payilagam("abc.com","kumar@123");
System.out.println(user2);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;} &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>java</category>
      <category>oop</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Operators</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Sun, 08 Feb 2026 11:45:40 +0000</pubDate>
      <link>https://dev.to/karthick_m22/operators-293f</link>
      <guid>https://dev.to/karthick_m22/operators-293f</guid>
      <description>&lt;p&gt;Operator is a special symbol used to perform some operations like add, sub, div.. etc..&lt;br&gt;
types od operators:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Assignment operator: =
2.Arithmetic operators: +,-,*,/,%&lt;/li&gt;
&lt;li&gt;Unary operators:
++ -&amp;gt; incremental operator
-- -&amp;gt; decrement operator
no++ -&amp;gt; post increment
++no -&amp;gt; pre increment
no-- -&amp;gt; post decrement
--no -&amp;gt; pre decrement&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;4.Equality and relational operators: ==,!=,&amp;lt;,&amp;gt;,&amp;lt;=,&amp;gt;=&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Conditional operators: &amp;amp;&amp;amp;,||
&amp;amp;&amp;amp; = AND operator
|| = OR operator
Operator: symbol
Operand: value&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Instance variable, Local variable, static variable and global variable</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Sun, 08 Feb 2026 11:33:08 +0000</pubDate>
      <link>https://dev.to/karthick_m22/instance-variable-local-variable-static-variable-and-global-variable-5389</link>
      <guid>https://dev.to/karthick_m22/instance-variable-local-variable-static-variable-and-global-variable-5389</guid>
      <description>&lt;p&gt;Instance variable:&lt;br&gt;
we can declare variable in the class level not in the method level.&lt;br&gt;
inside the method we can initialize the value for that variable declared.&lt;br&gt;
Example:&lt;br&gt;
public class School {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Instance(Object) variable
int std;
int age;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;public static void main(String[] args) {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    // Object or Instance
    School akshaya = new School();
    akshaya.std = 10;
    akshaya.age = 15;

    System.out.println(akshaya.std);
    System.out.println(akshaya.age);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;School kiruthika = new School();&lt;br&gt;
        kiruthika.std = 7;&lt;br&gt;
        kiruthika.age = 12;&lt;br&gt;
                System.out.println(kiruthika.std);&lt;br&gt;
        System.out.println(kiruthika.age);&lt;br&gt;
School karthick = new School();&lt;br&gt;
        karthick.std = 12;&lt;br&gt;
        karthick.age = 17;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    System.out.println(karthick.std);
    System.out.println(karthick.age);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Local variable:&lt;br&gt;
It is inside the class and also inside the method that is called a local variable.&lt;br&gt;
we cannot able to access from the different method.&lt;/p&gt;

&lt;p&gt;Static variable:&lt;br&gt;
It is initialized in the class level not a method level.&lt;br&gt;
It is common for all the objects. we can use that variable in all the object if needed.&lt;br&gt;
example:&lt;br&gt;
public class School {&lt;br&gt;
    // static variable&lt;br&gt;
    static String school_name = "abc hr sec school";&lt;br&gt;
public static void main(String[] args) {&lt;br&gt;
School akshaya = new School();&lt;br&gt;
System.out.println(School.school_name);&lt;br&gt;
   }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Global variable:&lt;br&gt;
We can access the variable in side the any methodor all method.&lt;/p&gt;

&lt;p&gt;Example for all:&lt;br&gt;
package moduleOne;&lt;/p&gt;

&lt;p&gt;public class School {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Instance(Object) variable
int std;
int age;

// static variable
static String school_name = "abc hr sec school";

// Global variable
String leave = "10th standard";

public static void main(String[] args) {

    // Object or Instance
    School akshaya = new School();
    akshaya.std = 10;
    akshaya.age = 15;

    System.out.println(akshaya.std);
    System.out.println(akshaya.age);
    akshaya.calculate(60, 70, 50, 80, 95);
    System.out.println(School.school_name);

    School kiruthika = new School();
    kiruthika.std = 7;
    kiruthika.age = 12;

    System.out.println(kiruthika.std);
    System.out.println(kiruthika.age);
    kiruthika.calculate(40, 75, 85, 50, 75);

    School karthick = new School();
    karthick.std = 12;
    karthick.age = 17;

    System.out.println(karthick.std);
    System.out.println(karthick.age);
    karthick.calculate(45, 56, 59, 40, 94);
}

public void calculate(int tamil, int english, int maths, int science, int social) {

    // Local variable
    int total = tamil + english + maths + science + social;
    System.out.println(total);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>java</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Looping Statement</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Sat, 07 Feb 2026 11:17:22 +0000</pubDate>
      <link>https://dev.to/karthick_m22/looping-statement-57d</link>
      <guid>https://dev.to/karthick_m22/looping-statement-57d</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;While loop:&lt;br&gt;
A while loop checks the condition before executing the loop body.&lt;br&gt;
When to use while loop:&lt;br&gt;
When you don’t know in advance how many times the loop will run&lt;br&gt;
When the condition depends on user input or runtime values&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For loop&lt;br&gt;
A for loop is used when you know how many times the loop should run.&lt;br&gt;
When to use for loop:&lt;br&gt;
When the number of iterations is fixed or known&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;do-while loop&lt;br&gt;
A do-while loop in Java is a loop that executes the code at least once, even if the condition is false.&lt;br&gt;
the condition is checked after the loop body runs.&lt;br&gt;
Example-while loop:&lt;br&gt;
public class LoopingStatement {&lt;/p&gt;

&lt;p&gt;public static void main(String[] args) {&lt;br&gt;
    int i=1;&lt;br&gt;
    while(i&amp;lt;=5)&lt;br&gt;
    {&lt;br&gt;
        System.out.println(i);&lt;br&gt;
        i++;&lt;br&gt;
    }&lt;/p&gt;

&lt;p&gt;}&lt;br&gt;
}&lt;br&gt;
Example-for loop:&lt;br&gt;
public class LoopingStatement {&lt;/p&gt;

&lt;p&gt;public static void main(String[] args) {&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for(int i=1; i&amp;lt;=10; i++) 
{
    if(i%2 == 0)
    {
        System.out.println("even numbers :"+ i);
    }
    else
    {
        System.out.println("odd numbers :"+ i); 
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;br&gt;
}&lt;br&gt;
Example-do-while:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Switch case</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Sat, 07 Feb 2026 09:44:19 +0000</pubDate>
      <link>https://dev.to/karthick_m22/switch-case-22f</link>
      <guid>https://dev.to/karthick_m22/switch-case-22f</guid>
      <description>&lt;ul&gt;
&lt;li&gt;A switch case is a control statement that lets you run different blocks of code based on the value of a variable or expression.&lt;/li&gt;
&lt;li&gt;It’s often cleaner and easier to read than writing many if–else statements.&lt;/li&gt;
&lt;li&gt;It allows only the local variable.&lt;/li&gt;
&lt;li&gt;We use break; to stop the execution after the expected result is executed. Intead of break; we can use -&amp;gt;.
ex:
case 1:
System.out.println("Monday");
break;
instead of this we can use below(from java 12th version)
case 1 -&amp;gt; System.out.println("Monday");&lt;/li&gt;
&lt;li&gt;In the primitive data types it allows only int, byte, short, char.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It allows non-primitive data type String(from java 8 released) .&lt;br&gt;
Example-1:&lt;br&gt;
public static void main(String[] args) {&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int day=5;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;//primitive data type - it allows only int, byte, short, char&lt;br&gt;
//non-primitive data type - it allows String&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;switch (day) //Expression
{
case 1:
    System.out.println("Monday");
break;
case 2:
    System.out.println("Tuesday");
    break;
case 3:
    System.out.println("Wednesday");
    break;
default:
    System.out.println("Holiday");
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;br&gt;
}&lt;br&gt;
Example-2:&lt;br&gt;
package moduleTwo;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;public class SwitchCaseTest {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static void main(String[] args) {

    String say="hello";

    switch (say) //Expression
    {
    case "hi":
        System.out.println("hey");
    break;
    case "hello":
        System.out.println("Good morning");
        break;
    default:
        System.out.println("unknown");
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
Example-3:&lt;br&gt;
public class SwitchCaseTest {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static void main(String[] args) {
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;String grade="B";&lt;br&gt;
    switch (grade) //Expression&lt;br&gt;
    {&lt;br&gt;
    case "A","B" -&amp;gt;System.out.println("pass");&lt;br&gt;
    case "C" -&amp;gt; System.out.println("fail");&lt;br&gt;
    default -&amp;gt; System.out.println("no result");&lt;br&gt;
    }&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;}
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>beginners</category>
      <category>java</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Decision making statement(if, else if, else)</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Sat, 07 Feb 2026 09:02:59 +0000</pubDate>
      <link>https://dev.to/karthick_m22/decision-making-statementif-else-if-else-1pf7</link>
      <guid>https://dev.to/karthick_m22/decision-making-statementif-else-if-else-1pf7</guid>
      <description>&lt;p&gt;*decision making statement is take a decision based on given condition.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
package moduleTwo;&lt;/p&gt;

&lt;p&gt;public class Sample {&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static void main(String[] args) {

    int mark = 34;
    if(mark &amp;gt;=90)
    {
        System.out.println("A Grade");
    }

    else if(mark&amp;gt;=80)
    {
        System.out.println("B Grade");
    }
    else if(mark&amp;gt;=50)
    {
        System.out.println("C Grade");
    }
    else
    {
        System.out.println("Fail");
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;Output:&lt;br&gt;
Fail&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Java Variable</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Tue, 03 Feb 2026 19:23:36 +0000</pubDate>
      <link>https://dev.to/karthick_m22/java-variable-1cb8</link>
      <guid>https://dev.to/karthick_m22/java-variable-1cb8</guid>
      <description>&lt;p&gt;*Variable is a container it stores data in memory. Each variable has a name, data type and a value.&lt;br&gt;
*Variable name should start with small letter.&lt;br&gt;
*It is Case-sensitive.&lt;br&gt;
*The type of data that can be stored in a variable is defined by data type.&lt;br&gt;
*It is stored in Stack memory.&lt;br&gt;
Ex :&lt;br&gt;
int value = 27;&lt;br&gt;
int -&amp;gt; data type&lt;br&gt;
value -&amp;gt; variable name&lt;br&gt;
= -&amp;gt; assignment operator&lt;br&gt;
27 -&amp;gt; data&lt;br&gt;
; -&amp;gt; end of statement&lt;/p&gt;

&lt;p&gt;// Declaration and Assignment in different line:&lt;br&gt;
int count; // Declaration&lt;br&gt;
count = 20; // Assignment of a value&lt;/p&gt;

&lt;p&gt;//Declared and initialized in one line:&lt;br&gt;
int value = 20;&lt;br&gt;
String class = "Java";&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Day-4 Data Types</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Fri, 30 Jan 2026 14:22:53 +0000</pubDate>
      <link>https://dev.to/karthick_m22/day-4-data-types-lh</link>
      <guid>https://dev.to/karthick_m22/day-4-data-types-lh</guid>
      <description>&lt;p&gt;&lt;strong&gt;Data types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Data types is type of information or data stored in a variable (like Numbers, character, true/false etc..)&lt;br&gt;
2 types of data types&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Primitive data type&lt;/li&gt;
&lt;li&gt;Non - primitive data type&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;1. Primitive date type&lt;/strong&gt;&lt;br&gt;
Byte - 1 byte&lt;br&gt;
Sort - 2 byte&lt;br&gt;
Int - 4 byte&lt;br&gt;
Long - 8 byte&lt;br&gt;
Float - 2 byte&lt;br&gt;
Double. - 4 byte&lt;br&gt;
Char. - 1 byte&lt;br&gt;
Boolean - 1 bit&lt;/p&gt;

&lt;p&gt;1 bit = 8 bit&lt;/p&gt;

&lt;p&gt;Range of primitive data types&lt;/p&gt;

&lt;p&gt;Byte - 1 byte - 8 bit&lt;br&gt;
Sort - 2 byte - 16 bit&lt;br&gt;
Int - 4 byte - 32 bit&lt;br&gt;
Long - 8 byte _ 64 bit&lt;br&gt;
Float. - 2 byte - 16 bit&lt;br&gt;
Double. - 4 byte -16 bit&lt;br&gt;
Char. - 1 byte - 8 bit&lt;br&gt;
Boolean - 1 bit- 1 bit&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;2. Non - primitive Data types *&lt;/em&gt;&lt;br&gt;
String&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;String values will be inside the " " (double quotation)&lt;/li&gt;
&lt;li&gt;String can store any text.
Eg.- 
Names → "John"
Sentences → "I love programming"
Numbers as text → "12345"
Symbols → "@#$%"
Addresses → "New York, USA"&lt;/li&gt;
&lt;li&gt;String stores the multiple char " ".&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Day-3 details of Class and Object</title>
      <dc:creator>Karthick M</dc:creator>
      <pubDate>Fri, 30 Jan 2026 14:05:52 +0000</pubDate>
      <link>https://dev.to/karthick_m22/details-of-class-and-object-31o7</link>
      <guid>https://dev.to/karthick_m22/details-of-class-and-object-31o7</guid>
      <description>&lt;p&gt;&lt;strong&gt;Class&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;*Class is a java keyword&lt;br&gt;
*Class is a template&lt;br&gt;
*Class is logical entity&lt;/p&gt;

&lt;p&gt;*First letter of the class name should be in capital(camel notation)&lt;br&gt;
Eg. SalaryAccount&lt;/p&gt;

&lt;p&gt;*also in class name we can use the following special chars $, &amp;amp;, _.&lt;/p&gt;

&lt;p&gt;*use the numerical values only in the intermediate and last of the class name&lt;/p&gt;

&lt;p&gt;Syntax:&lt;br&gt;
Class BankDetails&lt;br&gt;
{&lt;br&gt;
Code&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OBJECT&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;*Object is combination of State and Behaviour&lt;br&gt;
*Object is physical entity&lt;br&gt;
*Object is used to store State and behaviour&lt;br&gt;
Syntax&lt;br&gt;
BankDetails ref = new BankDetails();&lt;/p&gt;

&lt;p&gt;*new is a keyword of java&lt;br&gt;
*If we create a object, jvm will allocate a memory in heap memory at runtime&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>java</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
