<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cathrine Peterraj on Medium]]></title>
        <description><![CDATA[Stories by Cathrine Peterraj on Medium]]></description>
        <link>https://medium.com/@cathrine.peterraj?source=rss-1df279b57d57------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Cathrine Peterraj on Medium</title>
            <link>https://medium.com/@cathrine.peterraj?source=rss-1df279b57d57------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:22:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cathrine.peterraj/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Life Experience and My Thoughts]]></title>
            <link>https://medium.com/@cathrine.peterraj/life-experience-and-my-thoughts-7fa75d155daf?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fa75d155daf</guid>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 14:10:37 GMT</pubDate>
            <atom:updated>2026-08-10T14:10:37.404Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*u6pKBiVym6BFY6ULUxTUgg.jpeg" /></figure><h3>My Chennai Journey — Lessons I Learned from Everyday Life</h3><p>I came to Chennai in search of job opportunities. Before coming here, I thought people were more or less the same everywhere. But after spending these days in Chennai, I realized that my thinking was not completely right.</p><p>This was the first time in my life that I came to a city and managed many things individually. Because of that, this experience became very special to me. I learned many new things not only about Chennai, but also about myself.</p><h3>Incident 1 — Getting Lost Taught Me Confidence</h3><p>When I started going for interviews, I had to travel alone by bus. Sometimes, I took the wrong bus or went to the wrong area.</p><p>Initially, I was worried about getting lost. But after experiencing it several times, I slowly became confident.</p><p>I started thinking:</p><p><strong>“It’s okay. If I go to the wrong place, I can find another bus and come back.”</strong></p><p>Because of this, I became mentally prepared whenever I went for an interview. I started leaving early so that even if I took the wrong bus or got confused about the route, I would still have enough time.</p><p>This taught me that getting lost is not always a bad thing. Sometimes, it teaches us how to find our way.</p><h3>Incident 2 — The Wrong Bus and Three Kind People</h3><p>One day, I went for an interview. Unfortunately, the interview did not go well, and I felt sad while returning home.</p><p>While coming back by bus, I realized that I had taken the wrong bus again.</p><p>This time, instead of getting worried, I thought:</p><p><strong>“It’s okay. I can get down at the next area, take another bus, and reach home.”</strong></p><p>While I was travelling, a mother who had recently delivered a baby got onto the bus with her baby. When I saw her, I immediately got up and offered my seat to her.</p><p>After giving my seat to her, something unexpected happened.</p><p>Three different people offered their seats to <strong>me</strong>.</p><p>They were happily telling me:</p><p><strong>“Come, sit in my place.”</strong></p><p>I was genuinely surprised. I had not expected anyone to do that for me.</p><p>At that moment, I realized something very beautiful:</p><p><strong>When we help someone who needs our help, kindness can come back to us in unexpected ways.</strong></p><p>That moment made me very happy. Even though I had just failed an interview and was already feeling sad, those people reminded me that there are still many good and kind people in this world.</p><h3>Incident 3 — Trusting People</h3><p>One day, I went to church with my family in Chennai.</p><p>In villages, we often have the habit of keeping something like a Bottle, towel, or other personal belongings to reserve a place in buses, ration shops, churches, and other places.</p><p>My aunt also kept her handbag inside the church to reserve our place. Then she came outside and happily talked with us.</p><p>What surprised me was that nobody touched her handbag.</p><p>This made me think about how we usually worry that if we leave our belongings somewhere, someone might take them even if we are away only for a short time.</p><p>But here, nobody touched it.</p><p>But i Don’t know is this safe because of Church. But in city people only see their works Not other belongings up to now. But i like this Trust. But trusting People should be a good Person.</p><p>I felt happy and proud to see that people still respect other people’s belongings.</p><p>It reminded me that <strong>trust still exists among people</strong>, even though we sometimes hear so many stories that make us afraid to trust others.</p><h3>Incident 4 — My First Experience with the Train</h3><p>Until then, I had mostly been using buses to travel.</p><p>One day, my uncle suggested that I try travelling by train.</p><p>So I started using the local train.</p><p>I realized that travelling by train was much easier for me. There was no road traffic, so I could reach my destination faster. It also became easier for me to travel between places.</p><p>This taught me another simple lesson:</p><p><strong>Sometimes, we keep doing something in the same way simply because we are used to it. Trying a different way can make life much easier.</strong></p><h3>Incident 5 — The ₹5 Ticket and My Conscience</h3><p>Local train travel was also very affordable. For some journeys, the ticket was only ₹5.</p><p>One day, while returning home, I travelled without taking a ticket because I knew there might not be a ticket checker around.</p><p>Nobody stopped me.</p><p>But something inside me kept saying:</p><p><strong>“You should take the ticket.”</strong></p><p>Even though nobody knew and nobody was going to question me, I still felt guilty.</p><p>That experience taught me something important.</p><p><strong>Being honest is not only about what other people can see. It is also about what we feel inside ourselves.</strong></p><p>If we have a choice between doing something correctly and taking advantage of a situation just because nobody will notice, we should choose what is right.</p><p>Because honesty gives us something that money or convenience cannot give us:</p><p><strong>peace of mind.</strong></p><h3>What Chennai Taught Me</h3><p>When I came to Chennai, I came here mainly to search for a job.</p><p>But I feel that I received much more than just interview experiences.</p><p>I learned how to travel alone.</p><p>I learned how to handle getting lost.</p><p>I learned how to stay calm when things don’t go according to plan.</p><p>I experienced kindness from strangers.</p><p>I saw people respecting other people’s belongings.</p><p>I learned to try new ways of travelling.</p><p>And most importantly, I learned that<strong> our character is revealed by the choices we make when nobody is watching.</strong></p><p>I came to Chennai looking for a job opportunity.</p><p>But somewhere along the way, Chennai gave me something more valuable <strong>confidence, experience, memories, and lessons about life.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*khYFAAkB01RY8NsWVta6DA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fa75d155daf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning SQL: A Beginner’s Journey Part — 3….]]></title>
            <link>https://medium.com/@cathrine.peterraj/learning-sql-a-beginners-journey-part-3-192be106b191?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/192be106b191</guid>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 05:31:26 GMT</pubDate>
            <atom:updated>2026-06-24T05:31:26.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q0JxPo9Xmukv9OCL.jpg" /></figure><h4>FUNCTIONS</h4><p>Functions perform calculations or manipulate data.</p><ol><li><strong>COUNT():</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*ye3LOcXt_dPsUbUg0VD0jA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*L0eJf_tEEfTZ8JukELKncg.png" /></figure><p>2. <strong>MAX():</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*ye3LOcXt_dPsUbUg0VD0jA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*xA2ukSk45W6iwsB312Naiw.png" /></figure><p>3. <strong>MIN():</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*ye3LOcXt_dPsUbUg0VD0jA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*Vjj-JloL8eu7uqYKeGLuGQ.png" /></figure><p>4.<strong> AVG():</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*ye3LOcXt_dPsUbUg0VD0jA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*tOmpJekJHdXl8bQEBXiXJQ.png" /></figure><p>5. <strong>SUM():</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*ye3LOcXt_dPsUbUg0VD0jA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*aBQ7Ir8qzp7CSNGQpvdhUA.png" /></figure><p>6. <strong>UPPER():</strong></p><pre>SELECT UPPER(name)<br>FROM Student;</pre><p>Output</p><pre>ALICE<br>BOB<br>CH</pre><p>7. LOWER()</p><pre>SELECT LOWER(name)<br>FROM Student;<br></pre><pre><br>OUTPUT:<br><br>madhu<br>kani<br>mani</pre><p>8. LENGTH()</p><pre>SELECT LENGTH(name)<br>FROM Student;</pre><pre>OUTPUT: <br><br>Alice → 5<br>Bob →3</pre><h4>AND, OR, NOT</h4><ol><li><strong>AND:</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*kvfh5J6ZLIEUqQdO3XMcBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*d3vQjWGFXy_iak0N23nb5A.png" /></figure><p>2.<strong> OR:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*2iVzihMMTe254FMi_BAF_w.png" /></figure><p>3. <strong>NOT:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*TbcQemixR87Jpp-YcdMWsw.png" /></figure><h4>LIMIT</h4><p>Returns limited rows.</p><pre>SELECT *<br>FROM Student<br>LIMIT 2;</pre><pre>Only first two students.</pre><h4>UNION:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*lCmabr6WnPXZPlJYaP-W-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*__42Bu5WznvpREAYDVL0Dw.png" /></figure><h3>GROUP BY</h3><p>Groups similar values.</p><pre>SELECT department,<br>COUNT(*)<br>FROM Student<br>GROUP BY department;</pre><pre>Output:<br><br>Department        count<br>                   <br>CSE                 3<br>ECE                 1<br>IT                  1<br></pre><p><strong>ORDER BY:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*bK39uUtXzT4eafcCqaFxMQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=192be106b191" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning SQL: A Beginner’s Journey Part — 2….]]></title>
            <link>https://medium.com/@cathrine.peterraj/learning-sql-a-beginners-journey-part-2-d2c711e93749?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2c711e93749</guid>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 04:04:53 GMT</pubDate>
            <atom:updated>2026-06-24T04:04:53.411Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hGiBhdV8UuJ8D5tx.png" /></figure><h4>Check Constraint:</h4><p>The Check Constraint is used to check by the condition, it return the values which one is satisfied with the condition.</p><p>for an example,</p><p>lets create a table called as workers, it contains id, first name, last name, hired date and hourly pay. for this now i need to check whether the hourly pay is greater than the 20.00 or not. if it satisfied it return the satisfied values in the DB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Sgd5J9lzvWEWiYl4up7yA.png" /></figure><h4>Default Constraint:</h4><p>lets see the Default Constrain is Mainly used to take a values as default, for an example if i take a amount i need to give a amount particularly, if i set a default value in some stage if any value is not provided it take a values as what we give as a default value.</p><p>for these i create a table name a transaction., in this table it contains id , name and date time. in this scenario, i insert the values as id and amount. but i give a date and time as default so if i give a input only for two field date and time is automatically filled as default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*V0ce5VRFucpGB_Borwr5xA.png" /></figure><h4>Primary Key Constraint in SQL:</h4><p>The primary key is the key to provide unique values for an each and every value. for use of this primary we can’t give same value in others. if we give a same value it show a error as duplicate or not allowed also the null value also not allowed.</p><p><strong>WARNING:</strong> 04814:53:02insert into transaction(transaction_id, amount) values(104,14.19), (104, 56.90)Error Code: 1062. Duplicate entry ‘104’ for key ‘transaction.PRIMARY’0.016 sec.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*hbI2HDIpc92gOxC8DXLnWA.png" /></figure><h4>Auto Increment:</h4><p>The Auto increment is the one of the most needed one in no providing purpose, for an example if i take a same transaction program if i give a auto increment key word. it automatically increase their value. there is only i need to other data.</p><p>In this bello scenario i didn’t give any id . it automatically set for the provided amount or data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*OWS5mVE898OC7ryKX4VVFg.png" /></figure><h4>Foreign Keys:</h4><p>A Foreign Key is a column in one table that refers to the Primary Key of another table. It creates a relationship between the tables and prevents invalid data by ensuring that referenced values already exist.</p><p><strong>Rule:</strong> A <strong>Foreign Key</strong> in the child table always points to a <strong>Primary Key</strong> (or another unique key) in the parent table.</p><p>A <strong>Foreign Key</strong> is a column in one table that refers to the <strong>Primary Key</strong> of another table.</p><p>Think of it like an <strong>ID card</strong>.</p><ul><li><strong>Primary Key</strong> → A person’s own Aadhaar number (unique)</li><li><strong>Foreign Key</strong> → Someone writing that Aadhaar number in another document to identify that person.</li></ul><p>It creates a <strong>relationship</strong> between two tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*Hn5dF945x9E0qa4ehteueg.png" /></figure><h3>Invalid Insert</h3><pre>INSERT INTO Marks<br>VALUES<br>(2,999,&#39;SQL&#39;,90);</pre><p>❌ Error! —<em>INSERT INTO Marks VALUES (2,999,’SQL’,90)Error Code: 1452. Cannot add or update a child row: a foreign key constraint fails (`practicedb`.`marks`, CONSTRAINT `marks_ibfk_1` FOREIGN KEY (`Student_ID`) REFERENCES `student` (`Student_ID`))0.000 sec</em></p><p>Because Student ID <strong>999</strong> does not exist in the Student table.</p><p>This is called <strong>Referential Integrity</strong> — the database ensures that every foreign key value matches an existing primary key.</p><h4>Primary Key vs Foreign Key</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*R1TC-K9rbQGOGelj.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*aR04ckdF4fA44uluYim6vg.png" /></figure><h4>JOINS</h4><p>A JOIN combines rows from two or more tables using a common column.</p><p>Imagine:</p><p>Workers table contains names.</p><p>Transaction table contains amount.</p><p>JOIN combines them.</p><p><strong>Inputs :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*2iVzihMMTe254FMi_BAF_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*ye3LOcXt_dPsUbUg0VD0jA.png" /></figure><ol><li><strong>INNER JOIN:</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*U-6wvhdTeYyrVLKNz3Ov9w.png" /></figure><p><strong>2. LEFT JOIN:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*U-6wvhdTeYyrVLKNz3Ov9w.png" /></figure><p><strong>3. RIGHT JOIN:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*xTfYCmgajZL0SGChp3H--g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2c711e93749" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning SQL: A Beginner’s Journey Part - 1….]]></title>
            <link>https://medium.com/@cathrine.peterraj/learning-sql-a-beginners-journey-part-1-5bcf6ded27fa?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bcf6ded27fa</guid>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 15:10:14 GMT</pubDate>
            <atom:updated>2026-06-16T15:10:14.131Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QQtMQmNy5K118_RC" /></figure><p>First I want to Say why i start Learning SQL Database? . Because In My Interview Journey the Most of the Company asked me , Do you know how to work with MySQL? . SO i Planned to Start Learning. So i Search Lot of Source How to Start this Learning? .</p><p>After that I found a Good Video in You tube and the Sources in google. After that I started My Journey in SQL. I planned to Learn From Scratch to better Understanding and do hands on Experience in SQL.</p><p>So i want to Share what i learning in SQL Journey ,it also helps you guys to know about the Importance and the Learning path and notes from my blog, I hope this blog will help you guys to learn SQL.</p><h4><strong>What is SQL?</strong></h4><p>The SQL is the <strong><em>“Structured Query Language”</em></strong>, is the standard programming language used to communicate with, manage, and manipulate relational databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FVBPkBX0S-ZfRUls1WN2rA.png" /></figure><h4><strong>HOW TO CREATE A TABLE USING QUERY?</strong></h4><p>In query we need use the sql platforms, bellow queries are used in sql query to create a and access the data.</p><blockquote><strong><em>CREATE DB : </em></strong>create database employees;</blockquote><blockquote><strong>USE (for using the DB)</strong> : use employees</blockquote><blockquote><strong>CREATE TABLE : </strong>create table profile(</blockquote><blockquote>email Varchar(45).</blockquote><blockquote>name varchar(50),</blockquote><blockquote>salary varchar(15),</blockquote><blockquote>phone_no varchar(17),</blockquote><blockquote>address varchar(46)</blockquote><blockquote>);</blockquote><blockquote><strong>CREATE A COLUMN: </strong>alter table profile add column age Int(3);</blockquote><blockquote><strong>SELECT DATABASE :</strong> select * from employees;</blockquote><blockquote><strong>SELECT TABLE :</strong> select * from profile;</blockquote><blockquote><strong>MODIFY (Add Column) : </strong>alter table profile add hired_date date;</blockquote><blockquote><strong>(Modify Field) </strong>: alter table profile modify email varchar (500) ;</blockquote><blockquote><strong>(Rename) :</strong> alter table profile rename email to Gmail;</blockquote><blockquote><strong>(Change Location) :</strong> alter table profile modify email varchar(45) after the Name</blockquote><blockquote><strong><em>DROP :</em></strong> drop database employees;</blockquote><blockquote><strong>DROP COLUMN : </strong>alter table profile drop column email;</blockquote><h4><strong>How to Insert details to the before created the Table?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ODJnrc78XN8eU1FvePky4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*JwwOED7KLJFwSi_7_X2kvQ.png" /></figure><p>In these case if i want to insert the data in to the table but if we didn’t send full input it may give a error, so if initialize what we are going to give a necessary input that will show remaining can avoid as a blank box.</p><p>for an example, i give a input as id,name,age,email… but didn’t give salary and hired date, it show error lets see how to insert the word as our need.</p><blockquote><strong>Error: </strong>Insert into employee() values (7,”xavier”,42,”xavi@gmail.com”), (8,”ruby”,67,”ruby@gmail.com”) Error Code: 1136. Column count doesn’t match value count at row 10.000 sec</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*lSjurIonKNKdhpEPS0DWZQ.png" /></figure><h4><strong>How to Select a Table, DB and Each and every fields individually as per required Data?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*ADGOHfrsjHSsg5Zb4pF5vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*4LT6pH9dGfV1QtCFD9NEoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*vXQDhODHAqqrD7gSf9OxTQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*IarD4laz-YWSMS4HowkeNA.png" /></figure><h4><strong>How to Update and Delete the Data?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*ZZe7bndSrY9vji5qGP5YYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*pvNeB4A3k8WSNO7QH5m58A.png" /></figure><h3><strong>TASK 1 :</strong></h3><p>Lets create a new table, and lets insert the current date, time and etc..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VA0djFkCt6DZeKH8HFKfbg.png" /></figure><p>in current date if add Current_date + 1 -&gt; it will take tomorrow date, if i put Current_date — 1 it will take yesterday.</p><h4><strong>Unique Constraint:</strong></h4><p>The unique constraint mean if i give a key word for a particular column , that consider as unique values only accept . if it same words it detect it will show the alert.</p><p>for an example if i create a table as products, the fields are product id, name and price. i will give unique constraint value for name. if same name i enter it may give a alert warning. for these the unique constraint is using.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J21Ruu44BSy12_Pw4yzKzw.png" /></figure><p>if change the name or delete the name it will insert perfectly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xvC1wjv13IxPt2hkLHjUGA.png" /></figure><h4>Not Null Constraint:</h4><p>If i use Not null constraint i can’t give a null value , i need to give some values. for an example lets consider we applied a application for job, they asked and type expected salary mandatory. for in this case we can use the Not Null Constraint.</p><p>Lets Work with this ,</p><blockquote>use practicedb;<br>create table application(<br> id int,<br> name varchar(56),<br> expected_Salary decimal(8,5) Not Null<br>);<br>select * from application;<br>alter table application modify expected_Salary decimal(8,5) Not Null;<br>Insert into application<br>values(1,”kani”, null),(2, “Madhu”, 45.00);<br>select * from application;</blockquote><p><strong>It show a Warning like this,</strong></p><blockquote>015520:27:26Insert into application values(1,”kani”, null)Error Code: 1048. Column ‘expected_Salary’ cannot be null0.000 sec</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*Dx2nhAeOJfvWWae6gb1RAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*drg0rwRFt2TMkgHO.jpg" /></figure><p>Let’s see Next Part…. Bye👋👋👋👋.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bcf6ded27fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maturity…]]></title>
            <link>https://medium.com/@cathrine.peterraj/maturity-4c4c918641e3?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c4c918641e3</guid>
            <category><![CDATA[maturity]]></category>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Tue, 19 May 2026 09:16:15 GMT</pubDate>
            <atom:updated>2026-05-19T09:16:15.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/645/0*aJ1nuc1aoIssOpyz.jpg" /></figure><p>Hi Readers, Today I want to talk about “Maturity.”</p><p>During this holiday season, everyone has a habit of going to their own places or vacations. In the same way, all our relatives came to our house. This year, I observed them closely.</p><p>There is a little boy studying in 4th standard, and his brother is studying in 8th standard. One day, they were ready to return to their home. Unexpectedly, the younger boy cried a lot. Their parents said that he never stopped crying.</p><p>After they reached home, they informed their grandmother that they had arrived safely. Again, he started crying. At that moment, one thought came to my mind they are growing and becoming mature boys. Because from my younger age, I have seen them from their childhood until now. But yesterday, I realized that they are also slowly reaching a stage of maturity.</p><p>In human life, maturity is a token to live happily. For example, during childhood, when babies are born, they start crying, laughing, and recognizing people. That itself is a form of maturity. After a few months or years, they start learning to eat, walk, move, speak, and babble on their own.</p><p>After the age of 5, children may become cranky and cry loudly. This is also considered part of maturity. Many children even cry while going to school. Actually, maturity can be considered as the automatic physical and psychological changes happening in a human body.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*ZloDJwhOu4xOuA5Y.jpg" /></figure><p>After completing school, people start thinking: “What should we do next?” and “How can we get higher studies in the best and most affordable way?” Of course, not all people think in the same way, but many do.</p><p>After completing college, people need to find a job, handle financial responsibilities, take care of their family and friends, manage savings, and much more. So, maturity is what shapes a person into being good or bad, depending on their actions and decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/0*-8II7Koka1bEioIk" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c4c918641e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You Don’t Find Happiness, You Create it!]]></title>
            <link>https://medium.com/@cathrine.peterraj/you-dont-find-happiness-you-create-it-7dafdfe94052?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/7dafdfe94052</guid>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Wed, 29 Apr 2026 05:08:32 GMT</pubDate>
            <atom:updated>2026-04-29T05:08:32.578Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/271/0*05dtKhHgxhH694x9" /></figure><p>Hi guys, today I got a good topic from TED Talks. The topic is <strong>“You Don’t Find Happiness, You Create It!”</strong></p><p>For this, first we need to understand human nature. In this speech, what I understood is let me tell you guys with an example. Let’s imagine, on a ground, the umpire is counting and all are ready to run. In that case, some people are very conscious, but some people, when they say 1…2…3…, they start running. But the rule is, when the umpire shoots, at that time we need to start running, right?</p><p>Let’s move on to our most important and interesting topic. Let’s think you are a higher official like a Manager, CEO, CTO, Team Leader, housewife, or anything. You receive a good word from your co-worker or your family. Also, you receive something bad about yourself, right?</p><p>Now I have a question for you which one do you take first, the good thing or the bad thing?</p><p>Of course, we choose the bad thing. This is not you choosing. In your brain, the bad thing makes a big emotional foundation from your inner thoughts. We forget the good things about us. This is natural and truly happens in our real life. I also realize this situation regularly.</p><p>Happiness is not created naturally. Actually, it is a kind of skill we have. In my friends circle, I see my friends make themselves happy. They care about bad things, but they do not fully focus on them. They know how to prioritize good and bad things. I really admire them. But when I think that I also need to be like them, I can’t. I try to make myself like them, but I can’t. The reason for this is my connection between relationships.</p><p>They also have relationships parents, family, friends, professional relationships, etc. But they have the ability to manage them.</p><p>In that speech, she said that relationships play the main role in happiness. Actually, it is correct. Because when you see a real example… as an Indian, thinking and experience say that relatives sometimes bring you down with jealousy. Who accepts this? I don’t know if this is correct or not because I didn’t experience that. But I hear this from my family, friends, and social media.</p><p>So for that, let’s take it as real. Because no one accuses wrongly, right? Let’s imagine you are the first generation in your family to study and a hardworking person. He works hard, gets a good job, builds a big house as his dream, and takes care of his family well.</p><p>In that situation, he is ready to move out to start his own life. That day, he gets married. In that marriage, the relatives do not think about his hard work. They just say, “How did he come up like this?” That really makes him sad.</p><p>Right, today is his marriage of course, this is a good day for him. But some relatives talk like this in front of him. So he thinks about how he came up like this. On his good day, he needs to think about all the insulted days, sleepless days, and all the hard work he put in.</p><p>So he feels proud from one angle, but other talks bring him down. Because as human nature, we all try to forget past bad things, right? So his happiness goes down, and he makes himself serious.</p><p>If he knows how to prioritize, he should know which one he needs to prioritize. And if he chooses the happy things first, he can create his happiness himself.</p><p>From Harvard University in the United States of America, a research was conducted. They found that:<br> <strong>“Happiness is not a natural habit of humans, it is a skill.”</strong></p><p>This happiness not only gives you a happy face, but also gives you positive energy. For example, in a school or college, if a teacher says a good word to a student like, “You did this exam very well and got a good score, keep it up,” and also asks for appreciation through applause from friends that really gives positive energy, makes you happy, and motivates you. It is a small thing, but it helps him get good scores in all his exams, right?</p><p>The speaker is really a good talker. It really makes the video enjoyable and interesting in the way she talks. I really appreciate her. You guys can also watch her video it really makes me feel good. I will add the video link here. I really request you guys to watch the video.</p><p><strong>LINK: </strong><em>“</em><a href="https://www.youtube.com/watch?v=9DtcSCFwDdw"><strong><em>https://www.youtube.com/watch?v=9DtcSCFwDdw</em></strong></a><em>”</em></p><p>I recently saw a quote about happiness:<br> <strong>“HAPPINESS IS NOT A CHANCE, IT IS A CHOICE.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*o-voTn91GV1e_YLb.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dafdfe94052" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chances Makes you Different]]></title>
            <link>https://medium.com/@cathrine.peterraj/chances-makes-you-different-5607aaa97970?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/5607aaa97970</guid>
            <category><![CDATA[chances-makes-difference]]></category>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Tue, 17 Mar 2026 04:36:34 GMT</pubDate>
            <atom:updated>2026-03-17T04:36:34.553Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/570/0*9sNn_a0OMb7BtLU3.jpg" /></figure><p>In my life, I have an experience of <strong><em>“Chances makes me Different”</em></strong>. When we are studying in school, there we need to take a decision, <strong><em>“Which group need to study?”</em></strong>, but we don’t know about the future or what I’m going to do.</p><p>So if we get good marks, first we move to Bio-Math’s or Computer Science. But as students, we think about taking a course as an easy one. But our family and relatives take a decision as, <strong><em>“What they take for his higher study?” </em></strong>How they are doing depends on the course, not on their interest or ability. As for a good status, we need to take a good course and do well.</p><p>So there is a chance to choose, but in our mindset, <strong><em>“Is this possible? Can we complete this course without any backlogs?” </em></strong>By taking hard work, we successfully complete this course with some score. Here what <strong><em>I want to say is, for relatives and family, we take a course without our knowledge and interest, and we complete the course. There is one chance here to choose what you want to study next, but we take that chance as a force and complete that, so it makes you different from your interest to a forced choice.</em></strong></p><p>Next, when you complete your school, you have another chance to choose what you want to study next. Most of the time, this also becomes like before, forcing them to choose a course and do well. But some people have a lucky family who says, <strong><em>“Choose what you want to do, I will always support you.” </em></strong>But this luck is also rare. If it comes, it also depends on family status and study ability.</p><p>For an example, let’s take rich people. They have money, so they can do anything. If they don’t want to go to college, it is affordable. If they want to take a personal teacher, that’s also possible. Some people come to college just for a degree. For example, if his family is rich, he only needs a degree to put after his name. No need to go to work. But some rich people also want to live a peaceful and independent life.</p><p>But in a middle class family, they need to study hard and need to work, and solve their personal problems. They don’t have many chances. If they want to improve their family status, at least two generations need to study and work hard. There also, we have a chance to choose which course we need to choose, but the choice of work totally depends on the status.</p><p>It really hurts, right? As humans, we all want to live without any regrets and hardships. But in this world, whoever is born will face hardships in a different way. Let’s take middle class families they work hard to improve their status. If we take rich families, they also need to work hard to maintain their status and improve it more. For example, let’s take Ambani. He worked hard from a young age until today because he needs to maintain the same status and improve his profits.</p><p>In this chance, we all take it as an age difference also. When a child is born in this world, he has a chance to choose his name, but in reality, his family tells his name, “Your name is ______.” After his birth, at the age of 5, he has a chance to choose his school, but his family chooses for him. So he misses the chance to choose. After completing school, he has a chance to choose the college and course, but his family situation makes him choose an uninterested course and do it with some regrets. After completing college, he has a chance to choose his career or go to work. But some people want to become entrepreneurs or businessmen. But because of family situations, we need to choose an uninterested path.</p><p>For career choosing, it makes you different because college life ends as a student. When you start to search for a job to start your career, it really makes you change a lot of things. For example, you need to do what others say. If your<strong><em> professor says, “You study AI, this is very important to live your future life,” </em></strong>then<strong><em> your mentor tells you to do a course related to your field.</em></strong> After that, <strong><em>your family and friends will tell, “You do what you want to do.”</em></strong> Then finally, we reach<strong><em> relatives who work in the same domain. They will tell, “You need to learn this and do it at a pro level.”</em></strong></p><p>So finally, that student starts to make a decision. There, he has a chance, but he chooses based on his family situation. I hope everyone experiences this situation. But without any chance to show yourself, it really makes us feel down…..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hg7qQHDUoZJU51ZE.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5607aaa97970" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Depth Learnings:]]></title>
            <link>https://medium.com/@cathrine.peterraj/java-depth-learnings-58f5b5d4235f?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/58f5b5d4235f</guid>
            <category><![CDATA[learning-java]]></category>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Sat, 14 Mar 2026 03:52:42 GMT</pubDate>
            <atom:updated>2026-03-14T03:52:42.009Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/488/0*7TWkONXfP8MYaT_t.jpg" /></figure><h3>Access Modifiers:</h3><ol><li><strong>Private</strong> — In a Class we can access the private data member( int i, String name ) or method can access. But you can’t access in other classes.</li></ol><blockquote>class Demo {<br>private int x = 10;</blockquote><blockquote>public static void main(String[] args) {<br> Demo d = new Demo();<br> System.out.println(d.x);<br> }<br>}</blockquote><p>2. <strong>Public </strong>— The <strong>public access modifier</strong> is specified using the keyword public .When a <strong>data member, method, or class</strong> is declared as public, it can be <strong>accessed from anywhere in the program</strong>.</p><p><strong>Where can public members be accessed?</strong></p><p>Within the same class<br> From another class in the same package<br> From a subclass (inheritance)<br> From a class in a different package</p><p>3.<strong> Protected</strong> — The protected <strong>access modifier</strong> is specified using the keyword protected . When a <strong>data member or method</strong> is declared as protected, it can be accessed:</p><ul><li><strong>Within the same package</strong></li><li><strong>By subclasses (child classes or using “Extents” keyword), even if they are in different packages</strong></li></ul><p>4. <strong>Default</strong> — When <strong>no access modifier</strong> (public, protected, or private) is specified for a <strong>class, method, or data member</strong>, it is said to have the <strong>default access modifier</strong>. This is also called <strong>package-private access. </strong>Members with default access are <strong>accessible only within the same package</strong>.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><h3><strong>Data Types:</strong></h3><p>The Data type is the Type of data can store in the memory . It based on the value contains type. like Character, whole no values, fractional values.</p><h3><strong>Primitive Data Types:</strong></h3><p>A <strong>primitive data type</strong> is a <strong>basic data type</strong> that stores <strong>simple values directly</strong> in memory.</p><h3>Example</h3><pre>int age = 22;<br>double salary = 25000.50;<br>char grade = &#39;A&#39;;<br>boolean isActive = true;</pre><p>They are <strong>not objects</strong><br> They store <strong>actual values</strong><br> They are <strong>faster and memory-efficient</strong></p><p>when we used this,</p><ul><li>You are <strong>calculating</strong></li><li>You are <strong>counting</strong></li><li>You are <strong>looping</strong></li></ul><h3>2. <strong>Wrapper Class:</strong></h3><p>A <strong>Wrapper Class</strong> is a <strong>class that wraps (converts) a primitive data type into an object</strong>.</p><ol><li>Collections work only with objects</li><li>Supports null values</li><li>Provides utility methods</li><li>Used in frameworks (Spring, Hibernate)</li><li>Present in java.lang package</li><li>Allows primitives to behave like objects</li></ol><p>Primitive types are used for simple, fast, and mandatory values, while wrapper classes are used when object features like null, collections, and frameworks are required.</p><h4>Primitive = Plain Value</h4><h4>Wrapper = Value inside a Box (Object)</h4><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58f5b5d4235f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Notes for Annotation…..]]></title>
            <link>https://medium.com/@cathrine.peterraj/notes-for-annotation-21ff996f4265?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/21ff996f4265</guid>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Sat, 14 Mar 2026 03:51:55 GMT</pubDate>
            <atom:updated>2026-03-14T03:51:55.249Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*7HAay2sJKG1pQY7v.png" /></figure><ol><li><strong>Fields:</strong> it is considered to the variables to declared in the Class.</li></ol><blockquote>Ex. public class Student {</blockquote><blockquote>private String name; // field</blockquote><blockquote>private int age;</blockquote><blockquote>}</blockquote><p>Here: // field  name and age are called fields (also known as member variables)</p><p><strong>2. Constructor:</strong> The Constructor is a Special Method, It helps to declare the variable. The Constructor should have a same name in that Class. Also when you create a object it automatically called the Class.</p><blockquote>public class Student {</blockquote><blockquote>private String name;</blockquote><blockquote>private int age;</blockquote><blockquote>// Constructor</blockquote><blockquote>public Student(String n, int a) {</blockquote><blockquote>name = n; age = a;</blockquote><blockquote>}</blockquote><blockquote>public void show() {</blockquote><blockquote>System.out.println(name + “ is “ + age + “ years old.”);</blockquote><blockquote>}</blockquote><blockquote>public static void main(String[] args) {</blockquote><blockquote>Student s = new Student(“Kamisha”, 35); // Constructor is called here s.show();</blockquote><blockquote>} }</blockquote><blockquote>//Kamisha is 35 years old</blockquote><p><strong>3. Injection: </strong>The Injection is Refer to the It provides an object to other class automatically. it is called Injection.</p><p>For an example</p><p>In Service Layer we gives the Repository object. because it automatically make connection between them.</p><p><strong>4. Types of Constructor: The Constructor is Considered to TWO types</strong></p><ol><li>Default Constructor</li></ol><p>The Default constructor doesn’t have any default view automatically. when we create a Constructor that can view physically. but java makes a Constructor automatically.</p><blockquote>public Student() {</blockquote><blockquote>// empty constructor</blockquote><blockquote>}</blockquote><p>2. Parameterized Constructor</p><p>The Parameterized Constructor is can pass the Values as parameter. when you called the method that can call automatically that parameters. In the Parameters are assigned values.</p><blockquote>public Student(String name, int age) {</blockquote><blockquote>this.name = name;</blockquote><blockquote>this.age = age; }</blockquote><p>##AllArgsConstructor:</p><p>The All args constructor are make all fields as Constructor. It is a Lombok Annotation. it make constructor for all field.</p><p>for an Example:</p><blockquote>@AllArgsConstructor</blockquote><blockquote>public class Student {</blockquote><blockquote>private String name;</blockquote><blockquote>private int age;</blockquote><blockquote>private final String dept;</blockquote><blockquote>}</blockquote><p>##RequiredArgsConstructor:</p><p>The RequiredArgsConstructor is make only required can create the constructor in the fields. This constructor is based on the Keyword such as Final. It make this realize that is need to crete constructor.</p><p>For an Example:</p><blockquote>@RequiredArgsConstructor</blockquote><blockquote>public class Student {</blockquote><blockquote>private final String dept;</blockquote><blockquote>private String name;</blockquote><blockquote>private int age;</blockquote><blockquote>}</blockquote><p>//Explanation</p><blockquote>public Student(String dept)</blockquote><blockquote>{ this.dept = dept;</blockquote><blockquote>}</blockquote><p>It ignores name and age because they are not final.</p><p><strong>5. Data Annotation:</strong></p><p>The Data annotation is a Lombok Annotation. it helps to create boiler codes automatically. Such as getter(), setter(),toString(),equals()…</p><p>if i write @Data it may create automatically, for an example:</p><blockquote>public class Student {</blockquote><blockquote>private String name;</blockquote><blockquote>private int age; // getters</blockquote><blockquote>public String getName() {</blockquote><blockquote>return name; }</blockquote><blockquote>public int getAge() {</blockquote><blockquote>return age; } // setters</blockquote><blockquote>public void setName(String name) {</blockquote><blockquote>this.name = name; }</blockquote><blockquote>public void setAge(int age) {</blockquote><blockquote>this.age = age; } // toString()</blockquote><blockquote>public String toString() {</blockquote><blockquote>return “Student{name=” + name + “, age=” + age + “}”;</blockquote><blockquote>}</blockquote><p>in that case , if i not put annotation i need to write manually. that makes code so Long . so if i Put data annotation it make automatically.</p><p><strong>6. Builder Annotation:</strong></p><p>This is also the Lombok annotation it make code easier to read, understand and clean code structure . it make reduce the confusions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21ff996f4265" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Concepts Theory]]></title>
            <link>https://medium.com/@cathrine.peterraj/java-concepts-theory-e067f0adb389?source=rss-1df279b57d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/e067f0adb389</guid>
            <category><![CDATA[learning-of-java-theory]]></category>
            <dc:creator><![CDATA[Cathrine Peterraj]]></dc:creator>
            <pubDate>Thu, 12 Mar 2026 04:40:46 GMT</pubDate>
            <atom:updated>2026-03-12T04:40:46.819Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Import</h3><p>Import is used to tell Java where to find classes that are not in your current file/package. Java has <strong>thousands of ready-made classes</strong> (Scanner, List, ArrayList, Map, Date, etc.). They are stored inside <strong>packages</strong>.</p><h4>Example without import</h4><pre>java.util.Scanner scanner = new java.util.Scanner(System.in);</pre><p>Not Understandable and Look Meaningless.</p><h4>Same example with import</h4><pre>import java.util.Scanner;<br>Scanner scanner = new Scanner(System.in);<br><br><br>//Common imports<br><br>import java.util.Scanner;      // for user input<br>import java.util.List;         // interface for lists<br>import java.util.ArrayList;    // implementation of List<br>import javax.swing.*;          // GUI components</pre><p>Cleaner and readable.</p><h3>— — — — — — — — — — — — — — — — — — — — — — — —</h3><h3>2. Package</h3><p>Package is used to group related classes together and organize your project. In simple words:<br><strong>Package = folder for Java classes</strong></p><p>Purpose:</p><ol><li>Organizes large Projects</li><li>Two classes can have the same name <strong>if they are in different packages</strong>.</li><li>Modifier Accessible</li></ol><p>public — Everywhere</p><p>default — Same package only</p><p>protected — Same package + subclass</p><p>private — Same class only</p><h3>Types of packages</h3><h4>1️. Built-in packages</h4><p>Provided by Java:</p><ul><li>java.lang</li><li>java.util</li><li>java.io</li><li>javax.swing</li></ul><h4>2️ . User-defined packages</h4><p>Created by <strong>you</strong>:</p><pre>package com.cathrine.project;</pre><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><h3>3. Public, Static and Class</h3><h4>Why do we write public class together?</h4><pre>public class Main {<br>    public static void main(String[] args) {<br>    }<br>}</pre><h4>Meaning:</h4><ul><li>public → JVM can access this class</li><li>class → defines a blueprint</li><li>Main → class name (must match file name)</li><li>static → Once Create we can use or shared everywhere</li></ul><p>If the class is public , <strong>file name must be the same</strong><br> Main.java</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><h3>4. Collections</h3><h3>List</h3><p><strong>List allows duplicates and maintains order.</strong></p><p>Example:</p><pre>List&lt;String&gt; names = new ArrayList&lt;&gt;();<br>names.add(&quot;Cathrine&quot;);<br>names.add(&quot;Cathrine&quot;);</pre><p>Order maintained<br>Duplicates allowed</p><h3>Set</h3><p><strong>Set does NOT allow duplicates.</strong></p><p>Example:</p><pre>Set&lt;String&gt; ids = new HashSet&lt;&gt;();<br>ids.add(&quot;A1&quot;);<br>ids.add(&quot;A1&quot;);</pre><p>Only one “A1” stored<br> No duplicates and Order Not guaranteed</p><h3>Map</h3><p><strong>Map stores data in key–value pairs.</strong></p><p>Example:</p><pre>Map&lt;Integer, String&gt; users = new HashMap&lt;&gt;();<br>users.put(1, &quot;Cathrine&quot;);<br>users.put(2, &quot;Praba&quot;);</pre><p>Keys are unique<br>Values can be duplicated &amp; Order Not guaranteed</p><h3>ArrayList</h3><p>Fast access<br>Allows duplicates<br>Maintains order</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e067f0adb389" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>