Image
AI in 2025: What's New and What's Next | Latest AI Developments AI in 2025: What's New and What's Next Published: May 2025 The year 2025 has brought remarkable advancements in artificial intelligence, with major tech companies pushing the boundaries of what AI can achieve. From more human-like conversational agents to revolutionary content creation tools, let's explore the current state of AI and what the future holds. 1. ChatGPT-5: The Most Advanced Conversational AI Yet OpenAI's ChatGPT-5 represents a quantum leap in conversational AI capabilities: Near-human understanding of context and nuance in conversations Multi-modal interactions combining text, voice, and visual inputs seamlessly Emotional intelligence that detects and adapts to user sentiment Real-time learning that personalizes interactions without compromising privacy ...

What is variable in java | Static | Non Static |local Variable in java

 What is variable?

Variable is a name given to a memory location for storing value.
Variable are having two parts
              1. Declaration
              2. Initialisation
1.Declaration
 Creating a variable is called declaration.
Syntax:
        Datatype Variable name;
    Example: 
                     byte a;
                    int a;
Initialisation:
  Providing valuable to a variable is called initialisation.
Example: 
                    b = 5;
                    c= 9;
First we have to declare a variable after that we can initialise
In java there are three types of variable
    a.   Static Variable
    b.   Non static variable
    c.    Local variable

a.  Static Variable

It is a variable where value doesn't varies from object to object.
It share single copy with every object.
It declared inside of a class outside of a method with static keyword.
Example:
     class F
{
      static int x = 10;
public static void main(String args[])
{
}
}
The value of a static variable get stored in class area.
It is not mandatory to initialise a static variable.
If we are not providing any value to our static variable, JVM will provide default value to them.
We are create 'n' number of static variable in class.
Accessing of Static variable

We can access a static variable by three ways

1 . Directly     2. By Class name       3. By object reference



Comments

Popular posts from this blog

How to download youtube video in your gallery

All Java Keywords: Your Complete Guide to Understanding Every Essential Java Keyword

Java Complete Syllabus