SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
To associate an event listener with a JButton component, you must use the with a JButton
component, you must use the method of the JButton class Select one: O a. addEventlistener. 0 b.
addAction21stener. O c. addButtonListener O d. addlListener Which of the following statements
about an interface is true? Select one: a An interface has methods and instance variables 0 b An
interface has methods but no instance vaniables o c. An interface has neither methods nor
instance variables o d An interface has both public and private methods o a Java generics enable
what desirable feature? l code reuse Il reduction of programming errors Ill increased program
speed Select one c I and iII 1:09 EN Ill and II
Solution
Answers
1. To associate an event listener with a JButton component, you must use the ________ method
of the JButton class
ans) b. addActionListener, this implements the action listener of the interface.
2. Which of the following statements about an interface is true?
ans) b. An interface has methods but no instance variables, variables in interface are by default
declared as public, static and final,
so you cannot call them instance variables.
3. Java generics enable what desirable feature?
ans) a. code resuse, generics can be reused.
4. Which Java generic programming technique requires the programmer to use casting to access
variables stored as Object types?
ans) c. III, inheritance is the generic technique which require the programmer to use casting to
access variables stored as Object types.

Weitere ähnliche Inhalte

Ähnlich wie To associate an event listener with a JButton component, you must.pdf

Diving into VS 2015 Day1
Diving into VS 2015 Day1Diving into VS 2015 Day1
Diving into VS 2015 Day1Akhil Mittal
 
1 Which component contains menusa. Menu button.b. Title bar.c.pdf
1 Which component contains menusa. Menu button.b. Title bar.c.pdf1 Which component contains menusa. Menu button.b. Title bar.c.pdf
1 Which component contains menusa. Menu button.b. Title bar.c.pdffashiondestinationld
 
Vb net xp_11
Vb net xp_11Vb net xp_11
Vb net xp_11Niit Care
 
Advanced java programming
Advanced java programmingAdvanced java programming
Advanced java programmingKaviya452563
 
Microsoft MCSD.NET 70-481 it examen dumps
Microsoft MCSD.NET 70-481 it examen dumpsMicrosoft MCSD.NET 70-481 it examen dumps
Microsoft MCSD.NET 70-481 it examen dumpslilylucy
 
ISTQB Foundation level Sample Paper - Part 3
ISTQB Foundation level Sample Paper - Part 3 ISTQB Foundation level Sample Paper - Part 3
ISTQB Foundation level Sample Paper - Part 3 Parul Chotalia
 
Systematic error management - we ported rudder to zio
Systematic error management - we ported rudder to zioSystematic error management - we ported rudder to zio
Systematic error management - we ported rudder to ziofanf42
 
What is the container for top level menu items Select one a menu ba.docx
 What is the container for top level menu items Select one a menu ba.docx What is the container for top level menu items Select one a menu ba.docx
What is the container for top level menu items Select one a menu ba.docxajoy21
 
Synapseindia dotnet development chapter 14 event-driven programming
Synapseindia dotnet development  chapter 14 event-driven programmingSynapseindia dotnet development  chapter 14 event-driven programming
Synapseindia dotnet development chapter 14 event-driven programmingSynapseindiappsdevelopment
 
Guice tutorial
Guice tutorialGuice tutorial
Guice tutorialAnh Quân
 

Ähnlich wie To associate an event listener with a JButton component, you must.pdf (20)

Diving into VS 2015 Day1
Diving into VS 2015 Day1Diving into VS 2015 Day1
Diving into VS 2015 Day1
 
1 Which component contains menusa. Menu button.b. Title bar.c.pdf
1 Which component contains menusa. Menu button.b. Title bar.c.pdf1 Which component contains menusa. Menu button.b. Title bar.c.pdf
1 Which component contains menusa. Menu button.b. Title bar.c.pdf
 
Topic 5 chapter 6
Topic 5 chapter 6Topic 5 chapter 6
Topic 5 chapter 6
 
Vb net xp_11
Vb net xp_11Vb net xp_11
Vb net xp_11
 
Advanced java programming
Advanced java programmingAdvanced java programming
Advanced java programming
 
Bi0 112
Bi0 112Bi0 112
Bi0 112
 
Microsoft MCSD.NET 70-481 it examen dumps
Microsoft MCSD.NET 70-481 it examen dumpsMicrosoft MCSD.NET 70-481 it examen dumps
Microsoft MCSD.NET 70-481 it examen dumps
 
Topic 5 chapter 3
Topic 5 chapter 3Topic 5 chapter 3
Topic 5 chapter 3
 
Quiz2.2
Quiz2.2Quiz2.2
Quiz2.2
 
ISTQB Foundation level Sample Paper - Part 3
ISTQB Foundation level Sample Paper - Part 3 ISTQB Foundation level Sample Paper - Part 3
ISTQB Foundation level Sample Paper - Part 3
 
Systematic error management - we ported rudder to zio
Systematic error management - we ported rudder to zioSystematic error management - we ported rudder to zio
Systematic error management - we ported rudder to zio
 
What is the container for top level menu items Select one a menu ba.docx
 What is the container for top level menu items Select one a menu ba.docx What is the container for top level menu items Select one a menu ba.docx
What is the container for top level menu items Select one a menu ba.docx
 
Topic 5 chapter 2
Topic 5 chapter 2Topic 5 chapter 2
Topic 5 chapter 2
 
Synapseindia dotnet development chapter 14 event-driven programming
Synapseindia dotnet development  chapter 14 event-driven programmingSynapseindia dotnet development  chapter 14 event-driven programming
Synapseindia dotnet development chapter 14 event-driven programming
 
Topic 5 chapter 1
Topic 5 chapter 1Topic 5 chapter 1
Topic 5 chapter 1
 
Topic 5 chapter 5
Topic 5 chapter 5Topic 5 chapter 5
Topic 5 chapter 5
 
Google GIN
Google GINGoogle GIN
Google GIN
 
Guice tutorial
Guice tutorialGuice tutorial
Guice tutorial
 
C taw12 70
C taw12 70C taw12 70
C taw12 70
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 

Mehr von anshuanil26

This starts off with five points equally spaced along the x-axis. Thu.pdf
 This starts off with five points equally spaced along the x-axis. Thu.pdf This starts off with five points equally spaced along the x-axis. Thu.pdf
This starts off with five points equally spaced along the x-axis. Thu.pdfanshuanil26
 
This it an elaboration of Problem 14. Assume U is a unit vector. In w.pdf
 This it an elaboration of Problem 14. Assume U is a unit vector. In w.pdf This it an elaboration of Problem 14. Assume U is a unit vector. In w.pdf
This it an elaboration of Problem 14. Assume U is a unit vector. In w.pdfanshuanil26
 
The trial balances shown below are before and after adjustment for he.pdf
 The trial balances shown below are before and after adjustment for he.pdf The trial balances shown below are before and after adjustment for he.pdf
The trial balances shown below are before and after adjustment for he.pdfanshuanil26
 
The system was initially at rest in static equilibrium condition. If .pdf
 The system was initially at rest in static equilibrium condition. If .pdf The system was initially at rest in static equilibrium condition. If .pdf
The system was initially at rest in static equilibrium condition. If .pdfanshuanil26
 
The Thiessen polygons method is a common method used to interpolate p.pdf
 The Thiessen polygons method is a common method used to interpolate p.pdf The Thiessen polygons method is a common method used to interpolate p.pdf
The Thiessen polygons method is a common method used to interpolate p.pdfanshuanil26
 
The two-asset case The expected return for asset A is 6.25 with a s.pdf
 The two-asset case  The expected return for asset A is 6.25 with a s.pdf The two-asset case  The expected return for asset A is 6.25 with a s.pdf
The two-asset case The expected return for asset A is 6.25 with a s.pdfanshuanil26
 
This 4 pts The statement of cash flows OA OB Oc OD dlassifies a firm.pdf
 This 4 pts The statement of cash flows OA OB Oc OD dlassifies a firm.pdf This 4 pts The statement of cash flows OA OB Oc OD dlassifies a firm.pdf
This 4 pts The statement of cash flows OA OB Oc OD dlassifies a firm.pdfanshuanil26
 
There are41students in an elementary statistics class. On the basis.pdf
 There are41students in an elementary statistics class. On the basis.pdf There are41students in an elementary statistics class. On the basis.pdf
There are41students in an elementary statistics class. On the basis.pdfanshuanil26
 
There does not exist a fish that can live on land. Write an equ.pdf
 There does not exist a fish that can live on land. Write an equ.pdf There does not exist a fish that can live on land. Write an equ.pdf
There does not exist a fish that can live on land. Write an equ.pdfanshuanil26
 
There are twelve astrological signs Aries, Taurus, Gemini, Cancer, L.pdf
 There are twelve astrological signs Aries, Taurus, Gemini, Cancer, L.pdf There are twelve astrological signs Aries, Taurus, Gemini, Cancer, L.pdf
There are twelve astrological signs Aries, Taurus, Gemini, Cancer, L.pdfanshuanil26
 
There are two containers. One contains the letters BUMBLEBEES the oth.pdf
 There are two containers. One contains the letters BUMBLEBEES the oth.pdf There are two containers. One contains the letters BUMBLEBEES the oth.pdf
There are two containers. One contains the letters BUMBLEBEES the oth.pdfanshuanil26
 
There are several documentaries about the engineering disasters assoc.pdf
 There are several documentaries about the engineering disasters assoc.pdf There are several documentaries about the engineering disasters assoc.pdf
There are several documentaries about the engineering disasters assoc.pdfanshuanil26
 
There are many famous (more properly, infamous) examples of catastrop.pdf
 There are many famous (more properly, infamous) examples of catastrop.pdf There are many famous (more properly, infamous) examples of catastrop.pdf
There are many famous (more properly, infamous) examples of catastrop.pdfanshuanil26
 
The Warren truss is used to support a staircase. Determine the force .pdf
 The Warren truss is used to support a staircase. Determine the force .pdf The Warren truss is used to support a staircase. Determine the force .pdf
The Warren truss is used to support a staircase. Determine the force .pdfanshuanil26
 
The Wind Mountain archaeological site is located in southwestern Ne.pdf
 The Wind Mountain archaeological site is located in southwestern Ne.pdf The Wind Mountain archaeological site is located in southwestern Ne.pdf
The Wind Mountain archaeological site is located in southwestern Ne.pdfanshuanil26
 
The waiting time Y until delivery of a new component for an industr.pdf
 The waiting time Y until delivery of a new component for an industr.pdf The waiting time Y until delivery of a new component for an industr.pdf
The waiting time Y until delivery of a new component for an industr.pdfanshuanil26
 

Mehr von anshuanil26 (16)

This starts off with five points equally spaced along the x-axis. Thu.pdf
 This starts off with five points equally spaced along the x-axis. Thu.pdf This starts off with five points equally spaced along the x-axis. Thu.pdf
This starts off with five points equally spaced along the x-axis. Thu.pdf
 
This it an elaboration of Problem 14. Assume U is a unit vector. In w.pdf
 This it an elaboration of Problem 14. Assume U is a unit vector. In w.pdf This it an elaboration of Problem 14. Assume U is a unit vector. In w.pdf
This it an elaboration of Problem 14. Assume U is a unit vector. In w.pdf
 
The trial balances shown below are before and after adjustment for he.pdf
 The trial balances shown below are before and after adjustment for he.pdf The trial balances shown below are before and after adjustment for he.pdf
The trial balances shown below are before and after adjustment for he.pdf
 
The system was initially at rest in static equilibrium condition. If .pdf
 The system was initially at rest in static equilibrium condition. If .pdf The system was initially at rest in static equilibrium condition. If .pdf
The system was initially at rest in static equilibrium condition. If .pdf
 
The Thiessen polygons method is a common method used to interpolate p.pdf
 The Thiessen polygons method is a common method used to interpolate p.pdf The Thiessen polygons method is a common method used to interpolate p.pdf
The Thiessen polygons method is a common method used to interpolate p.pdf
 
The two-asset case The expected return for asset A is 6.25 with a s.pdf
 The two-asset case  The expected return for asset A is 6.25 with a s.pdf The two-asset case  The expected return for asset A is 6.25 with a s.pdf
The two-asset case The expected return for asset A is 6.25 with a s.pdf
 
This 4 pts The statement of cash flows OA OB Oc OD dlassifies a firm.pdf
 This 4 pts The statement of cash flows OA OB Oc OD dlassifies a firm.pdf This 4 pts The statement of cash flows OA OB Oc OD dlassifies a firm.pdf
This 4 pts The statement of cash flows OA OB Oc OD dlassifies a firm.pdf
 
There are41students in an elementary statistics class. On the basis.pdf
 There are41students in an elementary statistics class. On the basis.pdf There are41students in an elementary statistics class. On the basis.pdf
There are41students in an elementary statistics class. On the basis.pdf
 
There does not exist a fish that can live on land. Write an equ.pdf
 There does not exist a fish that can live on land. Write an equ.pdf There does not exist a fish that can live on land. Write an equ.pdf
There does not exist a fish that can live on land. Write an equ.pdf
 
There are twelve astrological signs Aries, Taurus, Gemini, Cancer, L.pdf
 There are twelve astrological signs Aries, Taurus, Gemini, Cancer, L.pdf There are twelve astrological signs Aries, Taurus, Gemini, Cancer, L.pdf
There are twelve astrological signs Aries, Taurus, Gemini, Cancer, L.pdf
 
There are two containers. One contains the letters BUMBLEBEES the oth.pdf
 There are two containers. One contains the letters BUMBLEBEES the oth.pdf There are two containers. One contains the letters BUMBLEBEES the oth.pdf
There are two containers. One contains the letters BUMBLEBEES the oth.pdf
 
There are several documentaries about the engineering disasters assoc.pdf
 There are several documentaries about the engineering disasters assoc.pdf There are several documentaries about the engineering disasters assoc.pdf
There are several documentaries about the engineering disasters assoc.pdf
 
There are many famous (more properly, infamous) examples of catastrop.pdf
 There are many famous (more properly, infamous) examples of catastrop.pdf There are many famous (more properly, infamous) examples of catastrop.pdf
There are many famous (more properly, infamous) examples of catastrop.pdf
 
The Warren truss is used to support a staircase. Determine the force .pdf
 The Warren truss is used to support a staircase. Determine the force .pdf The Warren truss is used to support a staircase. Determine the force .pdf
The Warren truss is used to support a staircase. Determine the force .pdf
 
The Wind Mountain archaeological site is located in southwestern Ne.pdf
 The Wind Mountain archaeological site is located in southwestern Ne.pdf The Wind Mountain archaeological site is located in southwestern Ne.pdf
The Wind Mountain archaeological site is located in southwestern Ne.pdf
 
The waiting time Y until delivery of a new component for an industr.pdf
 The waiting time Y until delivery of a new component for an industr.pdf The waiting time Y until delivery of a new component for an industr.pdf
The waiting time Y until delivery of a new component for an industr.pdf
 

Kürzlich hochgeladen

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Kürzlich hochgeladen (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

To associate an event listener with a JButton component, you must.pdf

  • 1. To associate an event listener with a JButton component, you must use the with a JButton component, you must use the method of the JButton class Select one: O a. addEventlistener. 0 b. addAction21stener. O c. addButtonListener O d. addlListener Which of the following statements about an interface is true? Select one: a An interface has methods and instance variables 0 b An interface has methods but no instance vaniables o c. An interface has neither methods nor instance variables o d An interface has both public and private methods o a Java generics enable what desirable feature? l code reuse Il reduction of programming errors Ill increased program speed Select one c I and iII 1:09 EN Ill and II Solution Answers 1. To associate an event listener with a JButton component, you must use the ________ method of the JButton class ans) b. addActionListener, this implements the action listener of the interface. 2. Which of the following statements about an interface is true? ans) b. An interface has methods but no instance variables, variables in interface are by default declared as public, static and final, so you cannot call them instance variables. 3. Java generics enable what desirable feature? ans) a. code resuse, generics can be reused. 4. Which Java generic programming technique requires the programmer to use casting to access variables stored as Object types? ans) c. III, inheritance is the generic technique which require the programmer to use casting to access variables stored as Object types.