Please enable JavaScript.
Coggle requires JavaScript to display documents.
Level 4 - Coggle Diagram
Level 4
Level 4.1
Java Threads
-
-
Concurrency Problems
Because threads run at the same time as other parts of the program, there is no way to know in which order the code will run. When the threads and main program are reading and writing the same variables, the values are unpredictable. The problems that result from this are called concurrency problems.
-
Java Lambda Expressions
A lambda expression is a short block of code which takes in parameters and returns a value. Lambda expressions are similar to methods, but they do not need a name and they can be implemented right in the body of a method.
-
-
Level 4.2
Java has several methods for creating, reading, updating, and deleting files.
The File class from the java.io package, allows us to work with files.
To use the File class, create an object of the class, and specify the filename or directory name:
import java.io.File; // Import the File class
File myObj = new File("filename.txt"); // Specify the filename
-