<?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: vimal krush</title>
    <description>The latest articles on DEV Community by vimal krush (@vimal_krush_349f0675b4ef9).</description>
    <link>https://dev.to/vimal_krush_349f0675b4ef9</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%2F2952929%2F998d3baa-e740-431e-a891-6175424e24d6.jpg</url>
      <title>DEV Community: vimal krush</title>
      <link>https://dev.to/vimal_krush_349f0675b4ef9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vimal_krush_349f0675b4ef9"/>
    <language>en</language>
    <item>
      <title>Input types in HTML</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Sun, 20 Jul 2025 09:45:00 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/input-types-in-html-5afk</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/input-types-in-html-5afk</guid>
      <description>&lt;p&gt;&lt;strong&gt;Textual Input Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Type    Description:&lt;/p&gt;

&lt;p&gt;--&amp;gt; text Single-line text input.&lt;/p&gt;

&lt;p&gt;--&amp;gt; password Text input that hides the characters (e.g., for passwords).&lt;/p&gt;

&lt;p&gt;--&amp;gt; email Input for email addresses (with validation).&lt;/p&gt;

&lt;p&gt;--&amp;gt; search Input field for search queries.&lt;/p&gt;

&lt;p&gt;--&amp;gt; tel Input for telephone numbers.&lt;/p&gt;

&lt;p&gt;--&amp;gt;  url  Input for website URLs (with validation).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Number-Related Input Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Type    Description:&lt;/p&gt;

&lt;p&gt;--&amp;gt; number Input for numeric values (can include min, max, and step).&lt;/p&gt;

&lt;p&gt;--&amp;gt;  range Slider input for selecting a number in a range.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Date and Time Input Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Type    Description:&lt;/p&gt;

&lt;p&gt;--&amp;gt; date Select a date (YYYY-MM-DD).&lt;/p&gt;

&lt;p&gt;--&amp;gt;  month Select a month and year.&lt;/p&gt;

&lt;p&gt;--&amp;gt; time Select a time (hh:mm).&lt;/p&gt;

&lt;p&gt;--&amp;gt; datetime-local Select date and time (no timezone).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;File and Media Input Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Type    Description:&lt;/p&gt;

&lt;p&gt;--&amp;gt; file Allows file selection/upload.&lt;/p&gt;

&lt;p&gt;--&amp;gt; image Submit button as an image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Selection Input Types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Type    Description:&lt;/p&gt;

&lt;p&gt;--&amp;gt; checkbox Select one or more options (toggle on/off).&lt;/p&gt;

&lt;p&gt;--&amp;gt; radio Select only one option in a group.&lt;/p&gt;

&lt;p&gt;--&amp;gt; select Dropdown list (not an , but often used with them&lt;/p&gt;

</description>
    </item>
    <item>
      <title>🌟 Understanding Strings in Java: A Beginner’s Guide</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Fri, 30 May 2025 05:59:04 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/understanding-strings-in-java-a-beginners-guide-fb7</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/understanding-strings-in-java-a-beginners-guide-fb7</guid>
      <description>&lt;p&gt;In the world of Java programming, Strings are everywhere. Whether you're taking user input, displaying messages, or processing data, strings play a central role. But what exactly is a String in Java, and why is it so special?&lt;/p&gt;

&lt;p&gt;Let’s dive into the fundamentals and clear up some common questions!&lt;/p&gt;

&lt;p&gt;🔤 &lt;strong&gt;What is a String in Java?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In Java, a String is a sequence of characters used to represent text. It's one of the most commonly used objects and comes built into the language as part of the java.lang package — so you don’t need to import anything to use it.&lt;/p&gt;

&lt;p&gt;Here’s a quick example:&lt;/p&gt;

&lt;p&gt;String greeting = "Hello, World!";&lt;/p&gt;

&lt;p&gt;🔒 &lt;strong&gt;Strings are Immutable&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One of the most important things to know is that Strings in Java are immutable. This means once a String is created, it cannot be changed. If you perform an operation on a string, a new string is returned, leaving the original unchanged.&lt;/p&gt;

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

&lt;p&gt;String name = "John";&lt;br&gt;
name.toUpperCase(); // returns "JOHN", but 'name' is still "John"&lt;/p&gt;

&lt;p&gt;🧠 &lt;strong&gt;How are Strings Created?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are two main ways to create strings in Java:&lt;/p&gt;

&lt;p&gt;Using string literals (most common and memory efficient):&lt;/p&gt;

&lt;p&gt;String s1 = "Hello";&lt;/p&gt;

&lt;p&gt;Using the new keyword (creates a new object in memory):&lt;/p&gt;

&lt;p&gt;String s2 = new String("World");&lt;/p&gt;

&lt;p&gt;The first method stores the string in the String Constant Pool, which helps Java save memory by reusing objects.&lt;/p&gt;

&lt;p&gt;🔧 &lt;strong&gt;Common String Methods&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Java's String class comes with a rich set of methods to work with text. Here are a few you’ll often use:&lt;/p&gt;

&lt;p&gt;String str = "Java Programming";&lt;/p&gt;

&lt;p&gt;str.length();             // 16&lt;br&gt;
str.charAt(0);            // 'J'&lt;br&gt;
str.toUpperCase();        // "JAVA PROGRAMMING"&lt;br&gt;
str.substring(5);         // "Programming"&lt;br&gt;
str.contains("gram");     // true&lt;br&gt;
str.equals("Java");       // false&lt;br&gt;
str.replace("Java", "C++"); // "C++ Programming"&lt;/p&gt;

&lt;p&gt;➕ &lt;strong&gt;Concatenating Strings&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Combining two or more strings is called concatenation:&lt;/p&gt;

&lt;p&gt;String firstName = "John";&lt;br&gt;
String lastName = "Doe";&lt;br&gt;
String fullName = firstName + " " + lastName; // "John Doe"&lt;/p&gt;

&lt;p&gt;🤔 &lt;strong&gt;Comparing Strings&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In Java, comparing strings needs a bit of attention:&lt;/p&gt;

&lt;p&gt;== checks if both references point to the same object&lt;/p&gt;

&lt;p&gt;.equals() checks if both strings have the same content&lt;/p&gt;

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

&lt;p&gt;String a = "hello";&lt;br&gt;
String b = new String("hello");&lt;/p&gt;

&lt;p&gt;System.out.println(a == b);        // false&lt;br&gt;
System.out.println(a.equals(b));   // true&lt;/p&gt;

&lt;p&gt;So, always use .equals() for content comparison.&lt;br&gt;
🧰 When to Use StringBuilder&lt;/p&gt;

&lt;p&gt;Because strings are immutable, repeatedly modifying them can lead to performance issues. When you need to perform many modifications, prefer StringBuilder:&lt;/p&gt;

&lt;p&gt;StringBuilder sb = new StringBuilder("Hello");&lt;br&gt;
sb.append(" World");&lt;br&gt;
System.out.println(sb.toString()); // "Hello World"&lt;/p&gt;

&lt;p&gt;✅ &lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Strings are a foundational part of Java programming. Understanding how they work — especially their immutability and methods — helps you write better, more efficient code.&lt;/p&gt;

&lt;p&gt;Whether you're a beginner or brushing up on the basics, mastering strings is a step toward becoming a confident Java developer.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>MVC[model-view-controller]</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Thu, 29 May 2025 05:08:23 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/mvcmodel-view-controller-i9o</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/mvcmodel-view-controller-i9o</guid>
      <description>&lt;p&gt;🧠 [WHAT IS MVC? – OVERLAY SLIDE: 'MVC = Model + View + Controller']&lt;/p&gt;

&lt;p&gt;📖 "MVC is a design pattern used to organize your code in a clean, structured way — especially in Java web applications.&lt;br&gt;
It splits your app into three core components:&lt;/p&gt;

&lt;p&gt;Model – handles your data and business logic&lt;/p&gt;

&lt;p&gt;View – what the user sees (UI)&lt;/p&gt;

&lt;p&gt;Controller – acts as a bridge between Model and View"&lt;/p&gt;

&lt;p&gt;🧩 "Think of MVC like a restaurant:&lt;/p&gt;

&lt;p&gt;The Model is the kitchen (business logic, data)&lt;/p&gt;

&lt;p&gt;The View is the plate of food (what the user sees)&lt;/p&gt;

&lt;p&gt;The Controller is the waiter (taking requests and serving responses)"&lt;/p&gt;

&lt;p&gt;📦 [MODEL – LOGIC &amp;amp; DATA]&lt;/p&gt;

&lt;p&gt;🧑‍💻 "Let’s break each one down.&lt;br&gt;
First up: the Model. This is where your data lives — whether it’s a Java class like User.java, or connecting to a database using JDBC or JPA.&lt;br&gt;
It doesn’t care how data is shown — it just knows how to handle it."&lt;/p&gt;

&lt;p&gt;public class User {&lt;br&gt;
    private String name;&lt;br&gt;
    private String email;&lt;br&gt;
    // getters and setters&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;🎨 [VIEW – UI LAYER]&lt;/p&gt;

&lt;p&gt;🖼 "Next: the View. This is your user interface — what the user interacts with.&lt;br&gt;
In a Java web app, this might be a JSP (JavaServer Pages) file or HTML + Thymeleaf.&lt;/p&gt;

&lt;h2&gt;Welcome, ${user.name}!&lt;/h2&gt;

&lt;p&gt;The View just shows the data — it doesn’t process or store it."&lt;/p&gt;

&lt;p&gt;🕹 [CONTROLLER – TRAFFIC COP]&lt;br&gt;
📡 "Now, the Controller — the brains in the middle.&lt;br&gt;
It receives user input (like form submissions), calls the Model to process data, and then tells the View what to show.&lt;/p&gt;

&lt;p&gt;In Spring Boot, it might look like this:"&lt;/p&gt;

&lt;p&gt;@Controller&lt;br&gt;
public class UserController {&lt;br&gt;
    @GetMapping("/user")&lt;br&gt;
    public String getUser(Model model) {&lt;br&gt;
        User user = new User("Vimalraj", "&lt;a href="mailto:vimal@example.com"&gt;vimal@example.com&lt;/a&gt;");&lt;br&gt;
        model.addAttribute("user", user);&lt;br&gt;
        return "userView";&lt;br&gt;
    }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;🛠 [MVC IN FRAMEWORKS – SPRING MVC]&lt;br&gt;
🚀 "Java has several frameworks that follow the MVC pattern — most notably Spring MVC.&lt;br&gt;
It makes building robust, modular web applications so much easier. The structure is clean, testable, and scalable."&lt;/p&gt;

&lt;p&gt;📁 "Typically, your folders would look like this:&lt;/p&gt;

&lt;p&gt;/model&lt;br&gt;&lt;br&gt;
/controller&lt;br&gt;&lt;br&gt;
/view  &lt;/p&gt;

&lt;p&gt;💡 WHY USE MVC?&lt;/p&gt;

&lt;p&gt;📌 "Quick recap — why use MVC?&lt;/p&gt;

&lt;p&gt;✅ Separates concerns&lt;br&gt;
✅ Makes your code easier to maintain&lt;br&gt;
✅ Improves testability&lt;br&gt;
✅ Scales better in real-world projects"&lt;/p&gt;

&lt;p&gt;🎯 [WRAP UP]&lt;br&gt;
🗣 "So there you have it — the MVC pattern in Java!&lt;br&gt;
It’s clean, it’s powerful, and it’s everywhere — from small apps to enterprise-level systems. If you’re diving into Java web development, mastering MVC is an absolute must."&lt;/p&gt;

</description>
    </item>
    <item>
      <title>"What is JavaScript? And How is it Different from Java?"</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Wed, 28 May 2025 05:03:16 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/what-is-javascript-and-how-is-it-different-from-java-12bk</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/what-is-javascript-and-how-is-it-different-from-java-12bk</guid>
      <description>&lt;p&gt;Hey everyone! 👋 Welcome back to the channel. Today, we’re diving into something every web developer or tech enthusiast needs to know — JavaScript!&lt;/p&gt;

&lt;p&gt;What is it? Why is it used?&lt;/p&gt;

&lt;p&gt;And wait… is it the same as Java?&lt;br&gt;
Let’s break it down — super simple, no tech jargon. Let’s go! 🚀&lt;/p&gt;

&lt;p&gt;💡 [Part 1: What is JavaScript?]&lt;/p&gt;

&lt;p&gt;JavaScript is a programming language mainly used to make web pages interactive.&lt;/p&gt;

&lt;p&gt;Think of a website like a body:&lt;/p&gt;

&lt;p&gt;"HTML is the bones – it gives structure".&lt;/p&gt;

&lt;p&gt;"CSS is the skin and style".&lt;/p&gt;

&lt;p&gt;"And JavaScript? That’s the muscles and brain – it makes things move, click, respond, and feel alive".&lt;/p&gt;

&lt;p&gt;✅  Buttons that react when you click&lt;br&gt;
✅  Sliders&lt;br&gt;
✅  Pop-ups&lt;br&gt;
✅  Forms that check your input before submitting&lt;/p&gt;

&lt;p&gt;All of that is powered by JavaScript.&lt;/p&gt;

&lt;p&gt;🌐 [Part 2: Why is JavaScript Used?]&lt;/p&gt;

&lt;p&gt;JavaScript is literally everywhere on the web. It’s used for:&lt;/p&gt;

&lt;p&gt;Frontend development – to create dynamic websites.&lt;/p&gt;

&lt;p&gt;Backend development – using Node.js, it can run on servers too.&lt;br&gt;
     Mobile apps – frameworks like React Native use JavaScript.&lt;/p&gt;

&lt;p&gt;Games, chat apps, animations, you name it!&lt;/p&gt;

&lt;p&gt;Even platforms like Facebook, YouTube, and Instagram use        JavaScript heavily.&lt;/p&gt;

&lt;p&gt;⚠️ [Part 3: Java vs JavaScript]&lt;/p&gt;

&lt;p&gt;Here comes the confusion:&lt;br&gt;
Java ≠ JavaScript&lt;/p&gt;

&lt;p&gt;Just because they sound similar, people think they’re related — but nope!&lt;/p&gt;

&lt;p&gt;Feature Java    JavaScript&lt;/p&gt;

&lt;p&gt;Type   Programming Language    Scripting Language&lt;br&gt;
Use Backend, apps, enterprise systems   Web interactivity, frontend/backend&lt;/p&gt;

&lt;p&gt;Runs On    JVM (Java Virtual Machine)  Web browsers, Node.js&lt;br&gt;
Syntax  Strict, verbose Lightweight, flexible&lt;br&gt;
Compiled?   Yes No – interpreted&lt;/p&gt;

&lt;p&gt;Java is like a heavy-duty truck 🚛, while JavaScript is a zippy little sports car 🚗 — both are powerful, but used in totally different ways.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Static and non static methods in java...</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Tue, 01 Apr 2025 15:47:52 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/static-and-non-static-methods-in-java-5eb7</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/static-and-non-static-methods-in-java-5eb7</guid>
      <description>&lt;h1&gt;
  
  
  Static and Non-Static Methods in Java:
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Java methods can be categorized into two main types: &lt;strong&gt;static&lt;/strong&gt; and &lt;strong&gt;non-static&lt;/strong&gt; methods. Understanding the difference between them is crucial for writing efficient and well-structured Java programs.&lt;/p&gt;

&lt;p&gt;In this blog, we will explore static and non-static methods, their differences, and provide real-world examples to help you grasp their implementation effectively.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is a Method in Java?
&lt;/h2&gt;

&lt;p&gt;A method in Java is a block of code that performs a specific task. Methods help eliminate redundancy, increase code efficiency, and make debugging easier. Every method is part of a class and executes when it is called.&lt;/p&gt;

&lt;h3&gt;
  
  
  Syntax of a Method
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="n"&gt;returnType&lt;/span&gt; &lt;span class="nf"&gt;methodName&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parameters&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Method body&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// (if required)&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Static Methods in Java
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;static method&lt;/strong&gt; belongs to the class rather than an instance of the class. It can be called without creating an object of the class.&lt;/p&gt;

&lt;h3&gt;
  
  
  Characteristics of Static Methods:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Defined using the &lt;code&gt;static&lt;/code&gt; keyword.&lt;/li&gt;
&lt;li&gt;Can be called using the class name.&lt;/li&gt;
&lt;li&gt;Cannot access instance variables directly.&lt;/li&gt;
&lt;li&gt;Used for utility or helper methods.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Example of a Static Method:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;StaticExample&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Static method&lt;/span&gt;
    &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;displayMessage&lt;/span&gt;&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello from a static method!"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// Calling the static method using class name&lt;/span&gt;
        &lt;span class="nc"&gt;StaticExample&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;displayMessage&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Output:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hello from a static method!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Non-Static Methods in Java
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;non-static method&lt;/strong&gt; (also called an instance method) requires an object of the class to be called.&lt;/p&gt;

&lt;h3&gt;
  
  
  Characteristics of Non-Static Methods:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Do &lt;strong&gt;not&lt;/strong&gt; use the &lt;code&gt;static&lt;/code&gt; keyword.&lt;/li&gt;
&lt;li&gt;Can access both static and instance variables.&lt;/li&gt;
&lt;li&gt;Require an object to be invoked.&lt;/li&gt;
&lt;li&gt;Used when the method needs to operate on instance data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Example of a Non-Static Method:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;NonStaticExample&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Non-static method&lt;/span&gt;
    &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;showMessage&lt;/span&gt;&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello from a non-static method!"&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// Creating an object to call the non-static method&lt;/span&gt;
        &lt;span class="nc"&gt;NonStaticExample&lt;/span&gt; &lt;span class="n"&gt;example&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;NonStaticExample&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;
        &lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;showMessage&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Output:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hello from a non-static method!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Key Differences Between Static and Non-Static Methods
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Static Method&lt;/th&gt;
&lt;th&gt;Non-Static Method&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Definition&lt;/td&gt;
&lt;td&gt;Declared using &lt;code&gt;static&lt;/code&gt; keyword&lt;/td&gt;
&lt;td&gt;No &lt;code&gt;static&lt;/code&gt; keyword&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Access&lt;/td&gt;
&lt;td&gt;Can be called using class name&lt;/td&gt;
&lt;td&gt;Requires an object to call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Instance Variables&lt;/td&gt;
&lt;td&gt;Cannot access directly&lt;/td&gt;
&lt;td&gt;Can access directly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory&lt;/td&gt;
&lt;td&gt;Loaded into memory once&lt;/td&gt;
&lt;td&gt;Created with each object&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Use Case&lt;/td&gt;
&lt;td&gt;Utility/helper functions&lt;/td&gt;
&lt;td&gt;Operations on instance data&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Example: Static vs. Non-Static Methods Together
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;MethodComparison&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Static method&lt;/span&gt;
    &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;staticMethod&lt;/span&gt;&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"This is a static method."&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;

    &lt;span class="c1"&gt;// Non-static method&lt;/span&gt;
    &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;nonStaticMethod&lt;/span&gt;&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"This is a non-static method."&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// Calling static method without creating an object&lt;/span&gt;
        &lt;span class="nc"&gt;MethodComparison&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;staticMethod&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;

        &lt;span class="c1"&gt;// Creating an object to call non-static method&lt;/span&gt;
        &lt;span class="nc"&gt;MethodComparison&lt;/span&gt; &lt;span class="n"&gt;obj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;MethodComparison&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;
        &lt;span class="n"&gt;obj&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;nonStaticMethod&lt;/span&gt;&lt;span class="o"&gt;();&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Output:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This is a static method.
This is a non-static method.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  When to Use Static and Non-Static Methods?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Use static methods when:&lt;/strong&gt;&lt;br&gt;
✅ The method does not need to access instance variables.&lt;br&gt;
✅ You want to create utility or helper methods (e.g., &lt;code&gt;Math.sqrt()&lt;/code&gt;).&lt;br&gt;
✅ Memory optimization is a priority (since static methods are loaded once).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use non-static methods when:&lt;/strong&gt;&lt;br&gt;
✅ The method needs to operate on instance data.&lt;br&gt;
✅ The behavior should change depending on object state.&lt;br&gt;
✅ Object-specific functionality is required.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Understanding static and non-static methods in Java is crucial for writing clean and optimized code. Static methods are used for common functionalities, while non-static methods allow working with instance variables. &lt;/p&gt;

&lt;p&gt;Start using these concepts in your Java projects and level up your programming skills today! 🚀&lt;/p&gt;

</description>
      <category>methods</category>
      <category>java</category>
    </item>
    <item>
      <title>Java day -2</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Tue, 25 Mar 2025 17:11:22 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/java-day-2-ail</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/java-day-2-ail</guid>
      <description>&lt;p&gt;&lt;strong&gt;Basic errors for in java:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There are three types of errors in Java: syntax errors, runtime errors, and logical errors.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt; Syntax errors occur when the code doesn't follow the rules of the Java language.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; Runtime errors occur during the execution of the program and can be caused by things like division by zero or trying to access an element of an array that doesn't exist.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3)&lt;/strong&gt; Logical errors occur when the program runs without any errors, but it doesn't produce the expected &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;how to resolve above errors:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1)&lt;/strong&gt;  solve syntax error in java: &lt;strong&gt;capitalize keywords, rather than use lowercase.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2)&lt;/strong&gt; To resolve a runtime error: &lt;strong&gt;first identify the error message and its context, then check for logical, mathematical, or typographical errors in the code, ensure proper data types and variable initialization, and consult documentation if necessary.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3)&lt;/strong&gt; solve logical error in java: &lt;strong&gt;use debugging tools, print statements, and break down the problem into smaller parts, testing each part separately&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;class Vs objects in java&lt;/strong&gt;&lt;/p&gt;

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

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

&lt;p&gt;&lt;strong&gt;Errors oocurs in basic programm:&lt;/strong&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Resolve:&lt;/strong&gt;&lt;br&gt;
1-public void main converting into public static void main&lt;br&gt;
2- space between the args &lt;br&gt;
Ex:&lt;br&gt;
   (String[] args)&lt;br&gt;
3- system.Out.println this method contain capital S&lt;br&gt;
4- final bug fix in this program is command line ends with semicolon.&lt;br&gt;
Ex: &lt;br&gt;
(welcome to java programming)~(Welcome to java programming);&lt;br&gt;
              |----|&lt;br&gt;
"Here are some conflitcs to resolve " &lt;/p&gt;

</description>
      <category>oop</category>
      <category>basicerrors</category>
    </item>
    <item>
      <title>JAVA INTRODUCTION DAY</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Mon, 24 Mar 2025 16:13:52 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/java-introduction-day-4ene</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/java-introduction-day-4ene</guid>
      <description>&lt;p&gt;Java is a high-level, object-oriented programming language designed to be platform-independent, meaning code written in Java can run on different operating systems without modification. It was developed by Sun Microsystems (now owned by Oracle Corporation) and released in 1995.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;key features of Java:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Write once Run Anywhere&lt;/strong&gt; (WORA) – Java code runs on any platform that has the Java Virtual Machine (JVM).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Object-Oriented&lt;/strong&gt; – Java follows OOP principles like encapsulation, inheritance, and polymorphism.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;platform-inndependent&lt;/strong&gt; – Java programs are compiled into bytecode, which runs on any OS with a JVM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;secure&lt;/strong&gt; – Java has built-in security features like bytecode verification, memory management, and the Security Manager.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automatic Memory Management&lt;/strong&gt; – Java uses Garbage Collection to free unused memory.&lt;/p&gt;

&lt;p&gt;** Rich API** – Provides libraries for networking, I/O, utilities, databases, GUI development, and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Multithreading&lt;/strong&gt; – Java supports concurrent execution of tasks using threads.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;complier Vs interpreter&lt;/strong&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;How Java complier works&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvqnupop5dxiao829ighe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvqnupop5dxiao829ighe.png" alt="Image description" width="600" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JDK JRE JVM&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Java Development Kit(JDK):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The JDK is a software development kit used to develop Java applications. &lt;/p&gt;

&lt;p&gt;It contains th****e JRE, along with tools like compilers, debuggers, and documentation generators, necessary for developing and building Java programs. &lt;br&gt;
If you want to write, compile, and debug Java code, you'll need a JDK. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Java Runtime Environment (JRE):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The JRE is a software package that provides the runtime environment for executing Java applications. &lt;/p&gt;

&lt;p&gt;It includes the JVM and the necessary libraries and components for running Java programs. &lt;br&gt;
If you just want to run Java applications, you need a JRE. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Java Virtual Machine (JVM):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The JVM is an abstract machine that provides an environment for the execution of Java bytecode. &lt;/p&gt;

&lt;p&gt;It's responsible for loading, verifying, and executing Java bytecode. &lt;br&gt;
The JVM is platform-independent, meaning Java programs can run on any system with a JVM. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Git Rebase and Git stash and Git pop -day 4</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Fri, 21 Mar 2025 15:00:30 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/git-rebase-and-git-stash-and-git-pop-day-4-5ga5</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/git-rebase-and-git-stash-and-git-pop-day-4-5ga5</guid>
      <description>&lt;p&gt;What is Git Rebase?&lt;br&gt;
           Git rebase command allows you to apply changes from one branch onto another.&lt;/p&gt;

&lt;p&gt;When Should You Use git rebase?&lt;/p&gt;

&lt;p&gt;. Updating Your Feature Branch&lt;br&gt;
  . Maintaining a Clean Commit History&lt;br&gt;
  . Resolving Conflicts Before Merge&lt;/p&gt;

&lt;p&gt;Summary of Common Commands:&lt;/p&gt;

&lt;p&gt;1 Start rebase: git rebase &lt;/p&gt;

&lt;p&gt;2 Continue after resolving conflicts: git rebase --continue&lt;/p&gt;

&lt;p&gt;3 Skip a commit during rebase: git rebase --skip&lt;/p&gt;

&lt;p&gt;4 Abort rebase: git rebase --abort&lt;/p&gt;

&lt;p&gt;What is git stash?&lt;/p&gt;

&lt;p&gt;.In Git, git stash is a useful command that temporarily saves changes you’ve made in your working directory but don’t want to commit yet.&lt;/p&gt;

&lt;p&gt;How to Use git stash&lt;/p&gt;

&lt;p&gt;. Stash your changes:&lt;br&gt;
    Simply run the following command to stash all changes (both staged and unstaged):&lt;/p&gt;

&lt;p&gt;git stash&lt;/p&gt;

&lt;p&gt;View your stashes:&lt;br&gt;
You can list all the stashes you've saved with:&lt;/p&gt;

&lt;p&gt;git stash list&lt;/p&gt;

&lt;p&gt;This will show a list of stashes, like stash@{0}, stash@{1}, etc.&lt;/p&gt;

&lt;p&gt;Apply a stash:&lt;br&gt;
To retrieve the most recent stash, you can apply it with:&lt;/p&gt;

&lt;p&gt;git stash apply&lt;/p&gt;

&lt;p&gt;You can also apply a specific stash by referencing its index, such as stash@{1}:&lt;/p&gt;

&lt;p&gt;git stash apply stash@{1}&lt;/p&gt;

&lt;p&gt;Pop a stash:&lt;br&gt;
If you want to apply the stash and remove it from the stash list, use:&lt;/p&gt;

&lt;p&gt;git stash pop&lt;/p&gt;

&lt;p&gt;Drop a stash:&lt;br&gt;
If you no longer need a specific stash, you can delete it:&lt;/p&gt;

&lt;p&gt;git stash drop stash@{0}&lt;/p&gt;

&lt;p&gt;To clear all stashes:&lt;/p&gt;

&lt;p&gt;. git stash clear&lt;/p&gt;

&lt;p&gt;git stash is incredibly versatile and provides a way to keep your working directory clean while ensuring that none of your changes are lost. It’s a must-have in your Git toolbox!&lt;/p&gt;

&lt;p&gt;What is git log?&lt;/p&gt;

&lt;p&gt;Git’s commit history is one of its most powerful features, allowing developers to trace the changes made to a repository over time.&lt;/p&gt;

&lt;p&gt;COMMON USE CASES OF GIT LOG:&lt;/p&gt;

&lt;p&gt;. Reviewing commit history: The git log command helps you track the history of your project, showing what changes were made, who made them, and when.&lt;br&gt;
    . Finding specific commits: When you're trying to locate a particular change or a bug introduced in the history, git log allows you to find commits based on time, author, or commit message.&lt;br&gt;
    Comparing branches: By examining the log of different branches, you can understand what changes have been made in each branch and how they differ.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>GITLAB PUSH</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Wed, 19 Mar 2025 16:35:50 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/gitlab-push-3obc</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/gitlab-push-3obc</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb256llmyd4ep9g3iu54n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb256llmyd4ep9g3iu54n.png" alt="Image description" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;Checking Git Version&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before starting with any Git operations, it’s essential to check if Git is installed correctly on your system. The following command will show you the version of Git installed:&lt;/p&gt;

&lt;p&gt;git --version&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Initializing a Git Repository (git init)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To start tracking a project using Git, you need to initialize a new Git repository in your project directory. This can be done with the git init command.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Navigating to your Project Directory: Before using Git, navigate to your project directory:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;cd  command&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Initialize Git Repository: Once you’re in the project directory, run the following command to initialize a Git repository:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git init&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Git Configuration&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After that, configure your username and email:&lt;/p&gt;

&lt;p&gt;git config --global user.name "your Name"&lt;br&gt;
git config --global user.email "&lt;a href="mailto:your.email@example.com"&gt;your.email@example.com&lt;/a&gt;"&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Forking and Cloning a Repository&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Forking is a repository means creating a copy of an existing repository in your GitHub account so that we can make changes without affecting the original repository.&lt;/p&gt;

&lt;p&gt;How to Fork a Repository&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Go to the repository we want to contribute to on GitHub.
Click the Fork button at the top right.
Once forked, navigate to your GitHub profile and open the forked repository

Copy URL: Then a copy of real repository will be created in your local repository. After that, we have to copy the URL from your local repo. For doing that click to code and copy the URL.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Cloning the Repository Locally&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After forking, clone the repository to your local machine&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create a folder on your desktop where you want to store the project files.
Open Git Bash and navigate to the newly created folder using the cd command:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;cd &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Copy the repository URL from GitHub.
In Git Bash, type the following command and press Enter
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git clone &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The repository will be cloned into your desktop folder, making the project files available on your system.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Checking the Status&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After making code changes, check which files are not added using:&lt;/p&gt;

&lt;p&gt;git status&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This command displays the current state of your working directory, indicating whether files are untracked, staged, or committed. Files in red are untracked or modified but not staged, while files in green are staged and ready to be committed.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Adding Files to Staging Area&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When we get to know which files are not added by typing git status(red-colored files are not added).&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;To track a file or prepare changes for commit:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git add &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;To add all changes:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git add .&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Committing Changes&lt;/p&gt;

&lt;p&gt;To save your changes in the local repository, first check the status using:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;git status&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Files displayed in green are staged but not yet committed. To commit these changes, use:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git commit -m "Your commit message"&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pushing Changes to GitHub&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To upload commits to your forked repository&lt;/p&gt;

&lt;p&gt;git push origin &lt;/p&gt;

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

</description>
    </item>
    <item>
      <title>BASIC GIT PUSH COMMANDS</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Wed, 19 Mar 2025 14:56:50 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/basic-git-push-commands-1b9n</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/basic-git-push-commands-1b9n</guid>
      <description>&lt;p&gt;Git is a powerful version control system that helps developers manage and track changes to their codebase over time. It enables collaboration, allowing multiple developers to work on the same project without overwriting each other’s work. Git tracks every modification, making it easy to roll back, track bugs, and collaborate efficiently.&lt;/p&gt;

&lt;p&gt;Here, we’ll go through some essential Git commands and setup instructions that will help you get started with Git and GitHub.&lt;br&gt;
Prerequisites&lt;/p&gt;

&lt;p&gt;Before you begin using Git, you’ll need to have it installed on your system. Follow the instructions below based on your operating system:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Install Git On Windows
Install Git On Mac
Install Git On Linux
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Checking Git Version&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before starting with any Git operations, it’s essential to check if Git is installed correctly on your system. The following command will show you the version of Git installed:&lt;/p&gt;

&lt;p&gt;git --version&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Initializing a Git Repository (git init)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To start tracking a project using Git, you need to initialize a new Git repository in your project directory. This can be done with the git init command.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Navigating to your Project Directory: Before using Git, navigate to your project directory:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;cd  command&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Initialize Git Repository: Once you’re in the project directory, run the following command to initialize a Git repository:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git init&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Git Configuration&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After that, configure your username and email:&lt;/p&gt;

&lt;p&gt;git config --global user.name "your Name"&lt;br&gt;
git config --global user.email "&lt;a href="mailto:your.email@example.com"&gt;your.email@example.com&lt;/a&gt;"&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Forking and Cloning a Repository&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Forking is a repository means creating a copy of an existing repository in your GitHub account so that we can make changes without affecting the original repository.&lt;/p&gt;

&lt;p&gt;How to Fork a Repository&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Go to the repository we want to contribute to on GitHub.
Click the Fork button at the top right.
Once forked, navigate to your GitHub profile and open the forked repository

Copy URL: Then a copy of real repository will be created in your local repository. After that, we have to copy the URL from your local repo. For doing that click to code and copy the URL.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Cloning the Repository Locally&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After forking, clone the repository to your local machine&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create a folder on your desktop where you want to store the project files.
Open Git Bash and navigate to the newly created folder using the cd command:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;cd &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Copy the repository URL from GitHub.
In Git Bash, type the following command and press Enter
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git clone &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The repository will be cloned into your desktop folder, making the project files available on your system.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Checking the Status&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After making code changes, check which files are not added using:&lt;/p&gt;

&lt;p&gt;git status&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This command displays the current state of your working directory, indicating whether files are untracked, staged, or committed. Files in red are untracked or modified but not staged, while files in green are staged and ready to be committed.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Adding Files to Staging Area&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When we get to know which files are not added by typing git status(red-colored files are not added).&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;To track a file or prepare changes for commit:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git add &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;To add all changes:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git add .&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Committing Changes&lt;/p&gt;

&lt;p&gt;To save your changes in the local repository, first check the status using:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;git status&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Files displayed in green are staged but not yet committed. To commit these changes, use:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;git commit -m "Your commit message"&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pushing Changes to GitHub&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To upload commits to your forked repository&lt;/p&gt;

&lt;p&gt;git push origin &lt;/p&gt;

</description>
    </item>
    <item>
      <title>GIT ALTERNATIVE TOOLS</title>
      <dc:creator>vimal krush</dc:creator>
      <pubDate>Tue, 18 Mar 2025 14:01:11 +0000</pubDate>
      <link>https://dev.to/vimal_krush_349f0675b4ef9/git-alternative-tools-3jpf</link>
      <guid>https://dev.to/vimal_krush_349f0675b4ef9/git-alternative-tools-3jpf</guid>
      <description>&lt;p&gt;If you're looking for alternatives to Git, consider Bitbucket, GitLab, Apache Subversion (SVN), Mercurial, AWS CodeCommit, Gitea, Gogs, Sourcetree, GitKraken, or Helix Core. &lt;br&gt;
Here's a more detailed breakdown:&lt;br&gt;
Version Control Systems (Similar to Git):&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Mercurial:
A distributed version control system, similar to Git, known for its simplicity and ease of use. 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Apache Subversion (SVN):&lt;br&gt;
A centralized version control system, where a single server stores the project's history, and developers check out and check in changes from that server. &lt;/p&gt;

&lt;p&gt;Git Hosting Platforms (Alternatives to GitHub):&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Bitbucket:
A popular alternative, particularly for teams using other Atlassian products like Jira and Confluence, offering free private repositories for small teams and supporting both Git and Mercurial. 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;GitLab:&lt;br&gt;
A comprehensive platform that offers Git repository hosting, CI/CD, and other DevOps tools, making it a strong alternative to GitHub. &lt;br&gt;
AWS CodeCommit:&lt;br&gt;
A fully managed source control service within the AWS ecosystem, allowing teams to host Git repositories securely and scalably. &lt;/p&gt;

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