Hello Stranger

Basic Java Vocab

A series of basic java terms and phrases and their definition.




deck author

Bb49e53a4b18390987818860dd6147dd?size=30

deck subscribers

Ea702d3c1b6cd09ac8ae3fbc3807eceb?size=30
122b7248bd3b466bda6635d884bfaf38?size=30
Bccf7754bac16d6c9b1ca29f23dc3207?size=30
E4dc97492c5d3a7bb1b4e36f223dcc52?size=30
Cbd3a6f83fcea4ad11f131974d14fe17?size=30

comments

92c1e8fb31ce4bcf706d828717c406cf?size=30

this deck has 14 cards Export
Question Answer
Linear Search
This is a very straightforward loop comparing every element in the array with the key. As soon as an equal value is found, it returns. If the loop finishes without finding a match, the search failed and -1 is returned.
Binary Search
A fast way to search a sorted array is to use a binary search. The idea is to look at the element in the middle. If the key is equal to that, the search is finished. If the key is less than the middle element, do a binary search on the first half. If it's
Exception
indication of a problem that occurs during execution
Exception handling
allows the program to continue executing the code
Java API
lists exceptions thrown by each method
java.lang.Exception
All exceptions extend this class
Boolean
T/F - logical expressions evaluate to this
Sentinel Controlled Loop
uses a special value to determine when it should terminate repetition
Objects
Have attributes and behaviours
Inheritance
a relationship between two classes where a class absorbs characteristics of a previously defined class as well as adding its own attributes and behaviours
« Previous 1