SlideShare uma empresa Scribd logo
1 de 8
Baixar para ler offline
FirstRanker.com || FirstRanker's Choice 1



      Code No: R05220402                      R05                      Set No. 2
                 II B.Tech II Semester Examinations,December 2010
                              OOPS THROUGH JAVA
                Common to IT, E.COMP.E, ETM, CSE, ECE, CSSE
      Time: 3 hours                                           Max Marks: 80
                            Answer any FIVE Questions
                          All Questions carry equal marks



         1. Write short notes on Observable class and Random class.                       [8+8]

         2. (a) What is a constructor? What are its special properties?
            (b) How do we invoke a constructor?
             (c) What are objects? How are they created from a class?                  [6+4+6]

         3. Differentiate following with suitable examples:

             (a) Frame, JFrame
            (b) Applet, JApplet
             (c) Menu, Jmenu.                                                          [5+5+6]

         4. (a) With the help of an example, explain multithreading by extending thread
                class.
            (b) Implementing Runnable interface and extending thread, which method you
                prefer for multithreading and why.                              [10+6]

         5. Create an interface with at least one method, and implement that interface by
            defining an inner class within a method, which returns a reference to your interface.
                                                                                            [16]

         6. (a) Write a short notes o the following graphics functions
                   i. paint( )
                  ii. repaint( )
                 iii. update( )
            (b) Define Canvas. Write a java program which creates a canvas and displays an
                image on it.                                                        [9+7]

         7. Explain the following methods of Object class.

             (a) clone()
            (b) finalize()
             (c) hashCode()
            (d) wait(long milliseconds)
             (e) getClass().                                                                [16]

         8. Write a program that will compute the following series:
FirstRanker.com || FirstRanker's Choice 1
                                                  1
FirstRanker.com || FirstRanker's Choice 2



      Code No: R05220402                     R05         Set No. 2
            (a) 1/1 + 1/2 + 1/3 + ...... + 1/n
                               2
            (b) 1/1 + 1/2 + 1/2 + ....... + 1/2n .              [8+8]




FirstRanker.com || FirstRanker's Choice 2
                                                     2
FirstRanker.com || FirstRanker's Choice 3



      Code No: R05220402                      R05                      Set No. 4
                 II B.Tech II Semester Examinations,December 2010
                              OOPS THROUGH JAVA
                Common to IT, E.COMP.E, ETM, CSE, ECE, CSSE
      Time: 3 hours                                           Max Marks: 80
                            Answer any FIVE Questions
                          All Questions carry equal marks



         1. (a) Write a short notes o the following graphics functions
                   i. paint( )
                  ii. repaint( )
                 iii. update( )
            (b) Define Canvas. Write a java program which creates a canvas and displays an
                image on it.                                                        [9+7]

         2. Write a program that will compute the following series:

            (a) 1/1 + 1/2 + 1/3 + ...... + 1/n
                               2
            (b) 1/1 + 1/2 + 1/2 + ....... + 1/2n .                                        [8+8]

         3. (a) What is a constructor? What are its special properties?
            (b) How do we invoke a constructor?
             (c) What are objects? How are they created from a class?                  [6+4+6]

         4. Create an interface with at least one method, and implement that interface by
            defining an inner class within a method, which returns a reference to your interface.
                                                                                            [16]

         5. Differentiate following with suitable examples:

             (a) Frame, JFrame
            (b) Applet, JApplet
             (c) Menu, Jmenu.                                                          [5+5+6]

         6. Write short notes on Observable class and Random class.                       [8+8]

         7. (a) With the help of an example, explain multithreading by extending thread
                class.
            (b) Implementing Runnable interface and extending thread, which method you
                prefer for multithreading and why.                              [10+6]

         8. Explain the following methods of Object class.

             (a) clone()
            (b) finalize()
FirstRanker.com || FirstRanker's Choice 3
                                                     3
FirstRanker.com || FirstRanker's Choice 4



      Code No: R05220402                    R05   Set No. 4
             (c) hashCode()
            (d) wait(long milliseconds)
             (e) getClass().                             [16]




FirstRanker.com || FirstRanker's Choice 4
                                             4
FirstRanker.com || FirstRanker's Choice 5



      Code No: R05220402                      R05                      Set No. 1
                 II B.Tech II Semester Examinations,December 2010
                              OOPS THROUGH JAVA
                Common to IT, E.COMP.E, ETM, CSE, ECE, CSSE
      Time: 3 hours                                           Max Marks: 80
                            Answer any FIVE Questions
                          All Questions carry equal marks



         1. (a) Write a short notes o the following graphics functions
                   i. paint( )
                  ii. repaint( )
                 iii. update( )
            (b) Define Canvas. Write a java program which creates a canvas and displays an
                image on it.                                                        [9+7]

         2. (a) With the help of an example, explain multithreading by extending thread
                class.
            (b) Implementing Runnable interface and extending thread, which method you
                prefer for multithreading and why.                              [10+6]

         3. (a) What is a constructor? What are its special properties?
            (b) How do we invoke a constructor?
             (c) What are objects? How are they created from a class?                  [6+4+6]

         4. Explain the following methods of Object class.

             (a) clone()
            (b) finalize()
             (c) hashCode()
            (d) wait(long milliseconds)
             (e) getClass().                                                                [16]

         5. Write short notes on Observable class and Random class.                       [8+8]

         6. Differentiate following with suitable examples:

             (a) Frame, JFrame
            (b) Applet, JApplet
             (c) Menu, Jmenu.                                                          [5+5+6]

         7. Create an interface with at least one method, and implement that interface by
            defining an inner class within a method, which returns a reference to your interface.
                                                                                            [16]

         8. Write a program that will compute the following series:
FirstRanker.com || FirstRanker's Choice 5
                                                  5
FirstRanker.com || FirstRanker's Choice 6



      Code No: R05220402                     R05         Set No. 1
            (a) 1/1 + 1/2 + 1/3 + ...... + 1/n
                               2
            (b) 1/1 + 1/2 + 1/2 + ....... + 1/2n .              [8+8]




FirstRanker.com || FirstRanker's Choice 6
                                                     6
FirstRanker.com || FirstRanker's Choice 7



      Code No: R05220402                      R05                      Set No. 3
                 II B.Tech II Semester Examinations,December 2010
                              OOPS THROUGH JAVA
                Common to IT, E.COMP.E, ETM, CSE, ECE, CSSE
      Time: 3 hours                                           Max Marks: 80
                            Answer any FIVE Questions
                          All Questions carry equal marks



         1. (a) What is a constructor? What are its special properties?
            (b) How do we invoke a constructor?
             (c) What are objects? How are they created from a class?                  [6+4+6]

         2. Create an interface with at least one method, and implement that interface by
            defining an inner class within a method, which returns a reference to your interface.
                                                                                            [16]

         3. (a) Write a short notes o the following graphics functions
                   i. paint( )
                  ii. repaint( )
                 iii. update( )
            (b) Define Canvas. Write a java program which creates a canvas and displays an
                image on it.                                                        [9+7]

         4. Write short notes on Observable class and Random class.                       [8+8]

         5. Explain the following methods of Object class.

             (a) clone()
            (b) finalize()
             (c) hashCode()
            (d) wait(long milliseconds)
             (e) getClass().                                                                [16]

         6. Write a program that will compute the following series:

            (a) 1/1 + 1/2 + 1/3 + ...... + 1/n
                               2
            (b) 1/1 + 1/2 + 1/2 + ....... + 1/2n .                                        [8+8]

         7. Differentiate following with suitable examples:

             (a) Frame, JFrame
            (b) Applet, JApplet
             (c) Menu, Jmenu.                                                          [5+5+6]


FirstRanker.com || FirstRanker's Choice 7
                                                     7
FirstRanker.com || FirstRanker's Choice 8



      Code No: R05220402                    R05                  Set No. 3
         8. (a) With the help of an example, explain multithreading by extending thread
                class.
            (b) Implementing Runnable interface and extending thread, which method you
                prefer for multithreading and why.                              [10+6]




FirstRanker.com || FirstRanker's Choice 8
                                              8

Mais conteúdo relacionado

Último

Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 

Último (20)

The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

R05220402 oopsthroughjav afr

  • 1. FirstRanker.com || FirstRanker's Choice 1 Code No: R05220402 R05 Set No. 2 II B.Tech II Semester Examinations,December 2010 OOPS THROUGH JAVA Common to IT, E.COMP.E, ETM, CSE, ECE, CSSE Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks 1. Write short notes on Observable class and Random class. [8+8] 2. (a) What is a constructor? What are its special properties? (b) How do we invoke a constructor? (c) What are objects? How are they created from a class? [6+4+6] 3. Differentiate following with suitable examples: (a) Frame, JFrame (b) Applet, JApplet (c) Menu, Jmenu. [5+5+6] 4. (a) With the help of an example, explain multithreading by extending thread class. (b) Implementing Runnable interface and extending thread, which method you prefer for multithreading and why. [10+6] 5. Create an interface with at least one method, and implement that interface by defining an inner class within a method, which returns a reference to your interface. [16] 6. (a) Write a short notes o the following graphics functions i. paint( ) ii. repaint( ) iii. update( ) (b) Define Canvas. Write a java program which creates a canvas and displays an image on it. [9+7] 7. Explain the following methods of Object class. (a) clone() (b) finalize() (c) hashCode() (d) wait(long milliseconds) (e) getClass(). [16] 8. Write a program that will compute the following series: FirstRanker.com || FirstRanker's Choice 1 1
  • 2. FirstRanker.com || FirstRanker's Choice 2 Code No: R05220402 R05 Set No. 2 (a) 1/1 + 1/2 + 1/3 + ...... + 1/n 2 (b) 1/1 + 1/2 + 1/2 + ....... + 1/2n . [8+8] FirstRanker.com || FirstRanker's Choice 2 2
  • 3. FirstRanker.com || FirstRanker's Choice 3 Code No: R05220402 R05 Set No. 4 II B.Tech II Semester Examinations,December 2010 OOPS THROUGH JAVA Common to IT, E.COMP.E, ETM, CSE, ECE, CSSE Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks 1. (a) Write a short notes o the following graphics functions i. paint( ) ii. repaint( ) iii. update( ) (b) Define Canvas. Write a java program which creates a canvas and displays an image on it. [9+7] 2. Write a program that will compute the following series: (a) 1/1 + 1/2 + 1/3 + ...... + 1/n 2 (b) 1/1 + 1/2 + 1/2 + ....... + 1/2n . [8+8] 3. (a) What is a constructor? What are its special properties? (b) How do we invoke a constructor? (c) What are objects? How are they created from a class? [6+4+6] 4. Create an interface with at least one method, and implement that interface by defining an inner class within a method, which returns a reference to your interface. [16] 5. Differentiate following with suitable examples: (a) Frame, JFrame (b) Applet, JApplet (c) Menu, Jmenu. [5+5+6] 6. Write short notes on Observable class and Random class. [8+8] 7. (a) With the help of an example, explain multithreading by extending thread class. (b) Implementing Runnable interface and extending thread, which method you prefer for multithreading and why. [10+6] 8. Explain the following methods of Object class. (a) clone() (b) finalize() FirstRanker.com || FirstRanker's Choice 3 3
  • 4. FirstRanker.com || FirstRanker's Choice 4 Code No: R05220402 R05 Set No. 4 (c) hashCode() (d) wait(long milliseconds) (e) getClass(). [16] FirstRanker.com || FirstRanker's Choice 4 4
  • 5. FirstRanker.com || FirstRanker's Choice 5 Code No: R05220402 R05 Set No. 1 II B.Tech II Semester Examinations,December 2010 OOPS THROUGH JAVA Common to IT, E.COMP.E, ETM, CSE, ECE, CSSE Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks 1. (a) Write a short notes o the following graphics functions i. paint( ) ii. repaint( ) iii. update( ) (b) Define Canvas. Write a java program which creates a canvas and displays an image on it. [9+7] 2. (a) With the help of an example, explain multithreading by extending thread class. (b) Implementing Runnable interface and extending thread, which method you prefer for multithreading and why. [10+6] 3. (a) What is a constructor? What are its special properties? (b) How do we invoke a constructor? (c) What are objects? How are they created from a class? [6+4+6] 4. Explain the following methods of Object class. (a) clone() (b) finalize() (c) hashCode() (d) wait(long milliseconds) (e) getClass(). [16] 5. Write short notes on Observable class and Random class. [8+8] 6. Differentiate following with suitable examples: (a) Frame, JFrame (b) Applet, JApplet (c) Menu, Jmenu. [5+5+6] 7. Create an interface with at least one method, and implement that interface by defining an inner class within a method, which returns a reference to your interface. [16] 8. Write a program that will compute the following series: FirstRanker.com || FirstRanker's Choice 5 5
  • 6. FirstRanker.com || FirstRanker's Choice 6 Code No: R05220402 R05 Set No. 1 (a) 1/1 + 1/2 + 1/3 + ...... + 1/n 2 (b) 1/1 + 1/2 + 1/2 + ....... + 1/2n . [8+8] FirstRanker.com || FirstRanker's Choice 6 6
  • 7. FirstRanker.com || FirstRanker's Choice 7 Code No: R05220402 R05 Set No. 3 II B.Tech II Semester Examinations,December 2010 OOPS THROUGH JAVA Common to IT, E.COMP.E, ETM, CSE, ECE, CSSE Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks 1. (a) What is a constructor? What are its special properties? (b) How do we invoke a constructor? (c) What are objects? How are they created from a class? [6+4+6] 2. Create an interface with at least one method, and implement that interface by defining an inner class within a method, which returns a reference to your interface. [16] 3. (a) Write a short notes o the following graphics functions i. paint( ) ii. repaint( ) iii. update( ) (b) Define Canvas. Write a java program which creates a canvas and displays an image on it. [9+7] 4. Write short notes on Observable class and Random class. [8+8] 5. Explain the following methods of Object class. (a) clone() (b) finalize() (c) hashCode() (d) wait(long milliseconds) (e) getClass(). [16] 6. Write a program that will compute the following series: (a) 1/1 + 1/2 + 1/3 + ...... + 1/n 2 (b) 1/1 + 1/2 + 1/2 + ....... + 1/2n . [8+8] 7. Differentiate following with suitable examples: (a) Frame, JFrame (b) Applet, JApplet (c) Menu, Jmenu. [5+5+6] FirstRanker.com || FirstRanker's Choice 7 7
  • 8. FirstRanker.com || FirstRanker's Choice 8 Code No: R05220402 R05 Set No. 3 8. (a) With the help of an example, explain multithreading by extending thread class. (b) Implementing Runnable interface and extending thread, which method you prefer for multithreading and why. [10+6] FirstRanker.com || FirstRanker's Choice 8 8