What are the 3 activities of programming?
How is Java different from other programming languages?
It can run on virtually every operating system, because it uses Java runtime environment (JRE). Java compiler translate programmed source text into bytecode. The bytecode is then loaded, started and executed by the Java runtime environment.
What is the Java runtime environment (JRE)?
Java runtime enviornment is required to run a Java program as a user. It consists of the Java virtual machine (JVM) and the class library.
The JVM is responsible to interpret the bytecode and both starts it and runs it on the operating system.
The Java class library provides functions that are already part of Java programming language, so that commonly used data structures can be reused.
What is a Java software development kit (Java SDK)?
What are the basic elements of a class in Java?
What are the naming restrictions for Java classes?
What are the basic elements of a attribute in Java?
What are the basic elements of a method on Java?
What is a method signature?
What are getter and setter methods?
They are used for writing and reading attributes. A getter method returns the value of an attribute and a setter method changes the value of an attribute to the value that is passed as a parameter to the setter method.
What is method overloading?
It means that there are methods in a class with the same name. With this you have the ability to define various method behaviors based on the give parameters
What is the main method?
It is the fixed starting point for each Java program. The generation of all the objects that are required by the program start inside this method.
It contains the following elements:
- visibility modifier
- declaration of the main method as static method
- specification that there is no return type
- name of method
- parameter list