All Computer Science Resources
Example Questions
Example Question #31 : Program Implementation
What keyword is needed to create a class variable?
Possible Answers:
abstract
private
static
final
Correct answer:
static
Explanation:
The static modifier makes the variable visible to the entire class, including the various methods in the program. Final just means that variable shall not be changed through out the code. Private just changes visibility not accessibility. For a variable to be abstract, the method itself would need to abstract and that doesn't really influence accessibility.
David
Certified Tutor
Certified Tutor
The University of Texas at El Paso, Bachelor of Science, Materials Engineering.
Yoonsik
Certified Tutor
Certified Tutor
Seoul National University, Bachelor of Science, Physics. University of Pennsylvania, Doctor of Philosophy, Atomic and Molecul...
All Computer Science Resources
Computer Science Tutors in Top Cities:
Atlanta Computer Science Tutors, Austin Computer Science Tutors, Boston Computer Science Tutors, Chicago Computer Science Tutors, Dallas Fort Worth Computer Science Tutors, Denver Computer Science Tutors, Houston Computer Science Tutors, Kansas City Computer Science Tutors, Los Angeles Computer Science Tutors, Miami Computer Science Tutors, New York City Computer Science Tutors, Philadelphia Computer Science Tutors, Phoenix Computer Science Tutors, San Diego Computer Science Tutors, San Francisco-Bay Area Computer Science Tutors, Seattle Computer Science Tutors, St. Louis Computer Science Tutors, Tucson Computer Science Tutors, Washington DC Computer Science Tutors
Popular Courses & Classes
GRE Courses & Classes in Los Angeles, GMAT Courses & Classes in Miami, SAT Courses & Classes in Atlanta, ACT Courses & Classes in Washington DC, SAT Courses & Classes in Phoenix, MCAT Courses & Classes in Atlanta, Spanish Courses & Classes in Washington DC, GRE Courses & Classes in Houston, MCAT Courses & Classes in Philadelphia, ACT Courses & Classes in Denver