Students
Teachers & SchoolsStudents
Teachers & SchoolsAP Computer Science: Classes and Objects Drill 3, Problem 5. Which of the following is not an object?
AP | AP Computer Science |
AP Computer Science | Classes and Objects |
Computer Science | AP Computer Science |
Language | English Language |
Object-Oriented Program Design | Program and Class Design |
Test Prep | AP Computer Science |
following is not an object In case we get year
ok and hear your potential answers Okay where we where
we live think right again We go back to the
differences between primitive data type can an object classes and
primitive types are not objects And when we talk about
primitive types don't mean grandpa hunt and peck methods in
java There eight primitive data types Remember imagers which store
the whole Numbers in 32 bits of computer memory In
practical terms that means a number of a positive or
negative value of around two point one Four billion with
a b plenty for most uses but its whole numbers
on leah's faras energies are concerned A long is just
like an imager But using sixty four bits of memory
that amount of space could represent a value of over
nine Quintillion again the whole numbers only and if along
Is a longer imager Well you might guess that a
short would be a shorter in inger lever and you'd
be exactly right there you get just sixteen bits to
do your bidding resulting in numbers up to greater than
about thirty two thousand a bite is even shorter than
that eight bits sign that gives you a maximum value
of one hundred twenty seven These smaller data types can
be used to save space in situations where you need
to start a lot of smaller values William data types
are very simple and store only a true or false
value Char stores a single sixteen unicode character or here
meaning practically any alfa numerical punctuation mark symbol or foreign
language character and floats and doubles are floating point values
Floating point values aren't quite exact representations of real numbers
They're more like an approximation but allow you to get
too deep with decimal places good for some things but
when precision is required such as one working with money
use energy instead So far five given declarations which is
not an object alvin j equals new album yet we're
creating a new object of the album class and it's
Called j well this one's an object so it's not
our answer by the way in sync what about backstreet
her and seeing had a couple hits but justin timberlake
was carrying that whole outfit like paul mccartney All right
well string k equals yada yada Well this too is
an object Drinks aren't a primitive data type Their collection
of char data type in array with a few methods
tagging along totally an object during l equals yeah same
thing here drink in equal j get name l that's
an andre too and that leaves into em and as
we know it are not objects their primitive data type
so it leaves us with just option d that's the
answer and a newfound respect for backstreet fact Three back 00:03:07.53 --> [endTime] all right No