<?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>Forem: Ranjith Ranjith</title>
    <description>The latest articles on Forem by Ranjith Ranjith (@ranjith_ranjith_6851c8e0a).</description>
    <link>https://forem.com/ranjith_ranjith_6851c8e0a</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%2F3435517%2F47db389e-1426-4475-b372-52dd50461bf3.png</url>
      <title>Forem: Ranjith Ranjith</title>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ranjith_ranjith_6851c8e0a"/>
    <language>en</language>
    <item>
      <title>Java-8 (The Biggest Transformation)</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Wed, 17 Dec 2025 13:14:10 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/java-8-the-biggest-transformation-4e66</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/java-8-the-biggest-transformation-4e66</guid>
      <description>&lt;p&gt;DEV &lt;br&gt;
Java 8 is the update that completely changed how Java developers write code. It took Java from “old-school, verbose, class-heavy” to clean, modern, expressive.&lt;/p&gt;

&lt;p&gt;Today we starts with LAMBDA EXPRESSION(Part-1)&lt;/p&gt;

&lt;p&gt;In Java, writing even a small piece of logic used to be lengthy because we had to create an anonymous class and override its method every single time. Java 8 solved this problem by introducing lambda expressions — a short, clean, functional‑style way to write code.&lt;/p&gt;

&lt;p&gt;Basic Syntax&lt;br&gt;
(parameters)−&amp;gt;body&lt;/p&gt;

&lt;p&gt;Variations&lt;br&gt;
No parameter- ()-&amp;gt;System.out.println("HI");&lt;br&gt;
One parameter-x-&amp;gt;x*x;&lt;br&gt;
Multiple parameter- (x,y)-&amp;gt;x*y;&lt;br&gt;
// with blocks with parameter return is must&lt;br&gt;
With Blocks- x-&amp;gt;{int y=x+1; return y;};&lt;br&gt;
// with blocks with void return is no need&lt;br&gt;
with Blocks with void- ()-&amp;gt;{ system.out.println("HI"); }&lt;/p&gt;

&lt;p&gt;Before 8:&lt;/p&gt;

&lt;p&gt;new Thread(new Runnable() {&lt;br&gt;
    &lt;a class="mentioned-user" href="https://dev.to/override"&gt;@override&lt;/a&gt;&lt;br&gt;
    public void run() {&lt;br&gt;
        System.out.println("Running");&lt;br&gt;
    }&lt;br&gt;
}).start();&lt;br&gt;
After 8:&lt;/p&gt;

&lt;p&gt;new Thread(() -&amp;gt; System.out.println("Running")).start();&lt;/p&gt;

&lt;p&gt;Capturing variables&lt;/p&gt;

&lt;p&gt;Rule: Variable must be “effectively final”&lt;/p&gt;

&lt;p&gt;int processedCount = 0;&lt;/p&gt;

&lt;p&gt;orders.forEach(order -&amp;gt; {&lt;br&gt;
    processedCount++;   // ❌ ERROR&lt;br&gt;
});&lt;br&gt;
Local variable processedCount defined in an enclosing scope must be final or effectively final&lt;br&gt;
How to fix,&lt;/p&gt;

&lt;p&gt;Fix 1: Use AtomicInteger&lt;/p&gt;

&lt;p&gt;AtomicInteger processedCount = new AtomicInteger(0);&lt;/p&gt;

&lt;p&gt;orders.forEach(order -&amp;gt; {&lt;br&gt;
    processedCount.incrementAndGet();  // ✔ Works&lt;br&gt;
});&lt;br&gt;
Atomic Integer is an object.&lt;/p&gt;

&lt;p&gt;Java allows change the variable&lt;/p&gt;

&lt;p&gt;Because Object reference is final but we change the values.&lt;/p&gt;

&lt;p&gt;AtomicInteger sum = new AtomicInteger(0);&lt;/p&gt;

&lt;p&gt;list.forEach(n -&amp;gt; sum.addAndGet(n));&lt;/p&gt;

&lt;p&gt;System.out.println(sum.get());&lt;/p&gt;

&lt;p&gt;Fix 2: Use array wrapper&lt;/p&gt;

&lt;p&gt;int[] processedCount = {0};&lt;/p&gt;

&lt;p&gt;orders.forEach(order -&amp;gt; {&lt;br&gt;
    processedCount[0]++;   // ✔ Works&lt;br&gt;
});&lt;br&gt;
Any reference is final we change their values so we can do&lt;/p&gt;

&lt;p&gt;Fix 3: Use Stream count&lt;/p&gt;

&lt;p&gt;long processedCount = orders.stream().count();&lt;/p&gt;

&lt;p&gt;Hope this helped you understand Java 8 better.&lt;br&gt;
In the next blog, we dive into another Java 8 Topic—don’t miss it!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TODAY TRY ONE STRING PROGRAM IN REVERSE WORD</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Tue, 09 Dec 2025 05:16:27 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/today-try-one-string-program-in-reverse-word-443g</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/today-try-one-string-program-in-reverse-word-443g</guid>
      <description>&lt;p&gt;Today I tried this string program and I got the correct output by myself. I feel very happy."&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    String name="ranjith kumar";
    char[] ch=  name.toCharArray();
    int start=0;
    for(int i=0;i&amp;lt;ch.length;i++) {
        if(i==ch.length-1||ch[i]==' ') {
            int end;
            if(i==ch.length-1) {
                end=i;
            }
            else {
                end=i-1;
            }
            while(start&amp;lt;end) {
                char temp=ch[start];
                ch[start]=ch[end];
                ch[end]=temp;
                start++;
                end--;
            }
            start=i+1;  
        }   
    }
    System.out.println(new String(ch)); 

      for(int j=0;j&amp;lt;ch.length;j++) {

           int st=0;

           int en=ch.length-1;

           while(st&amp;lt;en) {
                char temp=ch[st];
                ch[st]=ch[en];
                ch[en]=temp;
                st++;
                en--;
            }
            start=j+1;  
        }   
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;-count by character-&lt;/p&gt;

&lt;p&gt;public class CharactorByCount {&lt;/p&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;            String s="ranjith kumar";
        char[] ch=s.toCharArray();

        for(int i=0;i&amp;lt;ch.length;i++) {
          char  letter =ch[i];
          int count=1;

          if(letter!=' ') {
               for(int j=i+1;j&amp;lt;ch.length;j++) {     
                   if(letter==ch[j]) {
                    count++;
                    ch[j]=' ';
                   }
               }
           if(count&amp;gt;=1) {
             System.out.println(letter+"=="+count);
           }
          }
        }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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

</description>
    </item>
    <item>
      <title>08/12/2025</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Mon, 08 Dec 2025 14:29:14 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/08122025-k4l</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/08122025-k4l</guid>
      <description>&lt;p&gt;Today my day started well. &lt;br&gt;
I woke up early,&lt;br&gt;
 took a bath, brushed my teeth, prayed to all the gods, ate, and left for the institute.&lt;br&gt;
         On the way, there was a temple festival, and it was really nice. &lt;br&gt;
    It was a happy moment.&lt;/p&gt;

&lt;p&gt;Today I also started studying.&lt;br&gt;
      I had a doubt in strings for a long time, and finally I learned that program today. &lt;br&gt;
      I’m really happy. Sathesh bro helped me a lot.&lt;/p&gt;

&lt;p&gt;After finishing everything, I returned to room.&lt;br&gt;
Overall, my day went really well. Thank you.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>SOFT SQEUE INTERVIEW experience</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Sat, 06 Dec 2025 13:59:13 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/soft-sqeue-interview-2epf</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/soft-sqeue-interview-2epf</guid>
      <description>&lt;p&gt;I attended an interview for a Software Development role. It was a really good company, and they even provided food for the candidates. I actually went there for a Java Developer position, but when I reached the venue, they informed me that the Java interviews were not being conducted that day.&lt;/p&gt;

&lt;p&gt;Since I had already come all the way, I decided to make use of the opportunity and try the UI/UX interview instead. I attended the first round and, to my surprise, I got selected. In the second round, they asked me to create an application design using the Figma tool. I didn’t know anything about Figma before, but I still tried my best. Through this task, I gained some experience and finally understood what Figma is and how it works.&lt;/p&gt;

&lt;p&gt;The company also provided lunch for all candidates, which was very helpful. Overall, it was a good learning experience for me.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>NET AXIS IT SOLUCTION experience</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Sat, 06 Dec 2025 13:54:01 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/net-axis-it-soluction-1l1i</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/net-axis-it-soluction-1l1i</guid>
      <description>&lt;p&gt;“Today I attended the interview at NetAxis. It went well. They asked all the questions in Tamil. They asked only basic questions like HTML, CSS, JavaScript, API, and OOPS. I think knowing these basics is enough to get selected.”&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Minuscule Technologies, Chennai experience</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Sat, 06 Dec 2025 13:43:00 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/minuscule-technologies-chennai-3c3b</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/minuscule-technologies-chennai-3c3b</guid>
      <description>&lt;p&gt;The interview went really well. The watchman was very respectful and polite. The staff also spoke kindly and treated me well. Overall, it felt like a very good and professional company. The questions were also very good. If I practice a little more, I can easily get selected in this company next time.&lt;/p&gt;

&lt;p&gt;These are the questions they asked me, and my answers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;They asked for the multiples of prime numbers between 1 and 11.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;They asked me to print a diamond pattern.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;They asked me to write a simple login validation program.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I explained all these questions during the interview.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>BASIC HR QUESTION AND ANSWER EXAMPLE :</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Sat, 06 Dec 2025 13:34:28 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/basic-hr-question-and-answer-example--485l</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/basic-hr-question-and-answer-example--485l</guid>
      <description>&lt;p&gt;Why do you want to move from sales to IT?&lt;br&gt;
            I earned 40,000 salary in GRT and learned a lot in sales. &lt;br&gt;
             Every day was a new experience, and I worked there for 4 years.&lt;br&gt;
             But I am a Physics graduate, and I feel proud to say that I am a Software Developer.&lt;br&gt;&lt;br&gt;
              than saying I work in GRT.&lt;br&gt;&lt;br&gt;
              That’s why I want to start my career in the IT field.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>postgresql (dml &amp;ddl)</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Mon, 13 Oct 2025 11:05:55 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/postgresql-dml-ddl-39ml</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/postgresql-dml-ddl-39ml</guid>
      <description>&lt;p&gt;DATA : information.&lt;/p&gt;

&lt;p&gt;Database : is a place where we can store out data.&lt;/p&gt;

&lt;p&gt;Types of database:&lt;br&gt;
types:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Rdbms: relational database managnment systom.

&lt;ul&gt;
&lt;li&gt;Rdbms : tables format  (rows and columns).
rdb type:
example =   mysql , oracle , microsoft server sql. &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2) Ordbms = object relational database managnment systom.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;      * postgresql  (only open sources)
      * graph database
      * mapping database
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;first of all what is sql ?&lt;br&gt;
          sql : structured query language       // (neccessary details)&lt;br&gt;
psql install : 2 type&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;      i)  cli: comment line interface
      ii)  ui: user interface
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;psql install step by step linux for  (ui)  method&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;       i)    start windows button
       ii)   search for software manager
       iii)  search for postgresql 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;cli method install for linux&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        i)open terminal
        ii)sudo apt update 
        iii) sudo apt install postgresql 

 iv)  check status = (sudo systemctl status postgresql) 

go to the inside 
          v)   -i -u postgres
          vi)   psql

 corrently  inside  a what data base this postgres 
           i) \l        //it will list all tha data base

            ii)\q        // just exit

              iii) create database student;

               iv) \c student;
      sql:

            1) data reterievel language/query language
            2) data manipilation language
                 * inselt,delete,update
            3) data definition language
                 * create,alter,drop,truncate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;drop :  drop tha table&lt;br&gt;
   truncate : remove tha inner all datas&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;            4) data control language
                    grant,revoke
            5) data transaction language
                    commit, rollback 



          (i) : create table student ( sno int, name varchar(30),age int,trainer varchar(20),doj date;

         ii) \dt        // (one database inside ,i need see this how many table )

          iii) inselt into student values ( 1, 'ranjith', 25, 'prithivi', '2025-09-25';

           just check this (select * from student; )


            key point 

         i)   sudo -i -u postgres
         ii)  psql
         iii) \l                            //it will list all tha data base
         iv)  create database student;
         v)   \c student;                    //just check 
         vi)  create table student ( sno int, name varchar(30),age int,trainer varchar(20),doj date;
         vii) \dt  //(one database inside ,i need see this how many table )

         viii) inselt into student values ( 1, 'ranjith', 25, 'prithivi', '2025-09-25';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;I need to create 3 users with different DML, DDL, DQL on newly created clean Database in PostgreSQL.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DML should have SELECT, UPDATE, DELETE
DDL should have CREATE, DROP, ALTER, TRUNCATE, INSERT
DQL should have SELECT
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;all of this in standard scheme public. Important is that user inherit right on newly created tables by DDL user.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;           echeck p(select * from student; )
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;database name=grt&lt;br&gt;
table name = scheme &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;s_no&lt;/th&gt;
&lt;th&gt;group_code&lt;/th&gt;
&lt;th&gt;name&lt;/th&gt;
&lt;th&gt;date&lt;/th&gt;
&lt;th&gt;mobile_number&lt;/th&gt;
&lt;th&gt;age&lt;/th&gt;
&lt;th&gt;amount&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2527&lt;/td&gt;
&lt;td&gt;Athavi&lt;/td&gt;
&lt;td&gt;2025-08-11&lt;/td&gt;
&lt;td&gt;7358956288&lt;/td&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;td&gt;2000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2528&lt;/td&gt;
&lt;td&gt;Karthik&lt;/td&gt;
&lt;td&gt;2025-08-12&lt;/td&gt;
&lt;td&gt;9876543210&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;1500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;2529&lt;/td&gt;
&lt;td&gt;Divya&lt;/td&gt;
&lt;td&gt;2025-08-13&lt;/td&gt;
&lt;td&gt;9123456789&lt;/td&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;td&gt;20002&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;2530&lt;/td&gt;
&lt;td&gt;Mani&lt;/td&gt;
&lt;td&gt;2025-08-14&lt;/td&gt;
&lt;td&gt;9988776655&lt;/td&gt;
&lt;td&gt;32&lt;/td&gt;
&lt;td&gt;1000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;2531&lt;/td&gt;
&lt;td&gt;Priya&lt;/td&gt;
&lt;td&gt;2025-08-15&lt;/td&gt;
&lt;td&gt;9234567890&lt;/td&gt;
&lt;td&gt;26&lt;/td&gt;
&lt;td&gt;6000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;2532&lt;/td&gt;
&lt;td&gt;Arun&lt;/td&gt;
&lt;td&gt;2025-08-16&lt;/td&gt;
&lt;td&gt;9345678901&lt;/td&gt;
&lt;td&gt;29&lt;/td&gt;
&lt;td&gt;8000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;2533&lt;/td&gt;
&lt;td&gt;Vijay&lt;/td&gt;
&lt;td&gt;2025-08-17&lt;/td&gt;
&lt;td&gt;9456789012&lt;/td&gt;
&lt;td&gt;31&lt;/td&gt;
&lt;td&gt;7000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;2534&lt;/td&gt;
&lt;td&gt;Sneha&lt;/td&gt;
&lt;td&gt;2025-08-18&lt;/td&gt;
&lt;td&gt;7358956288&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;2000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;2535&lt;/td&gt;
&lt;td&gt;ranjith&lt;/td&gt;
&lt;td&gt;2025-08-19&lt;/td&gt;
&lt;td&gt;6381952919&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;2000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;2536&lt;/td&gt;
&lt;td&gt;abdul&lt;/td&gt;
&lt;td&gt;2525-08-20&lt;/td&gt;
&lt;td&gt;7358952268&lt;/td&gt;
&lt;td&gt;28&lt;/td&gt;
&lt;td&gt;7000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;DDL (Data Definition Language)&lt;/p&gt;

&lt;p&gt;1) create &lt;br&gt;
2) alter&lt;br&gt;
3) drop&lt;br&gt;
4) truncate&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;CREATE&lt;br&gt;
Purpose: To create a new database object (table, view, schema, index).&lt;br&gt;
Syntax (for table):&lt;br&gt;
CREATE TABLE students (s_no INT PRIMARY KEY,name VARCHAR(50),age INT,dob DATE);&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ALTER &lt;br&gt;
Purpose: To modify an existing table (add, drop, or change columns).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CREATE&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Purpose: To create a new database object (table, view, schema, index).&lt;/p&gt;

&lt;p&gt;Syntax (for table)&lt;/p&gt;

&lt;p&gt;CREATE TABLE scheme (&lt;br&gt;
    s_no INT PRIMARY KEY,&lt;br&gt;
    name VARCHAR(50),&lt;br&gt;
    age INT,&lt;br&gt;
    dob DATE&lt;br&gt;
);&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;ALTER&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Purpose: To modify an existing table (add, drop, or change columns).&lt;br&gt;
add a column&lt;br&gt;
        ADD COLUMN mobile_number BIGINT;&lt;br&gt;
Drop a column:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;     ALTER TABLE scheme DROP COLUMN age;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;DROP&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Purpose: To delete a table or other database object permanently.&lt;/p&gt;

&lt;p&gt;Syntax:&lt;/p&gt;

&lt;p&gt;DROP TABLE scheme;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;TRUNCATE&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Purpose: To delete all rows from a tabDML (Data Manipulation Language)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; 1) INSERT
 2) UPDATE
 3) DELETE
 4) SELECT
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;INSERT&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Purpose: Add new rows into a table.&lt;/p&gt;

&lt;p&gt;Syntax:     INSERT INTO table_name &lt;br&gt;
         VALUES (value1, value2, ...)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;UPDATE&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Purpose: Modify existing data in a table.&lt;br&gt;
Syntax:         UPDATE scheme SET age = 25  WHERE s_no = 1;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;DELETE&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Purpose: Remove data rows from a table.&lt;/p&gt;

&lt;p&gt;Syntax:     delete from scheme &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select
purpose:  The SELECT statement is used to retrieve data from a database table&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;syxtax :&lt;br&gt;
           select * from scheme;&lt;/p&gt;

&lt;p&gt;DDL (Data Definition Language)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DDL is the data definition language and is concerned with the SQL statements that modify how the data is stored. It includes CREATE, ALTER, and DROP.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;DML replication&lt;br&gt;
PGD doesn't replicate the DML statement. It replicates the changes caused by the DML statement. For example, an UPDATE that changed two rows replicates two changes, whereas a DELETE that didn't remove any rows doesn't replicate anything. &lt;/p&gt;

&lt;p&gt;reffer : &lt;br&gt;
 &lt;a href="https://www.enterprisedb.com/docs/pgd/latest/reference/appusage/dml-ddl/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/pgd/latest/reference/appusage/dml-ddl/&lt;/a&gt;&lt;br&gt;
 &lt;a href="https://www.geeksforgeeks.org/sql-ddl-dql-dml-dcl-tcl-commands/" rel="noopener noreferrer"&gt;https://www.geeksforgeeks.org/sql-ddl-dql-dml-dcl-tcl-commands/&lt;/a&gt;&lt;br&gt;
 &lt;a href="https://stackoverflow.com/questions/74284045/create-dml-ddl-dql-user-in-postgresql" rel="noopener noreferrer"&gt;https://stackoverflow.com/questions/74284045/create-dml-ddl-dql-user-in-postgresql&lt;/a&gt;&lt;br&gt;
chatgpt :&lt;/p&gt;

</description>
    </item>
    <item>
      <title>RUN TIME EXCEPTION</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Thu, 02 Oct 2025 12:10:04 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/run-time-exception-59md</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/run-time-exception-59md</guid>
      <description>&lt;p&gt;1) ArithmeticException: It is thrown when an exceptional condition has occurred in an arithmetic operation.&lt;br&gt;
ex public class Example1 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        int a = 10, b = 0;&lt;br&gt;
        System.out.println(a / b); // divide by zero&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;2) ArrayIndexOutOfBoundsException: It is thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array.&lt;br&gt;
ex &lt;br&gt;
public class Example2 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        int arr[] = {1, 2, 3};&lt;br&gt;
        System.out.println(arr[5]); &lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;3) ClassNotFoundException: This Exception is raised when we try to access a class whose definition is not found&lt;br&gt;
ex &lt;br&gt;
public class Example3 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        try {&lt;br&gt;
            Class.forName("MyClass"); &lt;br&gt;
        } catch (ClassNotFoundException e) {&lt;br&gt;
            e.printStackTrace();&lt;br&gt;
        }&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;4) FileNotFoundException: This Exception is raised when a file is not accessible or does not open.&lt;br&gt;
ex&lt;br&gt;
import java.io.File;&lt;br&gt;
import java.io.FileReader;&lt;/p&gt;

&lt;p&gt;public class Example4 {&lt;br&gt;
    public static void main(String[] args) throws Exception {&lt;br&gt;
        FileReader fr = new FileReader(new File("abc.txt")); &lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;5) IOException: It is thrown when an input-output operation failed or interrupted&lt;br&gt;
ex &lt;br&gt;
import java.io.BufferedReader;&lt;br&gt;
import java.io.InputStreamReader;&lt;/p&gt;

&lt;p&gt;public class Example5 {&lt;br&gt;
    public static void main(String[] args) throws Exception {&lt;br&gt;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));&lt;br&gt;
        br.close();&lt;br&gt;
        br.readLine(); // Already closed =&amp;gt; IOException&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;6) InterruptedException: It is thrown when a thread is waiting, sleeping, or doing some processing, and it is interrupted.&lt;br&gt;
ex &lt;br&gt;
public class Example6 extends Thread {&lt;br&gt;
    public void run() {&lt;br&gt;
        try {&lt;br&gt;
            Thread.sleep(2000); // wait&lt;br&gt;
            System.out.println("Thread finished");&lt;br&gt;
        } catch (InterruptedException e) {&lt;br&gt;
            System.out.println("Thread interrupted");&lt;br&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 static void main(String[] args) {
    Example6 t = new Example6();
    t.start();
    t.interrupt(); 
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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

&lt;p&gt;7) NoSuchFieldException: It is thrown when a class does not contain the field (or variable) specified&lt;br&gt;
ex &lt;br&gt;
import java.lang.reflect.Field;&lt;/p&gt;

&lt;p&gt;class Student {&lt;br&gt;
    int id;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;public class Example7 {&lt;br&gt;
    public static void main(String[] args) throws Exception {&lt;br&gt;
        Field f = Student.class.getDeclaredField("name"); &lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;8) NoSuchMethodException: It is thrown when accessing a method that is not found.&lt;br&gt;
ex&lt;br&gt;
import java.lang.reflect.Method;&lt;/p&gt;

&lt;p&gt;class Student {&lt;br&gt;
    public void display() {}&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;public class Example8 {&lt;br&gt;
    public static void main(String[] args) throws Exception {&lt;br&gt;
        Method m = Student.class.getDeclaredMethod("show"); &lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;9) NullPointerException: This exception is raised when referring to the members of a null object. Null represents nothing&lt;/p&gt;

&lt;p&gt;public class Example9 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        String s = null;&lt;br&gt;
        System.out.println(s.length()); // null object access&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;10) NumberFormatException: This exception is raised when a method could not convert a string into a numeric format.&lt;br&gt;
ex &lt;br&gt;
public class Example10 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        String s = "abc";&lt;br&gt;
        int num = Integer.parseInt(s); // &lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;11) RuntimeException: This represents an exception that occurs during runtime.&lt;br&gt;
ex&lt;br&gt;
public class Example11 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        throw new RuntimeException("Runtime exception example"); &lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;12) StringIndexOutOfBoundsException: It is thrown by String class methods to indicate that an index is either negative or greater than the size of the string&lt;br&gt;
ex&lt;br&gt;
public class Example12 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        String s = "java";&lt;br&gt;
        System.out.println(s.charAt(10)); &lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;13) IllegalArgumentException : This exception will throw the error or error statement when the method receives an argument which is not accurately fit to the given relation or condition. It comes under the unchecked exception. &lt;br&gt;
ex&lt;br&gt;
public class Example13 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        Thread t = new Thread();&lt;br&gt;
        t.setPriority(20); &lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;14) IllegalStateException : This exception will throw an error or error message when the method is not accessed for the particular operation in the application. It comes under the unchecked exception.&lt;br&gt;
ex&lt;br&gt;
import java.util.*;&lt;/p&gt;

&lt;p&gt;public class Example14 {&lt;br&gt;
    public static void main(String[] args) {&lt;br&gt;
        List list = new ArrayList&amp;lt;&amp;gt;();&lt;br&gt;
        Iterator it = list.iterator();&lt;br&gt;
        it.remove(); &lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Tobe discuss : 6,7,8,13,14,&lt;/p&gt;

&lt;p&gt;reffer:&lt;br&gt;
&lt;a href="https://www.geeksforgeeks.org/java/types-of-exception-in-java-with-examples/" rel="noopener noreferrer"&gt;https://www.geeksforgeeks.org/java/types-of-exception-in-java-with-examples/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>java</category>
      <category>programming</category>
    </item>
    <item>
      <title>EXCEPTION</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Sat, 27 Sep 2025 06:30:58 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/exception-1b7n</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/exception-1b7n</guid>
      <description>&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;what is exception? &lt;br&gt;
            an exception is an abnormal event that occurs during the execution of a program which disrupts the normal flow of instructions. In simpler words, it’s a problem or error that happens while your program is running. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;why use ? &lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   We use exceptions in Java to handle errors and abnormal situations gracefully, instead of letting the program crash. Think of exceptions as a safety net for your program.     
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;when use exception?&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; ou use exceptions whenever there’s a chance that the user might enter data in the wrong format, which would normally crash your program.
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Error &lt;/p&gt;

&lt;p&gt;1) System-level serious problem&lt;br&gt;&lt;br&gt;
  2) Cannot handle&lt;br&gt;&lt;br&gt;
  3) JVM, memory, hardware&lt;br&gt;&lt;br&gt;
  4) Examples   OutOfMemoryError, StackOverflowError&lt;br&gt;&lt;br&gt;
  5) Usually program crash  &lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt; exception
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;1) abnormal event&lt;br&gt;
  2) Can handle using try-catch&lt;br&gt;
  3) Programmer mistake, unexpected input&lt;br&gt;
  4) ArithmeticException, NullPointerException&lt;br&gt;
  5) Can continue if handled&lt;/p&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Throw, and Try...Catch...Finally  &lt;/p&gt;

&lt;p&gt;The try statement defines a code block to run (to try).&lt;/p&gt;

&lt;p&gt;The catch statement defines a code block to handle any error.&lt;/p&gt;

&lt;p&gt;The finally statement defines a code block to run regardless of the result.&lt;/p&gt;

&lt;p&gt;The throw statement defines a custom error.&lt;/p&gt;

&lt;p&gt;Reffer;&lt;br&gt;
   &lt;a href="https://www.w3schools.com/js/js_errors.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/js/js_errors.asp&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>String buffer</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Sat, 27 Sep 2025 06:00:36 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/string-buffer-17a</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/string-buffer-17a</guid>
      <description>&lt;p&gt;StringBuffer&lt;/p&gt;

&lt;p&gt;a StringBuffer is a mutable sequence of characters.&lt;/p&gt;

&lt;p&gt;Mutable → we can modify the content.&lt;/p&gt;

&lt;p&gt;Thread-Safe → synchronized, so multiple threads can use it safely.&lt;/p&gt;

&lt;p&gt;Slower compared to StringBuilder because of synchronization.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Call Conversation Example for useing for tamil medium</title>
      <dc:creator>Ranjith Ranjith</dc:creator>
      <pubDate>Fri, 26 Sep 2025 13:29:49 +0000</pubDate>
      <link>https://forem.com/ranjith_ranjith_6851c8e0a/call-conversation-example-for-useing-for-tamil-medium-5hi0</link>
      <guid>https://forem.com/ranjith_ranjith_6851c8e0a/call-conversation-example-for-useing-for-tamil-medium-5hi0</guid>
      <description>&lt;p&gt;You: Hello, am I speaking with [HR’s name]?&lt;/p&gt;

&lt;p&gt;HR: Yes, this is [HR’s name], please tell me.&lt;/p&gt;

&lt;p&gt;You: My name is [Your Name]. I got your contact details from Naukri. I just wanted to check if there are any fresher job openings in your company.&lt;/p&gt;

&lt;p&gt;HR: Okay, which position are you looking for?&lt;/p&gt;

&lt;p&gt;You: I am a 2021 passed-out graduate in [Your Degree/Stream]. I am looking for opportunities in [your field, e.g., software development / IT support / web development].&lt;/p&gt;

&lt;p&gt;HR: Alright. Can you share your resume with me?&lt;/p&gt;

&lt;p&gt;You: Sure, I’ll send you my updated resume to your email. Could you please confirm the email ID?&lt;/p&gt;

&lt;p&gt;HR: Yes, it’s [HR’s email].&lt;/p&gt;

&lt;p&gt;You: Thank you so much. I’ll share my resume right away. Looking forward to hearing from you.&lt;/p&gt;

&lt;p&gt;HR: Okay, we’ll get back to you if there’s a suitable opening.&lt;/p&gt;

&lt;p&gt;You: Thank you for your time. Have a nice day!&lt;/p&gt;

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