Java Syntax

Java Syntax In Hindi – Java program structure in Hindi

Java

Java Syntax In Hindi – Java program structure in Hindi – Java Programming Language Mai Java Ka Program Ko Likhne Se Pahle Java Syntax Yani Structure Ko Understand Karna Bahut Jaruri Hai Or Dekhne Wale Ki Java Methods In Hindi Kiya Hota Hain |

Also Read –What is Java in Hindi

Java Program Structure in Hindi

Java Mai Koi Bhi Program Ko Likhne Ke Liye Ek Structure Ki Jararut Hoti Yani Ke Koi Bhi Program Ko Likhne Ke Liye Structure Ke Rup Mai Likha Jata Hai Step By Step. Lekin Fir Bhi Ek Program Mai Kisi Ek Class Mai Hi main() Mehtod Ko Define Kar Sakte Hain |

Java Mai Har Ek Line Code Ko Likhne Ke Liye Ek class ki Jarurat Hoti Hai Yani Ke Har Line of Code Ek class Ke Under Hota Hai |

Java Ka Syntax Ko Understand Karne Se Pahle Hame Ye Understand Karna Hoga Ki Java Ek OOPs Yani (Object Oriented Programming ) Language Hai.

Sabse OOps Ko Understand Karte Hai Or Fir Java Syntax Ko Understand Karte Hai |

 Oops in C++ in Hindi

Features of Object Oriented Programming in Hindi

  • Class
  • Object
  • Data abstraction and encapsulation
  • Inheritance
  • Polymorphism

Niche Diye Gaye Java Object oriented Support ko bataya gya hai |

Class

Class ek user defined data type hai | ye C language mei structure ki tarah hi hota hai | lekin classes mei aap variable ke sath sath unse realted functions bhi bana sakte hai | jinhe aap bad mei objects ke duvara access kiya ja sakta hai |

Class Definition Syntax:

public class Class_name{
    // code 
}

Objects

Class ek user difined data type hai | Class type ke variables ko objects kaha jata hai |

object creation syntax:

 object_name = class_name;

Inheritance

Inheritance object oriented programming ka concept hai | Jisme ek code ko dusri jagah par istemal kiya ja sakta hai | ye code re-usability implement karta hai |

Java Syntax In Hindi

Ab Ham Main Method Ka Istemal Karte Ek Hello Word Program Ko Create Karne Wale Hai |

Example:

public class MyClass {
  public static void main(String[] args) {   // main() methods
    System.out.println("Hello World");
  }
}

Output:

Hello World

Ab Ham Upper Diye Gaye Code Ko Line By Line Understand Karne Wale Hai |

Java main() Method in Hindi

Aap Har Java Program Mai main() method Ko Jarur Dekhne Wale Hai or Ye Har Java Program Ke Liye Jaruri Hain |

public static void main(String[] args)

Aap Ye Samnjh Li Jiye Ki main() Method Ke Bad Hi Program Executed Hota Hain |

System.out.println() in Hindi

System.out.println() Ka Istemal Print Karne Ke Liye Hota Hain |

public static void main(String[] args){
   System.out.println("Hello World");
}

Output:

Hello World

Aapne Kiya Learn Kiya ?

Is Article Mai Aapne Java Syntax Ke Bare Mai Learn Kiya Hai Or Abhi Tak Keval Basic Par Focus Kiya Aage Ki Post Mai Ham Features of Java Ke Bare Mai Read Karne Wale Hai |

Yadi Aapne  HTML Full Course  And CSS Full Course And Python Full Course And PHP Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

Leave a Reply

Your email address will not be published. Required fields are marked *