Summary of in-house newcomer study session [Java]

Introduction

I am studying Java at an in-house rookie study session. Here are some of the things I learned that were particularly interesting. The 1st to 4th sessions are using Progate / Clear Java, and the 5th session is using Java Practice Edition.

Go to the following site for Progate https://qiita.com/wdmmm/items/0fa27221498e767c953a

Part 1 How to name variables

iOS の画像 (1).jpg

Variable names are written in basic camel case. Example: userName

The magic number is basically not used. Example: name1, name2, name3, ...

You can't omit the variable name too much or it's too long. .. ..

☆ Recommended books ☆

・ Readable code

2nd pass by value and pass by reference

Pass by value

Passing the value of a variable of the basic data type itself is called passing by value.

Pass by reference

Passing a reference to a variable other than the basic data type is called passing by reference.

3rd Thread Safe

Multiple threads are called multithreads. It means that it is safe to process at the same time with multiple threads. A thread-safe design is a class or method that is safe to use multiple threads at the same time.

4th wrapper class

A convenient class for manipulating basic data types as objects. Example: int → Integer, long → Long (The left side is the basic data type and the right side is the wrapper class.)

It is used in Integer.parseInt () and so on.

5th StringBuilder & StringBuffer

iOS の画像.jpg

A class that concatenates strings. It is overwhelmingly faster than concatenating character strings with +.

Difference between StringBuilder and StringBuffer

StringBuilder may be overwritten if you try to process the same target when multithreading. On the other hand, StringBuffer processes one by one even if the same target is processed at the time of multithreading. It will not be overwritten, but it will be slower than StringBuilder.

in conclusion

The study session will continue, so I will review the preparations and review. I wanted to be aware of it when I came across something that I found interesting. I'm planning to learn about Spring next year, so I'd like to acquire Java knowledge properly and attend a study session.

Recommended Posts

Summary of in-house newcomer study session [Java]
[In-house study session] Basics of Java annotation (2017/11/02) ~ Under construction ~
Summary of [Java silver study] package
[In-house study session] Java exception handling (2017/04/26)
[In-house study session] Introduction of "Readable Code"
Summary of Java support 2018
[In-house study session] Java basics-execution without using IDE- (2017/07/06)
[Java11] Stream Summary -Advantages of Stream-
[In-house study session] Java basics-Lambda expression and Stream API- (2017/07/13)
[Java] Summary of regular expressions
[Java] Summary of operators (operator)
Summary of Java language basics
[Java] Summary of for statements
Summary of Java Math class
[Java] Summary of control syntax
Summary of java error processing
[Java] Summary of design patterns
[Java] Summary of mathematical operations
[For beginners] Summary of java constructor
[Study session memo] Java Day Tokyo 2017
Summary of object-oriented programming using Java
[Java Silver] Summary of access modifier points
[java] Summary of how to handle char
Summary of changes other than JEP of Java10
[Java] Personal summary of conditional statements (basic)
[Java] [Maven3] Summary of how to use Maven3
Java Summary of frequently searched type conversions
Summary of Java Math.random and import (Calendar)
Java knowledge summary
[java] Summary of how to handle character strings
Java Generics Summary
Let's study Java
Summary of Java environment settings for myself [mac]
[Java] Personal summary of classes and methods (basic)
[Java] Summary of how to abbreviate lambda expressions
Java related summary
Study session memo: Kansai Java Engineers Association 8/5 --Selenium
Java 8 documentation summary
[Java] Study notes
Java 8 study (repeatable)
Java study memorandum
Java 11 document summary
Java session scope
Study Java Silver 1
[Java] Overview of Java
[Java] Basic summary of Java not covered by Progate ~ Part 1 ~
This is convenient! Summary of popular Java library + α
Summary of ToString behavior with Java and Groovy annotations
[Java Silver] Summary of points related to lambda expressions
Summary of revisions (new era) support by Java version
[java.io] Summary of Java string input (InputStream, Reader, Scanner)
Summary of knowledge required to pass Java SE8 Silver
Comparative study of TLS Cipher Suite supported by Java 8
Summary of Java communication API (1) How to use Socket
Summary of Java communication API (3) How to use SocketChannel
Summary of Java communication API (2) How to use HttpUrlConnection
Summary of how to implement default arguments in Java
Summary of file reading method for each Java file format
Expired collection of java
Predicted Features of Java
Java 12 new feature summary