• About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
  • Disclaimer
EquickLearning - Learn Any Where
EquickLearning - Learn Any Where

Mega_Menu

  • ×
  • Home
  • Windows Server
    • All
    • Server
    • Activity Directory
    • Programming
      • ALL
      • JAVA
      • PHP
      • Installation
        • Windows Server
        • Laravel
        • JDk
        • Software
        • BOOKS
        • Buy Here
        • Pages
          • • About Us
          • • Contact Us
          • • Privacy Policy
          • • Disclaimer
          Search
          HomeAppletWhat is Applet in Java in Hindi | Applet Life Cycle in Hindi

          What is Applet in Java in Hindi | Applet Life Cycle in Hindi

          byAnuj Dwivedi0 -May 14, 2020

           Java Applet in Hindi -

          हैलो दोस्तों 🙏नमस्कार कैसे है आप सभी, मैं आशा करता हूँ की आप सभी अच्छे 😊 ही होंगे | तो दोस्तों मैं अ‍नुज द्विवेदी आज आप सबके के लिये एक बार फिर से बहुत ही Important और Java से Related Applet के बारे में पोस्ट लेकर आया हूँ |

          तो दोस्तो Applet Java में लिखा गया एक छोटा Program होता है। यह बहुत हि lightweight होता है पोस्ट को अंत तक पढे और जानिये What is Applet in Java in Hindi और साथ में Applet Life Cycle in Hindi के बारे में जाने।

           

          What is Applet in Java in Hindi
          What is Applet in Java in Hindi | Applet Life Cycle in Hindi

           

          What is Applet in Java in Hindi

          Applets internet application के लिये एक small java program होते हैं और एक applet जो कि remote server पर located है उसको internet के माध्यम से download करके java capable or enable browser का प्रयोग करके local computer पर execute कराया जाता है ।

          Applet application program की तरह बहुत सारे operation जैसे- arithmetic operation, display graphics, play sounds accept user i/p, create animation औरinteractive games बना सकते हैं।

          Applet को हम HTML document में in-build करते हैं और web-page के अंदर run करते हैं। Applet को run करना application create करने से ज्यादा complex होता है । Stand-alone program files को read और write कर सकते हैं लेकिन applet यह नही कर सकता है ।

          Applets केवल web-browser के अंदर execute or run हो सकता हैं। Applet program को execute कराने के लिये हम Java enable browser का use करते हैं ।

          Applet execution styles-


          Applet को execute कराने के दो तरीके होते हैं -
          1. By HTML file
          2. by applet viewer tool

          जब किसी system पर applet को run or test करने के लिये browser उपलब्ध नही होता है तो JDK हमे applet program को command prompt से execute कराने के लिये applet viewer tool provide करता है ।

          Steps to test & Run applet program-


          1. Build-ing an applet code(.java file)
          2. Creating an executable applet (.class file)
          3. Designing a web page using HTML tags
          4. Preparing tag
          5. In corporating applet tag into web page
          6. Creating HTML file
          7. Testing the applet code

          
          syntax- 
          
          import java.applet.Applet;
          class A extends Applet
          {
          ------------
          ------------
          }
          

          Applet life cycle-



          1.init()-

          init() method applet life cycle का first method होता है इस method में variable declaration
          object creation और variables को initialize करना आदि कार्य किया जाता है । यह method applet के execute होने पर केवल एक बार call होता है ।
          
          Syntax-
          void init()                 
          {                           
            statement                  
          } 
          

          2.start method()-

          यह method init() method के बाद call होता है यह applet के stop होने के बाद भी पुन: applet को restart करने पर call होता है ।

          start() method applet को inactive से active state में लाता है । यह method browser में applet के restores, maximized या एक tab से दुसरे tab पर move होने पर start method execute होता है ।
          
          Syntax-
          void start()
          {
          statement
          }
          

          3. paint() method-

          यह method java.awt.Graphics object को parameter के रुप में लेता हैं यह class applet windows में drawing करने के लिये method provide करता है । इस method में programmer applet code का main or code part लिखता है ।
          
          Syntax-
          void paint(Graphics g)
          {
          statement
          }
          

          Read these contents -

          1. CSE final Year Vidhya ?
          2. What is File System ?
          3. Directory Structure of Laravel in Hindi ?
          4. What is Network Security in Hindi ?
          5. What is Applet in Java in Hindi  ?
          6. What is OOPs Concept In Hindi ?
          7. Laravel Installation in Windows ?

          4. stop() method-

          stop() method applet के execute को stop करता है । यहाँ applet temporary inactive हो जाती है । applet life cycle में यह method कई बार call होता है । जब applet को minimize or browser में एक tab से दुसरे tab में move करते है तब stop method execute होता है ।
          
          Syntax-
          void stop()
          {
          statement
          }

          5.destroy method-

          destroy() method applet life cycle का सबसे last method होता है । जब applet windows को close किया जाता है तो destroy() method execute होता है । destroy() method memory से applet object को remove करता है ।
          
          Syntax-
          public void destroy()
          {
          statement
          }
          
          Notes-

          1) जब applet execute होती है तब method execution sequence इस प्रकार होता है-



          1. init()
          2. start()
          3. paint()
          2) जब applet close होती है तब method execution sequence इस प्रकार होता है-




          1. stop()
          2. destroy()

          Commonly use functions of Graphics class/main methods of Graphics class-

          1)public void drawString(String str,int x,int y) - is used to draw specify string.

          2)public void drawRect(int x,int y,int width,int height) - draw a rectangle with the
          specified width & height.

          3)public void fillRect(int x,int y,int width,int height) - is used to fill rectangle with the default color and specified width and height.

          Ex- g.setColor(Color.red);
          g.fillRect(10,50,100,100);

          4)public void drawOval(int x,int y,int width,int height) - is used to draw ovalwith the
          specified width and height.

          5)public void fillOval(int x,int y,int width,int height) - is used to fill oval with default
          color and specified with width and height.

          6)public void drawLine(int x1,int y1,int x2,int y2) - to draw line between the point(x1,y1)
          and (x2,y2).

          7)public boolean drawImage(Image img, int x,int y,ImageObserver observer) - is used to draw
          specified image.

          8)public boolean drawArc(int x,int y, int width, int height, int startangle, int arcangle) -
          is used to draw a circular arc or elliptical arc.

          9)public void setColor(Color c) - is used to set the graphics current color to specified
          color.

          10)public void setFont(Font f) - setFont("Arial",BOLD,20)

          Final Word


          तो दोस्तों आज मैंने आप को बताया की What is Applet in Java in Hindi है और  Applet Life Cycle in Hindi क्या है|

          तो दोस्तों मै आशा करता हूँ की आपको ये Post पसंद आई होगी। अगर आप को ये Post थोड़ी सी भी Useful/Helpful लगी हो Please Follow and Comment जरुर करे और इसे अपने दोस्तों के साथ Share करे! धन्यबाद|
          • Newer

          • Older

          Posted by Anuj Dwivedi

          https://equick-learning.blogspot.com/
          I am Anuj Dwivedi from UP. I am Founder of equicklearning.com . I'm a student of Computer Science and Engineering. I am a full stack developer Currently i'm working on JAVA Based Web Application, Web technology like JSP, SWING, HTML, CSS, JQUERY and also Android App Development.

          You might like

          Show more

          What is Applet in Java in Hindi | Applet Life Cycle in Hindi

          May 14, 2020

          Post a Comment

          You are welcome to share your ideas with us in comments

          Post a Comment

          You are welcome to share your ideas with us in comments

          Follow Us

          • 1.3k
          • 30
          • 190
          • Popular
          • Recents
          • Comments

          Popular

          EquickLearning - How to set Java Environment or Path on Windows 10 in Hindi(विंडोज पर जावा का पाथ कैसे सेट करें हिंदी में )

          December 22, 2019

          Recents

          Havard University Courses and Certification | Top 9 Havard University and Microsoft Courses

          October 19, 2020

          What is Network Topology in Hindi? | How many types of Network Topology?

          October 10, 2020

          What are the different types of Cables in Hindi?

          October 10, 2020

          Comments

          Anonymous

          Very useful contents bro and helpful thank you 👍...

          Anuj Dwivedi

          Thank you

          Sudhanshu Gupta

          Finally Smajh me aaya👏 Vidya me to kuch aur hi La...

          Categories

          • COMPUTER(7)
          • Cryptography(1)
          • DBMS(4)
          • INTERNET(5)
          • JAVA(8)
          • Programming(9)
          • Security(13)
          • Windows_Server(25)
          EquickLearning - Learn Any Where

          About Us

          मैंने इस site को लिखा और develop किया है ताकि students computer science से संबंधित तकनीकों को आसानी से सीख सकें। मैं विभिन्न तकनीकों पर आसान information प्रदान करने के लिए committed हूं। मुझे उम्मीद है कि यह आपकी बहुत मदद करेगा। - Anuj Dwivedi

          DMCA.com Protection Status
          All Right Reserved Copyright © Equicklearning.Com
          • About
          • Contact Us
          • Privacy Policy
          • Terms & Conditions
          • Disclaimer

          Contact Form