Schlagwörter » Java

Effective Java 学习笔记 -- Chapter 10. Concurrency

Item 66. Synchronize access to shared mutable data
(1) 用 synchronized 关键字可以保证
1.1 其他的thread不会看到inconsistent 状态的变量, 即mutual exclusion
1.2 每个thread都会看到变量的最新状态,这一点非常重要,即communication purpose
(2) Java中,除了long和double意外的变量进行读写操作都是atomic的。
但是 noch 318 Wörter

Java

Is your enterprise application ready for the Cloud ?

By this time now, I guess you have already heard about Cloud technologies and all the benefits that brings to corporations of all sorts (Although there isn’t a consensus on the market what Cloud really is and to make worse, several vendors has their own way to pitch it). noch 517 Wörter

Microservices

JAVA -- Bİ DOSYADAN OKUYUP DİĞERİNE YAZMA

// OKUMA İŞLEMİ
File okunacak_dosya = new File ( “C:\\Users\\Acer\\Desktop\\ERKAN.txt” );
char okunan_veriler[] = new char[ ( int ) okunacak_dosya.length () ];
try {
FileReader okuma = new FileReader ( okunacak_dosya ); noch 78 Wörter

TÜM YAZILAR

The sulfur miners of Kawah Ijen

As you descend precariously into the crater of Kawah Ijen on Java, men laden with bright yellow slabs of sulfur labor in the opposite direction, their ‘harvest’ distributed evenly between two wicker baskets fastened to the end of a bamboo pole. noch 179 Wörter

JAVA -- FİLE READER İLE DOSYADAN OKUMA YAPMA

// DOSYA YOLUNU BELİRTTİK
File dosya = new File ( “C:\\Users\\Acer\\Desktop\\ERKAN.txt” );
// OKUNAN VERİLERİ ATACAĞIMIZ CHAR DİZİSİNİ OLUŞTURDUK
char okunan_veriler[] = new char[ ( int ) dosya.length () ]; noch 95 Wörter

TÜM YAZILAR

JAVA DOSYA İŞLEMLERİ

File dosya = new File ( “C:\\Users\\Acer\\Desktop\\ERKAN.txt” );
System.out.println ( “DOSYA VARMI” );
System.out.println ( dosya.exists () );
dosya.delete ();
try {
System.out.println ( “DOSYA OLUŞTURULDU” ); noch 109 Wörter

TÜM YAZILAR