Quotessence
Home / Topics / Java Quotes

Java Quotes

Browse 95 quotes about Java.

Related topics

Java Quotes

“Lagi pula tak ada satu pun kota di Eropa yang bisa memberi potret sahih tentang kota Batavia. Penduduk kota Paris, yang terbiasa dengan jalanan berbau dan teramat kotor, juga plaster temboknya yang buruk, tak akan pernah mengerti tentang kemewahan dan keanggunan rumah-rumah di Jawa, demikian pula di kalkuta, yang saban tahun dikuas dengan lumuran baru dari batu gamping. Lapisan ini memberi kesan selaksa perak mewah, dan garis-garis tata bangunan teramat jelas tergambar rapi. Di kota ini, ada banyak rumah yang dengan mudah melampaui kemegahan istana di Eropa.”

“The local seers, the rshi, easily identifiable by their dreadlocks or matted hair, and being dressed in nothing but bark. They filled their days in meditation or uttering mantras to find spiritual release. In the early mornings, these rshi walked to the villages in the valley to collect rice, betelnuts and vegetables the villagers shared with them because, after all, the spiritual welfare of the whole valley depended on these devout worshippers.  They continued through forests of lush foliage that protected them from the beating sun. Later, when the sun lost its strength, Prapanca and his two servants followed a narrow, steep path into the hills. They were getting closer”

“. In 1289 Kublai Khan sent ambassadors to Java, demanding tribute and submission to the Yuan dynasty. Kertanegara arrested the envoys, branded their faces, cut off their ears and sent them back to China. As will be revealed later, what happened next had profound consequences for the Majapahit empire. ” “. In 1289 Kublai Khan sent ambassadors to Java, demanding tribute and submission to the Yuan dynasty. Kertanegara arrested the envoys, branded their faces, cut off their ears and sent them back to China. As will be revealed later, what happened next had profound consequences for the Majapahit empire.”

“The whole of Java is immediately subject to the Netherlands. There is no question of tribute, or levy, or alliance. The Javanese is a Dutch subject. The King of the Netherlands is his king. The descendants of his former princes and lords are Dutch officials. They are appointed, transferred, promoted, dismissed by the Governor-General, who rules in the name of the King. The criminal is convicted and sentences under a law made in The Hague. The taxes the Javanese pays flow into the Exchequer of the Netherlands.”

“Kelak, sendainya ketika pulau Jawa tak lagi punya hiasan berupa musim semi yang berlangsung sepanjang masa, tak lagi punya panorama alam yang memesona, juga tak lagi punya rimbanya yang perawan, pula tak lagi ada kota-kota yang ramai oleh beragam suku bangsa, di mana bisa kau jumpai perpaduan keanggunan ala India dan kemewahan khas Eropa; atau pada akhirnya ketika pulau itu bisa bersih dari para bidadarinya yang menggairahkan, dan menyisakan hanya kawanan burung gelatik, maka sudah seharusnya kunjungan ziarah ke tanah Jawa tetap dilakukan demi mempelajari samai pada tingkat mana alam liar ini bisa menandingi kemampuan manusia dalam mencipta irama.”

“Malangnya, aku adalah seorang yang teramat buruk dalam hal ilmu alam, karenanya aku kerap mengabaikan banyak peristiwa ajaib melalui pengamatan yang hanya sepintas. Aku tak bisa menceritakan padamu berapa jumlah bulu sayap makhluk nan puitis ini, tak pula bisa menjelaskan di mana persisnya letak lubang hidung dalam paruhnya, atau apakah kedua rahangnya terhubung baik maupun bagaimanakah wujud tulang kakinya. Tapi bagaimanapun juga, gelatik ini adalah milikku...! Dia punyaku. Hanya aku yang mampu mendengar dan mengerti. Betul, burung ini, paling tidak pada kicauannya, adalah sebentuk rahasia antara jiwaku dan langit, seperti syair sendu terlukis dalam catatan Webber yang tetap menyimpan misteri antara dua orang yang saling mencintai.”

“When a field is declared volatile, the compiler and runtime are put on notice that this variable is shared and that operations on it should not be reordered with other memory operations. Volatile variables are not cached in registers or in caches where they are hidden from other processors, so a read of a volatile variable always returns the most recent write by any thread.”

“From the perspective of a class C, an alien method is one whose behavior is not fully specified by C. This includes methods in other classes as well as overrideable methods (neither private nor final) in C itself. Passing an object to an alien method must also be considered publishing that object. Since you can’t know what code will actually be invoked, you don’t know that the alien method won’t publish the object or retain a reference to it that might later be used from another thread.”

“Immutable objects are simple. They can only be in one state, which is carefully controlled by the constructor. One of the most difficult elements of program design is reasoning about the possible states of complex objects. Reasoning about the state of immutable objects, on the other hand, is trivial. Immutable objects are also safer. Passing a mutable object to untrusted code, or otherwise publishing it where untrusted code could find it, is dangerous — the untrusted code might modify its state, or, worse, retain a reference to it and modify its state later from another thread. On the other hand, immutable objects cannot be subverted in this manner by malicious or buggy code, so they are safe to share and publish freely without the need to make defensive copies.”

“The possibility of incorrect results in the presence of unlucky timing is so important in concurrent programming that it has a name: a race condition. A race condition occurs when the correctness of a computation depends on the relative timing or interleaving of multiple threads by the runtime; in other words, when getting the right answer relies on lucky timing.”

“Compound actions on shared state, such as incrementing a hit counter (read-modify-write) or lazy initialization (check-then-act), must be made atomic to avoid race conditions. Holding a lock for the entire duration of a compound action can make that compound action atomic. However, just wrapping the compound action with a synchronized block is not sufficient; if synchronization is used to coordinate access to a variable, it is needed everywhere that variable is accessed. Further, when using locks to coordinate access to a variable, the same lock must be used wherever that variable is accessed.”

“Debugging tip: For server applications, be sure to always specify the -server JVM command line switch when invoking the JVM, even for development and testing. The server JVM performs more optimization than the client JVM, such as hoisting variables out of a loop that are not modified in the loop; code that might appear to work in the development environment (client JVM) can break in the deployment environment (server JVM).”

“Accessing shared, mutable data requires using synchronization; one way to avoid this requirement is to not share. If data is only accessed from a single thread, no synchronization is needed. This technique, thread confinement, is one of the simplest ways to achieve thread safety. When an object is confined to a thread, such usage is automatically thread-safe even if the confined object itself is not.”

“In the Java Sea in Indonesia, I have seen fishers going out in the morning, six of them going out and coming back with five pounds of fish. That is the end point, a pound of fish per person per day to sell for rice. That's where fisheries go if you let it happen. That's where it stabilizes. These people cannot feed their families.”