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

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 

Último (20)

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Destaque

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
 

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