<?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: Chithra Priya</title>
    <description>The latest articles on DEV Community by Chithra Priya (@chithra_priya).</description>
    <link>https://dev.to/chithra_priya</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%2F3104691%2F9fee4f80-f8d7-477c-81c7-bf3123ca45b8.png</url>
      <title>DEV Community: Chithra Priya</title>
      <link>https://dev.to/chithra_priya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chithra_priya"/>
    <language>en</language>
    <item>
      <title>Collections in Javascript</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Wed, 27 Aug 2025 06:32:23 +0000</pubDate>
      <link>https://dev.to/chithra_priya/collections-in-javascript-1ajc</link>
      <guid>https://dev.to/chithra_priya/collections-in-javascript-1ajc</guid>
      <description></description>
      <category>object</category>
      <category>framework</category>
      <category>interface</category>
      <category>elements</category>
    </item>
    <item>
      <title>Java OOPS Concept..</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Tue, 05 Aug 2025 09:44:18 +0000</pubDate>
      <link>https://dev.to/chithra_priya/java-oops-concept-11ec</link>
      <guid>https://dev.to/chithra_priya/java-oops-concept-11ec</guid>
      <description>&lt;h2&gt;
  
  
  1.Class:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What&lt;/strong&gt; - Class is a blueprint or template for creating a objects. It defines variables and methods. &lt;br&gt;
&lt;strong&gt;Why&lt;/strong&gt; - To organize code, reuse functionality, and implement OOPS concepts.&lt;br&gt;
&lt;strong&gt;How&lt;/strong&gt; - Define a class using the class keyword. Add variables and methods. Create objects of the class using the new keyword.&lt;br&gt;
&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  2.Variable:
&lt;/h2&gt;

&lt;p&gt;Variable is a container, used to store the value (or) data.&lt;br&gt;
&lt;strong&gt;What is Local Variable&lt;/strong&gt; - Local variables declared inside the method. It only accessable within that method.&lt;br&gt;
&lt;strong&gt;What is Global variable&lt;/strong&gt; - Global variables are declared outside the method. It can be access outside the method.&lt;/p&gt;

</description>
      <category>java</category>
      <category>oop</category>
      <category>softwareengineering</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Class in java</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Tue, 05 Aug 2025 09:37:08 +0000</pubDate>
      <link>https://dev.to/chithra_priya/class-in-java-ii9</link>
      <guid>https://dev.to/chithra_priya/class-in-java-ii9</guid>
      <description>&lt;h2&gt;
  
  
  Class:
&lt;/h2&gt;

&lt;p&gt;A class is a group of objects which have common properties. It is a blueprint or template from which object is created. It is logical entity. Class is a user defined blueprint or prototype from which objects are created.&lt;br&gt;
&lt;strong&gt;In java class contains:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fields&lt;/li&gt;
&lt;li&gt;Methods&lt;/li&gt;
&lt;li&gt;Constructor&lt;/li&gt;
&lt;li&gt;Blocks&lt;/li&gt;
&lt;li&gt;Nested class&lt;/li&gt;
&lt;li&gt;Interface&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Syntax to declare a class:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



</description>
      <category>java</category>
      <category>oop</category>
      <category>snippet</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Constructor, this keyword, Packages...</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Tue, 22 Jul 2025 00:18:54 +0000</pubDate>
      <link>https://dev.to/chithra_priya/constructor-this-keyword-packages-22mb</link>
      <guid>https://dev.to/chithra_priya/constructor-this-keyword-packages-22mb</guid>
      <description>&lt;h2&gt;
  
  
  Difference between zero argument  constructor and default constructor in Java?
&lt;/h2&gt;

&lt;p&gt;Default Constructor:**&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A constructor that is automatically provided by the Java compiler when no constructor is defined in the class.&lt;/li&gt;
&lt;li&gt;It has no parameters (zero-arguments) and no body code.&lt;/li&gt;
&lt;li&gt;It initializes instance variables to default values (e.g., 0 for int, null for objects).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class MyClass {

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Zero-Argument Constructor:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A constructor that is explicitly written by the programmer with no parameters.&lt;/li&gt;
&lt;li&gt;It has no parameters, it is not considered a default constructor, because it's written by developer.
&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 MyClass {
    MyClass() {
        System.out.println("zero-argument constructor");
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  This:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;This is a keyword.&lt;/li&gt;
&lt;li&gt;This refers to current object.It is used to define global variable.&lt;/li&gt;
&lt;li&gt;This keyword is used to differentiate between local and global variable.&lt;/li&gt;
&lt;li&gt;When local variable names are the same as instance variables, this is used to differentiate.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class Student {
    String name;

    public Student(String name) {
        this.name = name; 
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Package:
&lt;/h2&gt;

&lt;p&gt;In java package means folder.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Use Packages in Java&lt;/strong&gt;?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Grouping similar file.&lt;/li&gt;
&lt;li&gt;Avoid naming conflict.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Create package:&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;package com.indianBank;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Compile package:&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;javac -d . classname.java&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run package:&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;java filename&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Constructor in Java:</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Thu, 17 Jul 2025 07:38:35 +0000</pubDate>
      <link>https://dev.to/chithra_priya/constructor-in-java-3p63</link>
      <guid>https://dev.to/chithra_priya/constructor-in-java-3p63</guid>
      <description>&lt;h2&gt;
  
  
  Constructor:
&lt;/h2&gt;

&lt;p&gt;Constructor is method used to initialize object specific values to variables. JVM have default constructor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why use constructor?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each object gets initialized properly when it’s created.&lt;/li&gt;
&lt;li&gt;Helps reduce code repetition.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Characteristics:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Constructor name as same as class name.&lt;/li&gt;
&lt;li&gt;No return type required.&lt;/li&gt;
&lt;li&gt;Automatically called when object is created.&lt;/li&gt;
&lt;li&gt;Initialize object specific values to variable.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Types of Constructor:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;1. Default Constructor:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A constructor with no parameters.&lt;/li&gt;
&lt;li&gt;If you don’t write any constructor, Java provides one by default.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Program for Default Constructor:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Car {
    Car() {
        System.out.println("Car is created");
    }
}

public class Main {
    public static void main(String[] args) {
        Car myCar = new Car(); 
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;Car is created&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Argument Constructor:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Constructor that takes arguments to initialize the object with specific values.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Program for Argument Constructor:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class Market
{
static String marketName = "Nehru";
String prodname;
int price;

public Market(String s, int i)
{
System.out.println("I'm constructor");
prodname = s;
price = i; 
}

public static void main(String[] args)
{
Market prod1 = new Market("abc",100);
Market prod2 = new Market("xyz",1000);
System.out.println(prod1.prodname);
System.out.println(prod2.prodname);
System.out.println(prod2.price);
}
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;I'm constructor&lt;br&gt;
I'm constructor&lt;br&gt;
abc&lt;br&gt;
xyz&lt;br&gt;
1000&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Method Overloading in Java...</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Wed, 16 Jul 2025 12:00:10 +0000</pubDate>
      <link>https://dev.to/chithra_priya/method-overloading-in-java-4dnh</link>
      <guid>https://dev.to/chithra_priya/method-overloading-in-java-4dnh</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Polymorphism is one of the oops pillars in java. It has two types. They are,&lt;br&gt;
&lt;code&gt;1.Compile time polymorphism (or) Method Overloading&lt;br&gt;
2.Run time polymorphism (or) Method Overriding&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;1.Method Overloading:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Method Overloading allows multiple methods with the same name but different number and types of arguments within a class.&lt;/li&gt;
&lt;li&gt;Method Overloading is very important to naming convertion.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class SuperMarket
{
static String shopname = "Kanchi Super Market";
String product_name;
int price;

public static void main(String[] args)
{
SuperMarket product = new SuperMarket();
product.buy(10);
product.buy(5,50);
product.buy(10.5f, 10.3f);
product.buy(100.5d);
}

void buy(int no)
{
System.out.println("buy one args" +"=" +no);
}

void buy(int no1, int no2)
{
System.out.println("buy two args" +"=" +no1+" "+no2);
}

void buy(float no3, float no5)
{
System.out.println("buy two float args" +"=" +no3+" "+no5);
}

void buy(double no4)
{
System.out.println("buy one double args"+"=" +no4);
}

}

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

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;buy one args=10
buy two args=5 50
buy two float args=10.5 10.3
buy one double args=100.5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>java</category>
      <category>method</category>
      <category>programming</category>
      <category>oop</category>
    </item>
    <item>
      <title>Keywords, Methods, Objects, Void, Return type &amp; Variables...</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Tue, 15 Jul 2025 10:48:10 +0000</pubDate>
      <link>https://dev.to/chithra_priya/keywords-methods-objects-void-return-type-variables-4p46</link>
      <guid>https://dev.to/chithra_priya/keywords-methods-objects-void-return-type-variables-4p46</guid>
      <description>&lt;p&gt;=====&amp;gt;&amp;gt; [TBD]&lt;br&gt;
_Method have two types. They are,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Method Overloading&lt;/li&gt;
&lt;li&gt;Method Overriding_&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  Keywords:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Static:&lt;/strong&gt;&lt;br&gt;
Static refers to class specific information.&lt;br&gt;
Class have common for all objects.&lt;br&gt;
only one memory copy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Non-static:&lt;/strong&gt;&lt;br&gt;
Non-static refers to object specific information.&lt;br&gt;
object have specific information.&lt;br&gt;
Multiple memory copy.&lt;/p&gt;
&lt;h2&gt;
  
  
  Method:
&lt;/h2&gt;

&lt;p&gt;Method is a set of instruction with a name to perform specific task.&lt;br&gt;
Method has return type.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;String buy()
{
System.out.println("buy method");
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Object:
&lt;/h2&gt;

&lt;p&gt;Object is a combination of state and behaviour.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax for creating a object:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Home person = new Home();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;new - is a keyword creating a new space to new object.&lt;br&gt;
Home - is a class name&lt;br&gt;
person - represents object name&lt;/p&gt;
&lt;h2&gt;
  
  
  Void:
&lt;/h2&gt;

&lt;p&gt;Void is a return type of the method.&lt;br&gt;
Not return anything and doing something inside the method.&lt;/p&gt;
&lt;h2&gt;
  
  
  Return type:
&lt;/h2&gt;

&lt;p&gt;Return is a keyword is used to return any value from a method.&lt;br&gt;
Return value will be sent back to method calling statement.&lt;br&gt;
In return value void should not be used because return datatype should be used for storing value.&lt;br&gt;
Return statement should be the last statement in a method definition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;String buy()
{
System.out.println("buy method");
return "thank you"
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Variable:
&lt;/h2&gt;

&lt;p&gt;Variable is a container, that used to store the value (or) data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Local and Global variables:
&lt;/h2&gt;

&lt;p&gt;Local variables are used inside the method.&lt;br&gt;
Global variables are used outside the method.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Datatypes and Variables in JAVA...</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Mon, 14 Jul 2025 07:40:26 +0000</pubDate>
      <link>https://dev.to/chithra_priya/day-3java-datatypes-and-variables-20b</link>
      <guid>https://dev.to/chithra_priya/day-3java-datatypes-and-variables-20b</guid>
      <description>&lt;h2&gt;
  
  
  Datatypes:
&lt;/h2&gt;

&lt;p&gt;Datatypes are used to store the date. Java has two types of datatypes. They are,&lt;br&gt;
&lt;strong&gt;1. Primitive datatype&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;2. Non-primitive datatype&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Primitive Datatype:
&lt;/h2&gt;

&lt;p&gt;Primitive datatypes are fixed. They are, &lt;em&gt;Numeric&lt;/em&gt; and &lt;em&gt;Non-Numeric&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Numeric type:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;1.Byte:&lt;/strong&gt; 1-byte signed two's complement integer.&lt;br&gt;
&lt;strong&gt;2.Short:&lt;/strong&gt; 2-bytes signed two's complement integer.&lt;br&gt;
&lt;strong&gt;3.int:&lt;/strong&gt; 4-bytes signed two's complement integer. This is the default integer type.&lt;br&gt;
&lt;strong&gt;4.long:&lt;/strong&gt; 8-bytes signed two's complement integer. Used for very large integer values.&lt;br&gt;
&lt;strong&gt;5.float:&lt;/strong&gt; 4-bytes floating-point number. Used for decimal values.&lt;br&gt;
&lt;strong&gt;6.double:&lt;/strong&gt; 8-bytes floating-point number.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Non-Numeric type:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;1.char:&lt;/strong&gt; 2-bytes Unicode character. Used to store single characters.&lt;br&gt;
&lt;strong&gt;2.boolean:&lt;/strong&gt; Represents a logical value, only be true or false.&lt;/p&gt;

&lt;h2&gt;
  
  
  Non-Primitive Datatypes:
&lt;/h2&gt;

&lt;p&gt;Non-Primitive datatypes are non fixed. They are,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.strings&lt;br&gt;
2.objects&lt;br&gt;
3.arrays&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb7hhjzu3ijbj16u1clq4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb7hhjzu3ijbj16u1clq4.webp" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Variables:
&lt;/h2&gt;

&lt;p&gt;Datatypes are used in variables. There are two types of variables. They are,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Inside the method&lt;br&gt;
2.Outside the method&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to declare, initialize and Reassign a variable?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int number; (variable declaration)
number=50; (Initialize)
number=60; (Reassign)

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

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>I learned today in Java: Class, Object and Basics of OOP concept</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Fri, 11 Jul 2025 17:14:43 +0000</pubDate>
      <link>https://dev.to/chithra_priya/class-and-object-3geb</link>
      <guid>https://dev.to/chithra_priya/class-and-object-3geb</guid>
      <description>&lt;p&gt;What is Class?&lt;br&gt;
Class is a template or blue print.it's group of activity or container.&lt;/p&gt;

&lt;p&gt;What is an Object?&lt;br&gt;
Object is a combination of state and behaviour.&lt;/p&gt;

&lt;p&gt;What is an OOP?&lt;br&gt;
OOP stands for Object-Oriented Programming Language.&lt;/p&gt;

&lt;p&gt;Procedural programming is about writing procedures or methods that perform operations on the data, while object-oriented programming is about creating objects that contain both data and methods.&lt;/p&gt;

&lt;p&gt;Advantages of OOP:&lt;br&gt;
OOP is faster and easier to execute&lt;br&gt;
OOP provides a clear structure for the programs&lt;br&gt;
OOP helps to keep the Java code DRY "Don't Repeat Yourself", and makes the code easier to maintain, modify and debug&lt;br&gt;
OOP makes it possible to create full reusable applications with less code and shorter development time. &lt;/p&gt;

&lt;p&gt;OOPS Pillars:&lt;/p&gt;

&lt;p&gt;Encapsulation:&lt;br&gt;
The meaning of Encapsulation, is to make sure that "sensitive" data is hidden from users. To achieve this, you must:&lt;/p&gt;

&lt;p&gt;declare class variables/attributes as private&lt;br&gt;
provide public get and set methods to access and update the value of a private variable.&lt;/p&gt;

&lt;p&gt;Inheritance:&lt;br&gt;
An object of one class acting as an object of another class.&lt;/p&gt;

&lt;p&gt;Polymorphism:&lt;br&gt;
Polymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance.&lt;/p&gt;

&lt;p&gt;Abstractions:&lt;br&gt;
Showing only necessary data and hiding unwanted data.&lt;/p&gt;

</description>
      <category>java</category>
      <category>oop</category>
      <category>class</category>
      <category>object</category>
    </item>
    <item>
      <title>Introduction to JAVA:</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Thu, 10 Jul 2025 10:03:07 +0000</pubDate>
      <link>https://dev.to/chithra_priya/introduction-to-java-4kpa</link>
      <guid>https://dev.to/chithra_priya/introduction-to-java-4kpa</guid>
      <description>&lt;h2&gt;
  
  
  What is Java?
&lt;/h2&gt;

&lt;p&gt;Java is a high-level, object oriented programming language. It was first introduced in Sun Micro system in 1991. Now owned by oracle corporation. It was designed to be platform independent it means java can run on any device and any operating system that has a Java Virtual Machine(JVM) installed. &lt;strong&gt;"Write once, Run anywhere"&lt;/strong&gt; Approach. Where code written in java can be compiled into bytecode that executed on any system with help of JVM. &lt;/p&gt;

&lt;h2&gt;
  
  
  Features of Java:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Platform Independence:&lt;/strong&gt;     When we write Java code, it is first compiled by the compiler and then converted into bytecode.&lt;br&gt;
    This byte code can run on any platform which has JVM installed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Object Oriented:&lt;/strong&gt; Java follows the object oriented programming&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Simple and Familiar:&lt;/strong&gt; Java syntax is inspired by C and C++, making it familiar to many programmers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Robust and Secure:&lt;/strong&gt; Java has feature like memory management, strong type checking, and exception handling to ensure robust and secure program.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Multi-threading:&lt;/strong&gt; Java supports Multi-threading, allowing multiple tasks to be executed concurrently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Dynamic:&lt;/strong&gt; Java supports dynamic memory allocation and garbage collection, simplifying memory management.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. High performance:&lt;/strong&gt; While java programs might not be as fast as compiled languages like C++. Java performance has improved overtime, thanks to JVM optimizations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. Distributed:&lt;/strong&gt; Java has libraries for creating distributed applications allowing components to communicate over a network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9. Portable:&lt;/strong&gt; Java &lt;strong&gt;"Write once, Run anywhere"&lt;/strong&gt; capablity makes it highly portable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10. Rich Standard library:&lt;/strong&gt; Java provides a vast standard library for various tasks, from data structures to network communication.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture of Java:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fobdn65nw47s5zkchof11.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fobdn65nw47s5zkchof11.png" alt=" " width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Compiler:&lt;/strong&gt; Compiler can convert java code to byte code (.java file to .class file) with help of Java development kit(JDK). It translate entire code of the program.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interpreter:&lt;/strong&gt; In Java, an interpreter is a program that executes Java bytecode instructions line by line. It's a key component of the Java Virtual Machine (JVM).&lt;/p&gt;

&lt;h2&gt;
  
  
  Java code Execution process:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fculdjuzrt01mhkwrc34f.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fculdjuzrt01mhkwrc34f.jpeg" alt=" " width="751" height="563"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>backend</category>
      <category>programming</category>
    </item>
    <item>
      <title>JavaScript String Methods()..</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Fri, 04 Jul 2025 03:26:48 +0000</pubDate>
      <link>https://dev.to/chithra_priya/javascript-string-methods-3n91</link>
      <guid>https://dev.to/chithra_priya/javascript-string-methods-3n91</guid>
      <description>&lt;p&gt;Today, my mentor taught string methods in JavaScript, and then gave us some tasks to practice.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;

&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;Document&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
    &amp;lt;!-- Desc: string to lowercase --&amp;gt;

    &amp;lt;!-- &amp;lt;h1&amp;gt;String Lowercase()&amp;lt;/h1&amp;gt;
    &amp;lt;p&amp;gt;JavaScript is the world's most popular programming language&amp;lt;/p&amp;gt;
    &amp;lt;button onClick="Lowercase()"&amp;gt;Change text&amp;lt;/button&amp;gt;
    &amp;lt;div id="Change"&amp;gt;&amp;lt;/div&amp;gt;

    &amp;lt;script&amp;gt;
        function Lowercase() {
            let text = "JavaScript is the world's most popular programming language";
            document.getElementById("Change").innerText = text.toLocaleLowerCase();
        }
    &amp;lt;/script&amp;gt; --&amp;gt;

    &amp;lt;!-- Desc: String concat --&amp;gt;

    &amp;lt;!-- &amp;lt;h1&amp;gt;String Concat()&amp;lt;/h1&amp;gt;
    &amp;lt;p&amp;gt;show my name&amp;lt;/p&amp;gt;
    &amp;lt;div id="concat"&amp;gt;&amp;lt;/div&amp;gt;

    &amp;lt;script&amp;gt;
        let text1 = "Chithra";
        let text2 = "Priya";
        let text3 = text1.concat(" ", text2);
        document.getElementById("concat").innerHTML = text3;
    &amp;lt;/script&amp;gt;


 &amp;lt;!-- Desc: Strinng Trim  --&amp;gt;

    &amp;lt;!-- &amp;lt;h1&amp;gt;String trim()&amp;lt;/h1&amp;gt;
&amp;lt;p id="trim"&amp;gt;&amp;lt;/p&amp;gt;

&amp;lt;script&amp;gt;
let text1 = "     Hello World!     ";
let text2 = text1.trimStart();
document.getElementById("trim").innerHTML =
"Length text1 = " + text1.length + "&amp;lt;br&amp;gt;Length text2 = " + text2.length;
&amp;lt;/script&amp;gt; --&amp;gt;

    &amp;lt;!-- Desc: Trim start --&amp;gt;

    &amp;lt;!-- &amp;lt;h1&amp;gt;The trimStart()&amp;lt;/h1&amp;gt;
    &amp;lt;p id="demo"&amp;gt;&amp;lt;/p&amp;gt;

    &amp;lt;script&amp;gt;
        let text1 = "     chithra priya!     ";
        let text2 = text1.trimStart();
        document.getElementById("demo").innerHTML =
            "Length text1 = " + text1.length + "&amp;lt;br&amp;gt;Length text2 = " + text2.length;
    &amp;lt;/script&amp;gt; --&amp;gt;

&amp;lt;!-- Desc: Trim end --&amp;gt;

&amp;lt;!-- &amp;lt;h1&amp;gt;The trimEnd()&amp;lt;/h1&amp;gt;
&amp;lt;p id="demo"&amp;gt;&amp;lt;/p&amp;gt;

&amp;lt;script&amp;gt;
let text1 = "     Chithrapriya     ";
let text2 = text1.trimEnd();
document.getElementById("demo").innerHTML =
"Length text1 = " + text1.length + "&amp;lt;br&amp;gt;Length text2 = " + text2.length;
&amp;lt;/script&amp;gt; --&amp;gt;

&amp;lt;!-- Desc: String padStart --&amp;gt;

&amp;lt;!-- &amp;lt;h1&amp;gt;The padStart()&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;It pads the string with another string (multiple times) until it reaches a given length.&amp;lt;/p&amp;gt;
&amp;lt;p id="demo"&amp;gt;&amp;lt;/p&amp;gt;

&amp;lt;script&amp;gt;
let text = "5";
text = text.padStart(10,"1");
document.getElementById("demo").innerHTML = text;
&amp;lt;/script&amp;gt; --&amp;gt;

Desc: String padEnd

&amp;lt;h1&amp;gt;The padEnd()&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;It pads the string with another string (multiple times) until it reaches a given length.&amp;lt;/p&amp;gt;
&amp;lt;p id="demo"&amp;gt;&amp;lt;/p&amp;gt;

&amp;lt;script&amp;gt;
let text = "5";
text = text.padEnd(10,"0");
document.getElementById("demo").innerHTML = text;
&amp;lt;/script&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>methods</category>
    </item>
    <item>
      <title>Create weather App using API..</title>
      <dc:creator>Chithra Priya</dc:creator>
      <pubDate>Wed, 02 Jul 2025 00:18:17 +0000</pubDate>
      <link>https://dev.to/chithra_priya/create-weather-app-using-api-529c</link>
      <guid>https://dev.to/chithra_priya/create-weather-app-using-api-529c</guid>
      <description>&lt;p&gt;Today, My mentor teach me how to create a weather-checking app using the OpenWeatherMap URL through an API. Then, we learned how fetch, async/await, and axios work in it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;API: Connecting two different domains.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Fetch():
&lt;/h2&gt;

&lt;p&gt;fetch() is a built-in JavaScript function used to make HTTP requests (like GET, POST) from the browser to a server or an API.&lt;br&gt;
fetch() is used to get or send data from/to APIs.&lt;br&gt;
It returns a Promise&lt;br&gt;
You need to manually convert the response using .json()&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch(url)
              .then((res) =&amp;gt; {
                     return res.json();
                }).then((data) =&amp;gt; {
                     console.log(data.main.feels_like);
                     result.innerHTML = `Temperature : ${data.main.temp}`
                 }).catch((error) =&amp;gt; {
                     console.log(error);

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  async &amp;amp; await:
&lt;/h2&gt;

&lt;p&gt;async and await are modern keywords used in JavaScript to handle promises more easily and clearly — instead of chaining .then().&lt;br&gt;
They make asynchronous code look like synchronous code, which is easier to read and understand.&lt;br&gt;
You put async before a function to make it return a Promise.&lt;br&gt;
Inside this function, you can use await.&lt;br&gt;
await can only be used inside an async function.&lt;br&gt;
It waits for the promise to resolve before moving to the next line.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;async function getData() {
  let response = await fetch('https://api.example.com/data');
  let data = await response.json();
  console.log(data);
}
getData();

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

&lt;/div&gt;



&lt;p&gt;async   Makes a function return a promise&lt;br&gt;
await   Pauses the async function until the promise resolves&lt;/p&gt;
&lt;h2&gt;
  
  
  Axois:
&lt;/h2&gt;

&lt;p&gt;A promise-based HTTP client that's simpler and more powerful than fetch.&lt;br&gt;
It works like fetch, but with more features and a simpler syntax.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import axios from 'axios';

axios.get('https://api.example.com/weather')
  .then(response =&amp;gt; console.log(response.data))
  .catch(error =&amp;gt; console.log("Error:", error));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Automatically parses JSON.&lt;br&gt;
Axios is a powerful alternative to fetch.&lt;br&gt;
It simplifies HTTP requests.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
