UOW Week 2 Flashcards
public
is an access specifier that indicates that main() is visible
outside the class
static
static indicates that you can call the method without creating an instance of a class
main
main is the method where the program starts
what are the roles or the java compilier and jvm?
java compiler converts source code (xxx.java)to byte code instructions, saved as xxx.class, JVM converts byte code to machine code,
How do programs communicate?
Everything is under the control of the operating system, programs communicates by making system calls
void
indicates the method does not return any information
What are the 6 main types of variables?
int, float, double, char, string, boolean
what are +. -, *. / called in java
arithmetic operators and expressions
What is the purpose of the UML?
Used to understand the flow of programs and allow visualization to cover conceptual ideas
what is the printf() method?
a flexible way to output numbers, characters and text in a specific format using only one statement
printf(ā%f miles equal to %f kilometres \nā, miles, kms);
what is the purpose of the enun data type?
to define collections of constants
How to creat an object in java?
Circle res = new Circle(radius);
What are methods?
A method is a block of statements that can be executed by calling it from some other place in the program
What is a method of parameters?
Information can be passed into a method by using parameters which as a variables inside the method