Java learning day 5

A refreshing introduction to java, up to p250, 2nd edition

I learned how to create the correct method in the exercises in the summary of Chapter 5. If there is a return value, use the return type instead of void. Define the value to be returned before return in the method and then return it to the return value.

Overview of development using JDK ① Create source code with a text editor
② Compile with javac command and class file (convert to machine language) ③ It is executed by the java command, and the execution result is output on the black screen (command prompt)

The finished Java program is a collection of multiple class files, so it is not created with a single class file. So if you want to distribute it to someone, you need to pass all the class files

When calling a method from another class, call it with class name.method name ()
There is no parent-child relationship or hierarchical relationship in the package, and the default package is specified for the class without the package statement and cannot be imported by the import statement. When calling a method from another package, write "affiliation package name.class name.method name" = This is called FQCN (fully limited class name)
If you want to omit the input of FQCN, add an import statement .. Basically, in Java, you can always use all the classes that the JVM can handle without making any declarations.

By importing and using API (convenient function), it is possible to save time and create a large program. You can refer to the API reference on the site

Recommended Posts

Java learning day 5
java learning day 2
java learning day 1
Java learning (0)
Java Day 2018
4th day of java learning
Programming learning day 3
For JAVA learning (2018-03-16-01)
Java Day Tokyo 2017
Rails learning day 3
Oracle Java Day 2017
Rails learning day 4
Rails learning day 2
Oracle Java Day 2017
rails learning day 1
Java learning 2 (learning calculation method)
java learning (conditional expression)
Java Silver Study Day 1
Java learning memo (method)
Java Kuche Day memo
Java Learning (1)-Hello World
Rails learning day 2 part 2
JAVA learning history interface
Rails learning day 1 part 3
Java learning memo (basic)
Rails learning day 3 part 2
Java learning memo (interface)
Rails learning Day 1 Part 2
Java learning memo (inheritance)
Muscle Java Basics Day 1
Java basic learning content 7 (exception)
JAVA learning history interface inheritance
Java learning memo (data type)
Java basic learning content 5 (modifier)
Books used for learning Java
Muscle Java Object Oriented Day 1
Java learning memo (logical operator)
Java
Java learning memo (abstract class)
Java
Java Basic Learning Content 8 (Java API)
Java is the 5th day
Java Learning 1 (learning various data types)
Java basic learning content 4 (repetition)
Deep Learning Java from scratch 6.4 Regularization
Java basic learning content 3 (operator / ternary operator)
[Study session memo] Java Day Tokyo 2017
Java basic learning content 9 (lambda expression)
Java learning memo (while statement, do-while statement)
Java basic learning content 2 (array / ArrayList)
[Android Studio] [Java] Learning memos & links
I tried to summarize Java learning (1)
What I researched about Java learning
Ruby learning 4
Studying Java ―― 3
[Java] array
Java protected
[Java] Annotation
[Java] Module
Studying Java ―― 9
Java scratch scratch