

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


A field of method that is private can only be accessed by - ANSMethods that are apart of the same class. An object is often referred to as: - ANSAn instance of a class. Any outside entity that wants to access data in a class can do so by: - ANSUsing a method of that class. Execution of the program starts where? - ANSmain() How do other parts of your program interact with objects? - ANSBy interacting with an objects methods How is the constructor named? - ANSIt has the same name as the class it resides in. Name 5 data types - ANSBLASH: binary trees, linked lists, arrays, stacks, hash tables object.method(); is and example of - ANSInvoking a method for a specific object. The keyword "new" is used to do what? - ANSCreate a new object in Java.
To create an object in Java you must do two things: - ANS1. Use the keyword "new"