1/24
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
compiled language
(java and c++) languages that are converted into bytecode before running
interpreted language
(python) read line by line while being ran
primitive types
thing like int, boolean
object types
things like string, linked list
are strings mutable
they are imutable
string types
charAt() .equals() .upperCase
public methods
can be used in any class
private methods
can only be used in the class its created in
void methods
does not return anything
non void method
has to return a value
when to use array list
when you need to acess random indeces and are mainly adding things to the beggining and end of the list (takes less memory)
when to use linked list
not good for random indexing but faster at inserting and removing elements at the beginning and middle of the list
benefits of compiled language
it runs faster because it is getting compiled but it takes longer to develop and debug
benefits of interpretive language
easier to work through and debug but will run slower
.this meaning
s a keyword that acts as a reference to the current object instance within a class
abstract classes
can contain abstract methods and act as a base or template for other methods
-cant make any objects in this class
abstract methods
-don’t need any parameters
method overridding
taking a method from another class maybe the (master one or wtv) but changing what the return will be based on what we want to do (meow)
method overloading
having methods with the same name but dif parameters if one gets chosen over the other ones its overloaded
how to get an inherited class
public class two extends one {
(it’ll now have access to all the info from the parent class)
abstraction
the concept of hiding all the complex details and only showing important aspects of a method
encapsulation
hiding certain parts of class for security using like private and can only be accessed through getters and setters
what happens if the catch block doesn’t work
the exception is not caught and the code will crash and the rest will be skipped
what happens if you try to read a file that doesnt exist
FileNotFoundException
will be thrown