2
votes
When teaching Java, should I teach try-catch from the outset?
I'm not sure what the progression is in your education system, but the one I went through to learn programming as a complete novice in Java (~2015, in the USA, at a community college) went roughly ...
2
votes
When teaching Java, should I teach try-catch from the outset?
This answer is based on a software engineering point of view, in not teaching things that contradict best practices. (And there are lots of misconceptions and bad practices around exception handling, ...
2
votes
When teaching Java, should I teach try-catch from the outset?
You may need to teach this concept, but I'd do it at the point it becomes be best option. If things can fail, some sort of test or similar action is needed.
For a list of objects, one can return null ...
2
votes
Is there an array-like data type in Java that can cope with generic types better than the built-in array?
You probably want an ArrayList. They can be resized, however. Python has a similar thing.
You should become familiar with the oracle docs of which the above link is a part. They are quite informative.
...
1
vote
When teaching Java, should I teach try-catch from the outset?
Create a type value or error (but nothing else: so not object)
e.g.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
java × 60self-learning × 9
programming × 9
object-oriented-paradigm × 9
ap-computer-science-a × 9
secondary-education × 8
resource-request × 5
teaching-analogy × 5
curriculum-design × 4
undergraduate × 4
textbook × 4
algorithms × 3
project × 3
exercises × 3
data-structure × 3
language-choice × 3
c × 3
lesson-ideas × 2
introductory-lesson × 2
grading × 2
python × 2
labs × 2
c++ × 2
resource-information × 2
looping × 2