Professional Documents
Culture Documents
OCA - IZ0 - 808 - Ch1 - Abstract
OCA - IZ0 - 808 - Ch1 - Abstract
ma.mezghich@smart-it-partner.com
amine.mezghich@ensi-uma.tn
Chapter 1 : Java Building Blocks
Exam Essentials
1-Be able to write code using a main() method. A main() method is usually
written as public static void main(String[] args). Arguments are referenced
starting with args[0]. Accessing an argument that wasn’t passed in will cause
the code to throw an exception.
2-Understand the effect of using packages and imports. Packages contain
Java classes. Classes can be imported by class name or wildcard. Wildcards do
not look at subdirectories. In the event of a conflict, class name imports take
precedence.
3-Be able to recognize a constructor. A constructor has the same name as the
class. It looks like a method without a return type.
Chapter 4 : Methods and Encapsulation Dr Mohamed Amine Mezghich 30/12/2022 2
Chapter 1 : Java Building Blocks
Exam Essentials
Q1)
Q2)
Q3)
Q4)
Q5)
Q6)
Q7)
Q8)
Q9)
Q10)
Q11)
Q13)
Q14)
Q15)
Q16)