Forbidden Features
Java has grown to be a complex language with many features. We don’t have time to teach all of these features in CSE 143, so we have a general rule that students should not use advanced material not covered in class. It is not necessarily bad style to use these features, but we want our assessments to emphasize the programming concepts taught in the course.
The following features should not be used in assessments.
break
,continue
,return
from avoid
method.try
,catch
, and annotations.- Java 8 features, such as lambdas, streams, and method references.
- Java 11 features, such as local variable type inference.
toArray
andclone
.StringBuilder
,StringBuffer
,StringJoiner
,StringTokenizer
, and theString
methodstoCharArray
,join
, andmatches
.Arrays.asList
,Arrays.copyOf
,Arrays.copyOfRange
, andArrays.sort
.Collections.copy
,Collections.sort
.LinkedHashMap
.
It’s completely normal if you don’t recognize any of these features since they’re not taught in this course.