SlideShare une entreprise Scribd logo
1  sur  8
Télécharger pour lire hors ligne
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

Contenu connexe

Dernier

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 

Dernier (20)

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 

En vedette

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 HubspotMarius Sescu
 
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 ChatGPTExpeed Software
 
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 EngineeringsPixeldarts
 
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 HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 

En vedette (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