Definition 1 of 77
When you inherit a method from a parent and you create a method with the same name and
signature.
What is the JRE?
What is Method Overriding?
What is the 'Scanner' class used for?
What does the "Finally" keyword do?
Term 2 of 77
What is an Algorithm?
Super class is the class that is extended by another class.
For example, Class A extends Class B. Class B is the super class because class A extends
from B. Class is A is the subclass.
Arrays are used to store multiple values in a single variable
Is a step by step procedure for calculations. It is used for calculation, data processing and
automated reasoning.
Java is easy to learn, and platform independent. Java code can be written once and can be
run on any system or OS.
,Term 3 of 77
What is the difference between "if" and "switch" statements?
if condition is true then execute some statement. Else, execute something else.
Is used to format and structure the document. For example, html is used to structure web
documents.
If statement can check for multiple conditions. Switch statement contains cases which only
match the value.
Method has a return type, can have any name and only trigger when being called explicitly.
A constructor doesn't have a return type, can only have the same name as the class name
and is triggered when an instance of a class is being created.
Term 4 of 77
Describe keyword New
refer to variables or methods that belong to the class instead of the instance of the class.
information that is hiding because is irrelevant to the user. For example: an uBer app.//Back
end
Map stores item in key - value pair. Key cannot be duplicate.
used to create new instance of a class.
,Term 5 of 77
Polymorphism
Inheritance enables new objects to take on the properties of existing objects by using the
keyword "extends". For example, you can create a class "Dog extends animal" meaning that
Dog has all the properties of an animal.
JVM is Java Virtual Machine - allow Java programs to run on any device or operating system.
Different system has different version of JVM.
Super class is the class that is extended by another class.
For example, Class A extends Class B. Class B is the super class because class A extends
from B. Class is A is the subclass.
Generally, the ability to appear in many forms. In object-oriented programming,
polymorphism refers to a programming language's ability to process objects differently
depending on their data type or class.
Term 6 of 77
How do you create a constructor? Give an Example.
Is used to format and structure the document. For example, html is used to structure web
documents.
by starting with access modifier like public or private. Followed by the class name.
Primitive datatypes hold value in Java. There are 8 of them. Boolean, int, double, short,
long, byte, float, char.
Methods in interface are not implemented. Method in classes need to be implemented.
, Term 7 of 77
Autoboxing
Autoboxing is when Java compiler convert primitive datatype to Wrapper class. For
example, convert an int to Integer class.
HTML stands for Hyper Text Markup Language. It's used to organized the website structure.
Binary is a language that the computers use and understand. It goes between 0 and 1. O is
off 1 is on.
if something is true then execute. else if different conditions are true, then execute. Else
execute something else.
Term 8 of 77
What is the difference between Collection and Collections?
Methods in interface are not implemented. Method in classes need to be implemented.
Checked exceptions are exceptions happen at the compiling time. These exceptions
prevent program from compiling. It's normally caught by the IDE as we write code.
Unchecked exceptions happen at runtime. Cannot be caught by the IDE and do not prevent
compiler from compiling.
if condition is true then execute some statement. Else, execute something else.
Collection is the interface that other collections type such as ArrayList, Set, etc implements.
Collections is the class that contains static methods that manipulating collection types.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller stuuviaa. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.89. You're not tied to anything after your purchase.