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

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 

Dernier (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 

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