<?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: Udaya M</title>
    <description>The latest articles on DEV Community by Udaya M (@udayamanivannan).</description>
    <link>https://dev.to/udayamanivannan</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%2F3145504%2F94f59b8e-a0de-4d84-9592-2039fc6c11fb.png</url>
      <title>DEV Community: Udaya M</title>
      <link>https://dev.to/udayamanivannan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/udayamanivannan"/>
    <language>en</language>
    <item>
      <title>Java program</title>
      <dc:creator>Udaya M</dc:creator>
      <pubDate>Thu, 21 Aug 2025 08:39:04 +0000</pubDate>
      <link>https://dev.to/udayamanivannan/java-program-9kb</link>
      <guid>https://dev.to/udayamanivannan/java-program-9kb</guid>
      <description>&lt;p&gt;&lt;strong&gt;Program 1: Print 1 1 1 1 1&lt;/strong&gt;&lt;br&gt;
public class Program1 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        for (int i = 1; i &amp;lt;= 5; i++) {&lt;br&gt;
            System.out.print("1 ");&lt;br&gt;
        }&lt;br&gt;
    }&lt;br&gt;
}&lt;br&gt;
&lt;strong&gt;Program 2: Print 1 2 3 4 5&lt;/strong&gt;&lt;br&gt;
public class Program2 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        for (int i = 1; i &amp;lt;= 5; i++) {&lt;br&gt;
            System.out.print(i + " ");&lt;br&gt;
        }&lt;br&gt;
    }&lt;br&gt;
}&lt;br&gt;
&lt;strong&gt;program 3:Print 1 3 5 7 9&lt;/strong&gt;&lt;br&gt;
public class Program3 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        for (int i = 1; i &amp;lt;= 9; i += 2) {&lt;br&gt;
            System.out.print(i + " ");&lt;br&gt;
        }&lt;br&gt;
    }&lt;br&gt;
}&lt;br&gt;
&lt;strong&gt;Program 4: Print 3 6 9 12 15&lt;/strong&gt;&lt;br&gt;
public class Program4 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        for (int i = 1; i &amp;lt;= 5; i++) {&lt;br&gt;
            System.out.print(3 * i + " ");&lt;br&gt;
        }&lt;br&gt;
    }&lt;br&gt;
}&lt;br&gt;
&lt;strong&gt;Program 5: Multiples of 3 and 5 (first 10 numbers)&lt;/strong&gt;&lt;br&gt;
public class Program5 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        int count = 0;&lt;br&gt;
        int num = 1;&lt;br&gt;
        while (count &amp;lt; 10) {&lt;br&gt;
            if (num % 3 == 0 &amp;amp;&amp;amp; num % 5 == 0) {&lt;br&gt;
                System.out.print(num + " ");&lt;br&gt;
                count++;&lt;br&gt;
            }&lt;br&gt;
            num++;&lt;br&gt;
        }&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Constructor in Java:</title>
      <dc:creator>Udaya M</dc:creator>
      <pubDate>Thu, 17 Jul 2025 07:37:39 +0000</pubDate>
      <link>https://dev.to/udayamanivannan/constructor-in-java-1f2</link>
      <guid>https://dev.to/udayamanivannan/constructor-in-java-1f2</guid>
      <description>&lt;h2&gt;
  
  
  Constructor:
&lt;/h2&gt;

&lt;p&gt;Constructor is a special method used to initialize objects. It is called automatically When a object of a class is created.&lt;/p&gt;

&lt;h2&gt;
  
  
  Characteristics:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Constructor name must be same as class name&lt;/li&gt;
&lt;li&gt;It has no return type not even void&lt;/li&gt;
&lt;li&gt;It is automatically invoked when the object is created.&lt;/li&gt;
&lt;li&gt;Can be overloaded i.e multiple constructors in one class with different parameters.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Types of constructors:
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;           Two Types of Constructors 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  1.Default Constructor
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     A Constructor with no parameters.
     Provided automatically by the constructor if no constructor is written.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Program For Defult:
&lt;/h2&gt;


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

  public static void main(String[] args) {
    Vehicle  v = new Vehicle();  // Constructor is called
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;br&gt;
    car is created.&lt;/p&gt;

&lt;h2&gt;
  
  
  Parameterised Constructor:
&lt;/h2&gt;

&lt;p&gt;Constructor that accepts arguments to initialize the object with custom values.&lt;/p&gt;

&lt;h2&gt;
  
  
  Program for Parametersized:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Student {
  String name;
  int age;
  Student(String n, int a) {
    name = n;
    age = a;
  }
void display() {
    System.out.println(name + " " + age);
  }

  public static void main(String[] args) {
    Student s1 = new Student("Ram", 20);
    s1.display();
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;Ram 20&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Introduction to React:</title>
      <dc:creator>Udaya M</dc:creator>
      <pubDate>Fri, 13 Jun 2025 06:46:32 +0000</pubDate>
      <link>https://dev.to/udayamanivannan/introduction-to-react-3526</link>
      <guid>https://dev.to/udayamanivannan/introduction-to-react-3526</guid>
      <description>&lt;p&gt;Introduction to React: The Beginner's Guide&lt;br&gt;
Welcome to the exciting world of React.js! Whether you’re a seasoned developer exploring new frameworks or a beginner stepping into the world of web development, React offers a robust and intuitive way to build dynamic user interfaces. This blog introduces React and explains why it has become one of the most popular libraries for web development.&lt;/p&gt;

&lt;p&gt;What is React.js?&lt;br&gt;
React.js, or simply React, is a JavaScript library developed by Facebook for building fast and interactive user interfaces. It is widely used for developing single-page applications (SPAs), mobile apps (with React Native), and even complex enterprise applications.&lt;/p&gt;

&lt;p&gt;Key Features of React:&lt;br&gt;
Declarative: React makes it easy to create interactive UIs. Developers simply declare what they want, and React efficiently updates the necessary changes.&lt;/p&gt;

&lt;p&gt;Component-Based: React encourages splitting the UI into small, reusable pieces called components.&lt;/p&gt;

&lt;p&gt;Virtual DOM: By updating only what’s necessary in the DOM, React ensures high performance.&lt;/p&gt;

&lt;p&gt;Unidirectional Data Flow: Data flows in one direction, making the application more predictable and easier to debug.&lt;br&gt;
Why Learn React?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;High Demand in the Job Market&lt;br&gt;
React developers are highly sought after, with countless companies relying on React for their front-end needs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reusability and Scalability&lt;br&gt;
React’s component-based architecture allows developers to reuse code, reducing redundancy and improving scalability.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Active Community&lt;br&gt;
With millions of developers using React, you’ll find extensive documentation, tutorials, and community support.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ecosystem&lt;br&gt;
React integrates seamlessly with tools like Redux, Next.js, and more, making it versatile for various development needs.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;How React Works&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Components&lt;br&gt;
In React, the UI is made up of small, independent pieces called components. Each component represents a part of the UI and can be reused multiple times.&lt;br&gt;
Example:&lt;br&gt;
function Welcome() {&lt;br&gt;
return &lt;/p&gt;
&lt;h1&gt;Welcome to React!&lt;/h1&gt;;
}&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;JSX&lt;br&gt;
React uses JSX, a syntax extension for JavaScript that allows you to write HTML-like code inside JavaScript.&lt;br&gt;
Example:&lt;br&gt;
const element = &lt;/p&gt;
&lt;h1&gt;Hello, JSX!&lt;/h1&gt;;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Virtual DOM&lt;br&gt;
Instead of updating the entire web page, React creates a lightweight copy of the DOM (Virtual DOM) to determine the minimal updates needed for efficiency.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

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