SlideShare a Scribd company logo
1 of 1
Java
1a)What is information hiding? What is encapsulation? How does Java support these concepts?
b)Explain the public and private sections of the class.
c)Describe the role of the constructor.
d)If a class provides no constructor, what is the result?
e)Explain the uses of this in Java.
f)A class provides a single private constructor. Why would this be useful?

More Related Content

More from BenjaminIjsDaviesq

issignment Chapter of Managing Your Cast and Savings 3- Deposit inwura.docx
issignment Chapter of Managing Your Cast and Savings 3- Deposit inwura.docxissignment Chapter of Managing Your Cast and Savings 3- Deposit inwura.docx
issignment Chapter of Managing Your Cast and Savings 3- Deposit inwura.docx
BenjaminIjsDaviesq
 
just draw it by hand Exercise 7 Consider a University Database System.docx
just draw it by hand  Exercise 7 Consider a University Database System.docxjust draw it by hand  Exercise 7 Consider a University Database System.docx
just draw it by hand Exercise 7 Consider a University Database System.docx
BenjaminIjsDaviesq
 

More from BenjaminIjsDaviesq (17)

It the price is $1 Claudia will buy 150 units Peter will buy 75 units.docx
It the price is $1 Claudia will buy 150 units Peter will buy 75 units.docxIt the price is $1 Claudia will buy 150 units Peter will buy 75 units.docx
It the price is $1 Claudia will buy 150 units Peter will buy 75 units.docx
 
It is very difficult for rivals to outcompete a company that has a big.docx
It is very difficult for rivals to outcompete a company that has a big.docxIt is very difficult for rivals to outcompete a company that has a big.docx
It is very difficult for rivals to outcompete a company that has a big.docx
 
It is eight hours later- and Sarah is now in labor and has been admitt.docx
It is eight hours later- and Sarah is now in labor and has been admitt.docxIt is eight hours later- and Sarah is now in labor and has been admitt.docx
It is eight hours later- and Sarah is now in labor and has been admitt.docx
 
It is believed that 27- of all students in the United States applying.docx
It is believed that 27- of all students in the United States applying.docxIt is believed that 27- of all students in the United States applying.docx
It is believed that 27- of all students in the United States applying.docx
 
issignment Chapter of Managing Your Cast and Savings 3- Deposit inwura.docx
issignment Chapter of Managing Your Cast and Savings 3- Deposit inwura.docxissignment Chapter of Managing Your Cast and Savings 3- Deposit inwura.docx
issignment Chapter of Managing Your Cast and Savings 3- Deposit inwura.docx
 
Is the virus in this lab in a lytic or lysogenic cycle- Lysogenic.docx
Is the virus in this lab in a lytic or lysogenic cycle-     Lysogenic.docxIs the virus in this lab in a lytic or lysogenic cycle-     Lysogenic.docx
Is the virus in this lab in a lytic or lysogenic cycle- Lysogenic.docx
 
Juan screams at the TV as his favorite foortbali team falls to score a.docx
Juan screams at the TV as his favorite foortbali team falls to score a.docxJuan screams at the TV as his favorite foortbali team falls to score a.docx
Juan screams at the TV as his favorite foortbali team falls to score a.docx
 
Keep in mind the location of the nerve fibers in this picture- What im.docx
Keep in mind the location of the nerve fibers in this picture- What im.docxKeep in mind the location of the nerve fibers in this picture- What im.docx
Keep in mind the location of the nerve fibers in this picture- What im.docx
 
just draw it by hand Exercise 7 Consider a University Database System.docx
just draw it by hand  Exercise 7 Consider a University Database System.docxjust draw it by hand  Exercise 7 Consider a University Database System.docx
just draw it by hand Exercise 7 Consider a University Database System.docx
 
Jump to level 1 numbers -(15-37-73-87-16-56-39-96-34) Partition(number.docx
Jump to level 1 numbers -(15-37-73-87-16-56-39-96-34) Partition(number.docxJump to level 1 numbers -(15-37-73-87-16-56-39-96-34) Partition(number.docx
Jump to level 1 numbers -(15-37-73-87-16-56-39-96-34) Partition(number.docx
 
Julian also complains of right arm pain and an inability to move his e.docx
Julian also complains of right arm pain and an inability to move his e.docxJulian also complains of right arm pain and an inability to move his e.docx
Julian also complains of right arm pain and an inability to move his e.docx
 
Julia Dumars is a licensed CPA- During the first month of operations o (2).docx
Julia Dumars is a licensed CPA- During the first month of operations o (2).docxJulia Dumars is a licensed CPA- During the first month of operations o (2).docx
Julia Dumars is a licensed CPA- During the first month of operations o (2).docx
 
Jse interval notation to write the solution set of the inequality belo.docx
Jse interval notation to write the solution set of the inequality belo.docxJse interval notation to write the solution set of the inequality belo.docx
Jse interval notation to write the solution set of the inequality belo.docx
 
Journalize Transactions Four transactions that occurred during June ar.docx
Journalize Transactions Four transactions that occurred during June ar.docxJournalize Transactions Four transactions that occurred during June ar.docx
Journalize Transactions Four transactions that occurred during June ar.docx
 
John Doe- CEO of Doe Construction- has developed the tasks- durations-.docx
John Doe- CEO of Doe Construction- has developed the tasks- durations-.docxJohn Doe- CEO of Doe Construction- has developed the tasks- durations-.docx
John Doe- CEO of Doe Construction- has developed the tasks- durations-.docx
 
John- CPA- is planning the audit engagement of Nicole Industries- An u.docx
John- CPA- is planning the audit engagement of Nicole Industries- An u.docxJohn- CPA- is planning the audit engagement of Nicole Industries- An u.docx
John- CPA- is planning the audit engagement of Nicole Industries- An u.docx
 
John Harris- M- D-- reported the following trial balance as of Septemb.docx
John Harris- M- D-- reported the following trial balance as of Septemb.docxJohn Harris- M- D-- reported the following trial balance as of Septemb.docx
John Harris- M- D-- reported the following trial balance as of Septemb.docx
 

Recently uploaded

Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
Elizabeth Walsh
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
cupulin
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
PUBLIC FINANCE AND TAXATION COURSE-1-4.pdf
PUBLIC FINANCE AND TAXATION COURSE-1-4.pdfPUBLIC FINANCE AND TAXATION COURSE-1-4.pdf
PUBLIC FINANCE AND TAXATION COURSE-1-4.pdf
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 

Java 1a)What is information hiding- What is encapsulation- How does Ja.docx

  • 1. Java 1a)What is information hiding? What is encapsulation? How does Java support these concepts? b)Explain the public and private sections of the class. c)Describe the role of the constructor. d)If a class provides no constructor, what is the result? e)Explain the uses of this in Java. f)A class provides a single private constructor. Why would this be useful?