java Polymorphism-hindi

Polymorphism एक ही रूप के अनेक रूप होना ही  polymorphism  कहलाता है। polymorphism य  (Greek) शब्द  है  poly और morph इन दो शब्दों को मिलकर बनाया गया है। polymorphism को Object Oriented Programming की महत्वपूर्ण विशेषताओं में से एक माना जाता है।  polymorphism  हमें अलग   तरीकों से एक ही कार्य करने की अनुमति देता है।  उदाहरण के लिए एक ही समय में…

Read More

java exception handling hindi

Introduction java में exception run time error  होता  है | exception एक ऐसी situation होती जो आपके रन होते हुए program को रोक देती है  | जैसे कि जितनी memory आपको program को execution होने के लिए चाहिए उतनी  memory आपके computer में यदि नहीं है तो आपके program का execution रुक जाएगा यह out of memory  exception…

Read More

Packages java example

java Packages यदि आप java library ध्यान से देखेंगे तो उसमें classes कि उनकी category के according अलगअलग packages में organize किया गया है|   built-in package :- lang, awt, javax, swing, net, io, util,  user defined package :- ये package userद्वारा defined किए जाते हैं। यदि आप उन classes को use करना चाहते हैं तो आपको packages  को import…

Read More

inheritance in java hindi

inheritance inheritance में  आपने कोई class  पहले से बना रखी है और इन class के कुछ ऐसे method है जो आपकी दूसरी class में भी काम आ सकते हैं। इन method को दोबारा लिखने की बजाय आप  पिछली  याने की पुरानी class में उन method को access  कर सकते हैं। ऐसा करने के लिए जो class methods…

Read More

Constructor in java hindi

Constructor Constructor  में आप object को declare  करने से पहले कुछ  task perform करना चाहते हैं। तो variable को initialize करके आप  constructor create करते हैं। object  को  use  करने से पहले जो जरूरी काम आप करना चाहते हैं वह सब आपस constructor  में कर सकते  हैं। उदाहरण के लिए आप जिस class  का  object create कर रहे हैं। उस के…

Read More

java this keyword hindi

java  में  Keywords या  Reserved words एक ऐसी  language के शब्द हैं जो किसी  internal process के लिए उपयोग किए जाते हैं या कुछ predefined actions को  represent करते हैं |  This keyword current object  को represent  करता है | current object का मतलब  currently आज जिस class में आप काम कर रहे हैं। उसे class  के object की…

Read More

Abstract class in Hindi

Abstract  क्लास का  कोई  ऑब्जेक्ट्स  नहीं  होता | जो सब क्लास  इसे  inherit करते  है | जब भी abstract क्लास क्रिएट करते हैं तब उसे किसी abstract मेथड की जरूरत नहीं होती । सभी  abstract क्लास यह inheritance में पार्टिसिपेट होते  है |  Abstract क्लास का ऑब्जेक्ट्स सीधे  नहीं  बनाया  जा सकता लेकिन  उसे अप्रत्यक्ष रूप से उपयोग कर सकते  है |  जावा के…

Read More

encapsulation in java hindi

Introduction  encapsulation को single unit के तहत data के wrapping up के रूप में defined किया गया है | An act of combining properties and methods related to the same object is known as encapsulation. encapsulation private और protected  access modifier को implement करता  है। Data encapsulation class के attributes और method को combine  करके रखता है…

Read More

switch statements in hindi

Introduction  switch statements  में switch keyword use करते  हुए  एक condition pass की जाती है और नीचे के cases दिए हुए होते हैं | switch statement एक multi-way branch statement है।  जिस case  से  condition match  कर जाती है वहीं  case execute  हो जाते हैं  जैसे कि अनेक  variable की value 3 है तो  तीसरे  case  के  statements execute  होंगे।…

Read More

if – else statements in java in hindi

Introduction if – else statements भी  if statements  किस तरह होते हैं | लेकिन यह  if – else statements में आप  condition  पास होने पर भी कुछ  statement  को execute करवा  सकते  है | syntax for If – else statements  if (condition) { first statement } else { second statement } program  int a = 8…

Read More