<?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: Shrinidhi S</title>
    <description>The latest articles on DEV Community by Shrinidhi S (@shrinidhi_s).</description>
    <link>https://dev.to/shrinidhi_s</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%2F3014154%2F5e5cd880-b12d-4734-8a98-5c747f2b7c5c.png</url>
      <title>DEV Community: Shrinidhi S</title>
      <link>https://dev.to/shrinidhi_s</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shrinidhi_s"/>
    <language>en</language>
    <item>
      <title>Assignment 3</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Tue, 22 Apr 2025 18:03:13 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/assignment-3-4a5i</link>
      <guid>https://dev.to/shrinidhi_s/assignment-3-4a5i</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package assignment_3;

public class Grandma {
    String name = "Stella";

    public void work () {
        System.out.println("Grandma dead");


    }

}

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

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package assignment_3;

public class Mother extends Grandma {
    String name = "Stella";

    public void work() {
        System.out.println("Name : " + name);
        System.out.println("supername : " + super.name);
        super.work();

    }

}



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

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package assignment_3;
public class Kid extends Mother {
    String name = "Suman";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public static void main(String[] args) {
    // TODO Auto-generated method stub
    Kid kid = new Kid();
    kid.study();
}
public void work() {
    System.out.println("Kid:" + name);
    System.out.println("supername:"+ super.name);
}
public void study() {
    System.out.println("Subject");
    work();
} }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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


OUTPUT:

Subject
Kid:Suman
supername:Stella

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

&lt;/div&gt;

</description>
    </item>
    <item>
      <title>Assignment 1</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Mon, 21 Apr 2025 12:42:26 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/assignment-1-15el</link>
      <guid>https://dev.to/shrinidhi_s/assignment-1-15el</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package section_a;

public class School {
    int mark;
    private int salary;

    static String school_name = "St.Antony's Primary School";

    public void conduct_exams() {
        System.out.println("Conducting exams");
    }
    public void publish_results(int mark) {
        System.out.println("Students mark :" + mark);
    }

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

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package section_a;

public class Tecaher {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        School teacher = new School();

        teacher.conduct_exams();
        teacher.publish_results(75);

        System.out.println(School.school_name);
        //System.out.println(teacher.salary); 
        //The field School.salary is not visible

    }

}

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

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Conducting exams
Students mark :75
St.Antony's Primary School
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Static &amp; Non static variables</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Sat, 19 Apr 2025 16:13:46 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/static-non-static-variables-2877</link>
      <guid>https://dev.to/shrinidhi_s/static-non-static-variables-2877</guid>
      <description>&lt;p&gt;🔁 What is a Static Variable?&lt;br&gt;
A static variable belongs to the class, not to any specific object of that class. That means all objects share the same static variable. It’s like having one copy of a variable that everyone uses.&lt;br&gt;
Static variables Can be accessed from any part of the program.&lt;br&gt;
When a variable is declared as static, then a single copy of the variable is created and shared among all objects at a class level.&lt;br&gt;
✅We can create static variables at class level only.Static variables can be accessed by static and non static methods.&lt;br&gt;
They are class specified.&lt;/p&gt;

&lt;p&gt;🏫 Non-Static Variable &lt;br&gt;
A non-static variable (also called an instance variable) belongs to an object. Every time you create a new object, it gets its own copy of that variable.&lt;br&gt;
✅Non static variables can be accessed using instance (object) of a class.In non Static variable Memory is allocated each time an instance of the class is created.They are object specific.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Student {
    static String schoolName = "Green Valley High";  // shared by all students (static)
    String studentName;                              // each student has their own name (non-static)
}

public class Main {
    public static void main(String[] args) {
        Student s1 = new Student();
        Student s2 = new Student();

        s1.studentName = "Aarav";
        s2.studentName = "Diya";

        System.out.println("Student 1:");
        System.out.println("Name: " + s1.studentName);              // non-static
        System.out.println("School: " + Student.schoolName);       // static (accessed using class name)

        System.out.println("\nStudent 2:");
        System.out.println("Name: " + s2.studentName);              // non-static
        System.out.println("School: " + Student.schoolName);       // static (same for all)
    }
}

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

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Primitive VS Non-Primitive Datatypes</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Sat, 19 Apr 2025 15:38:49 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/primitive-vs-non-primitive-datatypes-1kc8</link>
      <guid>https://dev.to/shrinidhi_s/primitive-vs-non-primitive-datatypes-1kc8</guid>
      <description>&lt;p&gt;The Java programming language is statically-typed, which means that all variables must first be declared before they can be used.&lt;br&gt;
Data types in Java specify how memory stores the values of the variable. Each variable has a data type that decides the value the variable will hold. &lt;/p&gt;

&lt;p&gt;&lt;u&gt;Primitive Data Types:&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;Primitive data types specify the size and type of variable values.&lt;br&gt;
They store only single values and have no additional capabilities. &lt;/p&gt;

&lt;p&gt;They are the building blocks of data manipulation and cannot be further divided into simpler data types.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;**Boolean** - A boolean data type can store either True or False. They can be used to check whether two values are equal or not (basically in conditional statements to return True or False).
The default boolean value is False.

**Char** - The character data type stores a single character. It stores lowercase and uppercase characters, which must be enclosed in single quotes. 

**Int** - An integer type stores an integer number with no fractional or decimal places. Java has four integer types – byte, short, int, and long.

**Long** - long is a 64-bit signed two’s complement integer that stores values ranging from -9223372036854775808(-2^63) to 9223372036854775807(2^63 -1). It is used when we need a range of values more than those provided by int. Its default value is 0L. This data type ends with ‘L’ or ‘l’.

**Float **- It is a floating-point data type that stores the values, including their decimal precision. It is not used for precise data such as currency or research data. can have a 7-digit decimal precision

**Double** - The double data type is similar to float. The difference between the two is that is double twice the float in the case of decimal precision. It is used for decimal values just like float and can be used for precise values. can have a 15-digit decimal precision.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;u&gt;Non-Primitive Data Types:&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;The Non-Primitive (Reference) Data Types will contain a memory address of variable values because the reference types won’t store the variable value directly in memory. They are strings, objects, arrays, etc.&lt;br&gt;
Unlike primitive data types we define by Java, non-primitive data types are user-defined. Programmers create them and can be assigned with null. All non-primitive data types are of equal size.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;**String** - The String data type stores a sequence or array of characters. A string is a non-primitive data type, but it is predefined in Java.

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

&lt;/div&gt;



&lt;p&gt;Please refer my previous vlog of datatypes in java for better understanding.&lt;/p&gt;

</description>
      <category>java</category>
      <category>datatypes</category>
    </item>
    <item>
      <title>Data Types in Java</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Fri, 18 Apr 2025 11:04:48 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/data-types-in-java-fi6</link>
      <guid>https://dev.to/shrinidhi_s/data-types-in-java-fi6</guid>
      <description>&lt;p&gt;In Java, primitive data types are the most basic building blocks of data — they’re not objects, and they store actual values (not references). There are 8 primitive data types in Java, and each has a specific size and purpose.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Data          Size               Example

byte        1 byte (8-bit)    127   
short       2 bytes (16-bit)      32000 
int     4 bytes (32-bit)      100000    
long        8 bytes (64-bit)      10000000000L  
float       4 bytes (32-bit)      3.14f 
double      8 bytes (64-bit)      3.1415926535  
char        2 bytes (16-bit)      'A'   
boolean     1 bit             true or false 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class PrimitiveExample {
    public static void main(String[] args) {
        int age = 20;
        float height = 5.9f;
        char grade = 'A';
        boolean isPassed = true;

        System.out.println("Age: " + age);
        System.out.println("Height: " + height);
        System.out.println("Grade: " + grade);
        System.out.println("Passed: " + isPassed);
    }
}

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

&lt;/div&gt;



&lt;p&gt;Unlike primitive types (which store actual values like numbers or characters), non-primitive types store references to objects in memory.&lt;br&gt;
String --&amp;gt; Sequence of characters &lt;br&gt;
EX:"Hello", "Java &lt;/p&gt;

&lt;p&gt;Array --&amp;gt; Stores multiple values of the same type&lt;br&gt;
Ex:int[] nums = {1,2,3}&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;In simple terms:

A primitive is like the actual book.
A non-primitive is like the library card that points you to the book’s location.

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

&lt;/div&gt;



</description>
      <category>programming</category>
      <category>java</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Intro to Git</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Thu, 17 Apr 2025 11:39:30 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/intro-to-git-4m42</link>
      <guid>https://dev.to/shrinidhi_s/intro-to-git-4m42</guid>
      <description>&lt;p&gt;🚀 Git is a distributed version control system that helps you keep track of changes to your code.&lt;br&gt;
Git is free and open-source software.&lt;br&gt;
It was originally created by Linus Torvalds for version control during the development of the Linux kernel.&lt;br&gt;
In software development, distributed version control (also known as distributed revision control) is a form of version control in which the complete codebase, including its full history, is mirrored on every developer's computer.&lt;/p&gt;

&lt;p&gt;Why Use Git?&lt;br&gt;
🕹️ Version control – Undo mistakes, view history&lt;/p&gt;

&lt;p&gt;🤝 Collaboration – Multiple people can work on the same project&lt;/p&gt;

&lt;p&gt;🌿 Branching – Try new features without breaking the main code&lt;/p&gt;

&lt;p&gt;🔄 Merging – Combine different code versions easily&lt;/p&gt;

&lt;p&gt;🧩 Integration – Works with platforms like GitHub, GitLab, Bitbucket&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git init        # Start a new Git repo
git add .       # Stage your changes
git commit -m "Message"   # Save changes with a message
git status      # Check what’s going on
git push        # Upload your code to GitHub
git pull        # Download the latest code

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

&lt;/div&gt;



&lt;p&gt;If you're working on personal projects, contributing to open source, or building with a team, learning Git is a must. It’s one of those tools that may seem complex at first, but once you get the hang of it, it becomes second nature.&lt;/p&gt;

</description>
      <category>web</category>
      <category>linux</category>
      <category>java</category>
      <category>gitlab</category>
    </item>
    <item>
      <title>Object creation</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Wed, 16 Apr 2025 15:26:53 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/object-creation-1c88</link>
      <guid>https://dev.to/shrinidhi_s/object-creation-1c88</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class Calculator
{
public static void main(String[] args)
{
Calculator casio = new Calculator(); //Constructor
}
public void add()
{
System.out.println(10+20);
}

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

&lt;/div&gt;



&lt;p&gt;In java, we have a keyword called "new" which should be followed by class name.&lt;br&gt;
Class name should start with capital letter.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;new Calculator;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, an object is created and then we have to give name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;calculator casio = new Calculator; //constructor
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here casio is object's name.&lt;br&gt;
calculator casio - object's representation.&lt;br&gt;
new Calculator - object creation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Structure of object creation:

Classname reference_name = new Classname;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What is a method?&lt;br&gt;
     A method is a block of code that performs a specific task and can be called for execution by its name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public void add()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it contains () it is definitely a method.&lt;br&gt;
main(String[] args) - main method &lt;br&gt;
add() - add method&lt;/p&gt;

</description>
      <category>programming</category>
      <category>java</category>
      <category>object</category>
    </item>
    <item>
      <title>How to write a java program?</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Wed, 16 Apr 2025 14:51:38 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/how-to-write-a-java-program-52hm</link>
      <guid>https://dev.to/shrinidhi_s/how-to-write-a-java-program-52hm</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public class First
{
 public static void main(String[] args)
    {
    System.out.println("Welcome To Java"); 
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's breakdown the program:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Line 1: public class First&lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
           This line defines a class named First.&lt;br&gt;
           In Java, everything must be inside a class.&lt;br&gt;
           The keyword public means this class is accessible from anywhere in your program.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Line 2: { &lt;/u&gt;&lt;/strong&gt;&lt;br&gt;
      This opening curly brace { marks the start of the class body.&lt;br&gt;
      All the code inside the class will go between { and }.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;Line 3: public static void main(String[] args)&lt;/strong&gt;&lt;/u&gt;&lt;br&gt;&lt;br&gt;
     This is the main method — the entry point of any Java program.&lt;br&gt;
     Without this line, we can't run a java program.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;public&lt;/strong&gt;: The method is accessible from outside the class.&lt;/li&gt;
&lt;li&gt;      &lt;strong&gt;static&lt;/strong&gt;: You don’t need to create an object of the class to run this method.&lt;/li&gt;
&lt;li&gt;   &lt;strong&gt;void&lt;/strong&gt;: This method does not return any value.&lt;/li&gt;
&lt;li&gt;      &lt;strong&gt;main:&lt;/strong&gt; The name of the method — Java looks for this to start the program.&lt;/li&gt;
&lt;li&gt;      &lt;strong&gt;String[] args&lt;/strong&gt;: This is used to accept command-line arguments (an array of Strings).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Line 4: {&lt;br&gt;
&lt;/u&gt;&lt;/strong&gt;      This curly brace { starts the body of the main method.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;Line 5: System.out.println("Welcome To Java");&lt;/strong&gt;&lt;/u&gt;&lt;br&gt;
       This line prints "Welcome To Java" to the screen.&lt;br&gt;
       println() is a method that prints the message and moves the cursor to the next line.&lt;/p&gt;

&lt;p&gt;Final Output when you run the program:&lt;br&gt;
       &lt;strong&gt;Welcome To Java&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Classes and Objects in Java</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Wed, 16 Apr 2025 14:23:29 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/classes-and-objects-in-java-55ia</link>
      <guid>https://dev.to/shrinidhi_s/classes-and-objects-in-java-55ia</guid>
      <description>&lt;p&gt;Lets discuss about class and object.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Class&lt;/u&gt;: &lt;br&gt;
         A class is a blueprint or template from which objects are created.&lt;br&gt;
         Class is Not a Real-World Entity.&lt;br&gt;
         Class Does Not Occupy Memory. Classes themselves do not occupy memory until an object is created from the class.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Object&lt;/u&gt;: &lt;br&gt;
         Objects represent actual real-world objects and are instances of classes. They include data (attributes) and behaviors (methods) associated with a particular class.&lt;/p&gt;

&lt;p&gt;A class defines the properties that objects of that class will have whereas an object has values for those properties.&lt;/p&gt;

&lt;p&gt;Example: Vehicle - truck, car, bus.&lt;br&gt;
In this example, vehicle is a class and truck is an object.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>java</category>
      <category>basic</category>
      <category>easy</category>
    </item>
    <item>
      <title>JVM, JDK &amp; JRE</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Tue, 15 Apr 2025 12:28:18 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/jvm-jdk-jre-jk4</link>
      <guid>https://dev.to/shrinidhi_s/jvm-jdk-jre-jk4</guid>
      <description>&lt;p&gt;&lt;u&gt;JVM-Java Virtual Machine&lt;/u&gt;&lt;br&gt;
  JVM is responsible for converting bytecode to machine-specific code(binary) and is necessary in both JDK and JRE. It is platform-dependent and performs many functions, including memory management and security. &lt;/p&gt;

&lt;p&gt;&lt;u&gt;JDK-Java Development Kit&lt;/u&gt; &lt;br&gt;
  JDK contains all the tools that are required to compile, debug, and run a program developed using the Java platform.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;JRE-Java Runtime Environment&lt;/u&gt;&lt;br&gt;
  JRE, is a set of software tools responsible for execution of the Java program or application on your system.&lt;/p&gt;

&lt;p&gt;Java has two levels of translations.&lt;br&gt;
After writing a program it has to be converted into binary. (computer understandable language 0s and 1s)&lt;br&gt;
For example, we write a code called first.&lt;br&gt;
In other programming languages like C or C++ it is directly converted into binary. But in java it is converted into .class file also known as byte code which is an intermediary file and then into binary.&lt;/p&gt;

&lt;p&gt;First.java(our code) --&amp;gt; First.class (byte code) --&amp;gt; Binary code.&lt;/p&gt;

&lt;p&gt;Why?&lt;br&gt;
  For providing high performance.&lt;br&gt;
  While changing into class file it checks for errors.&lt;/p&gt;

&lt;p&gt;JDK contains compiler which checks for errors. When a code is error-free it gets converted into .class file. The time taken for this process is called compilation time.&lt;/p&gt;

&lt;p&gt;JRE contains JVM which receives the .class file(byte code) and according to the Operating system present it converts the byte code into binary. The time taken for this process is called run time.&lt;/p&gt;

&lt;p&gt;Let's understand the difference between compiler and interpreter.&lt;br&gt;
A compiler translates source code into machine code before execution, while an interpreter translates and executes code line by line.&lt;br&gt;
An Interpreter takes single lines of a code.&lt;br&gt;
Compiler is faster than interpreter.&lt;/p&gt;

&lt;p&gt;To explain this simply, compiler is a whole translator while     intnterpreter is a line by line translator. &lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
    </item>
    <item>
      <title>Features of Java</title>
      <dc:creator>Shrinidhi S</dc:creator>
      <pubDate>Tue, 15 Apr 2025 09:33:55 +0000</pubDate>
      <link>https://dev.to/shrinidhi_s/features-of-java-4443</link>
      <guid>https://dev.to/shrinidhi_s/features-of-java-4443</guid>
      <description>&lt;p&gt;Java programming language offers many features that make it both efficient and effective. Here are some of the key features of Java:&lt;/p&gt;

&lt;p&gt;1.Simple&lt;br&gt;
    Java is a straightforward and easy to understand programming language.It has same grammer as C and C++.&lt;/p&gt;

&lt;p&gt;2.Platfrom Independent &lt;br&gt;
    The goal of Java developers’ was to create a language that is compatible with all platforms.A platform is the hardware or software environment in which a program runs.&lt;br&gt;
There are two types of platforms software-based and hardware-based. Java provides a software-based platform.&lt;br&gt;
Java code can be executed on multiple platforms, for example, Windows, Linux, Sun Solaris, Mac/OS, etc. &lt;/p&gt;

&lt;p&gt;3.Portable&lt;br&gt;
    The “write once, run anywhere” concept of Java makes it portable since it enables Java code to be turned into a platform-independent bytecode that can run on any device that has a Java Virtual Machine (JVM).It doesn't require any implementation.&lt;/p&gt;

&lt;p&gt;4.Secure&lt;br&gt;
    Java programs run inside a virtual machine, which adds an extra layer of protection.Additionally, it uses its own runtime environment called the Java Virtual Machine (JVM), which ensures the controlled execution of programs.  &lt;/p&gt;

&lt;p&gt;5.Multithreaded &lt;br&gt;
    One of the important features of Java programming language is multi-threading. Java supports multithreading, which allows multiple tasks to run at the same time.The main advantage of multi-threading is that it doesn't occupy memory for each thread. It shares a common memory area. &lt;/p&gt;

&lt;p&gt;6.Object-Oriented&lt;br&gt;
    Java is an object-oriented programming language. Object-oriented programming (OOPs) is a methodology that simplifies software development and maintenance by providing some rules. Everything in Java is an object.&lt;br&gt;
The object is a thing that may be used to symbolize any individual, location, or thing and can be set apart from others. Every object has a state and behavior that are connected to it.&lt;br&gt;&lt;br&gt;
A group of objects that share the same state and behavior is referred to as a class. &lt;/p&gt;

&lt;p&gt;7.Distributed &lt;br&gt;
    Java's networking capabilities make it well-suited for building distributed applications that involve multiple computers working together. &lt;/p&gt;

&lt;p&gt;8.High-performance&lt;br&gt;
    Java is faster than other traditional interpreted programming languages.It is still a little bit slower than a compiled language. Java is an interpreted language that is why it is slower than compiled languages, e.g., C, C++, etc.&lt;br&gt;
Compiled languages: A compiler translates the source code into machine code, which is then executed by the processor. &lt;br&gt;
Interpreted languages: An interpreter reads and executes the source code line by line. &lt;/p&gt;

</description>
      <category>java</category>
      <category>fullstack</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
