background preloader

Mechanical Sympathy

Mechanical Sympathy
Related:  Java LibrariesJava

The Holy Java Programmer Level II Exam (The Java™ Tutorials > Bonus > Preparation for Java Programmer Language Certification) This page maps sections in the Java Tutorials to topics covered in the Java SE 7 Programmer II exam. This exam is associated with the "Oracle Certified Professional, Java SE 7 Programmer" certificate. The topics covered in this exam are: Section 1: Java Class Design Item 1: Use access modifiers: private, protected, public. Controlling Access to Members of a Class Item 2: Override methods. Item 3: Overload constructors and other methods appropriately. Defining Methods Item 4: Use the instanceof operator and casting. Inheritance Item 5: Use virtual method invocation. Polymorphism Item 6: Override methods from the Object class to improve the functionality of your class. Overriding and Hiding Methods Item 7: Use package and import statements. Section 2: Advanced Class Design Item 1: Identify when and how to apply abstract classes. Abstract Methods and Classes Item 2: Construct abstract Java classes and subclasses. Item 3: Use the static and final keywords. Item 4: Create top-level and nested classes.

Java API Design Checklist | The Amiable API There are many different rules and tradeoffs to consider during Java API design. Like any complex task, it tests the limits of our attention and memory. Similar to the pilots’ pre-flight checklist, this list helps software designers remember obvious and not so obvious rules while designing Java APIs. It is a complement to and intended to be used together with the API Design Guidelines. We also have some before-and-after code examples to show how this list can help you remember overlooked design requirements, spot mistakes, identify less-than-optimal design choices and opportunities for improvements. Click the [explain] link next to a checklist item (where available) for details about the rationale, examples, design tradeoffs or other limitations of applicability. 1. 1.1. 1.1.1. 1.2. 1.2.1. 1.3. 1.3.1. 2. 2.1. 2.1.1. 2.2. 2.2.1. 2.3. 2.3.1. 2.4. 2.4.1. 2.5. 2.5.1. 2.6. 2.6.1. 2.7. 2.7.1. 3. 3.1. 3.1.1. 3.2. 3.2.1. 3.3. 3.3.1. 3.4. 3.4.1. 3.5. 3.5.1. 3.6. 3.6.1. 3.7. 3.7.1. 3.8. 3.8.1.

brunoborges/webfx a CONS is an object which cares Disruptor by LMAX-Exchange Download here... Discussion, Blogs & Other Useful Links Presentations Introduction to the Disruptor Read This First To understand the problem the Disruptor is trying to solve, and to get a feel for why this concurrency framework is so fast, read the Technical Paper. And now for some words from our sponsors... What is the Disruptor? LMAX aims to be the fastest trading platform in the world. The Disruptor is the result of our research and testing. This is not a specialist solution, it's not designed to work only for a financial application. It works in a different way to more conventional approaches, so you use it a little differently than you might be used to. If you prefer real, live people explaining things instead of a dry paper or content-heavy website, there's always the presentation Mike and Martin gave at QCon San Francisco. What's the big deal? It's fast. Note that this is a log-log scale, not linear. Great What do I do next?

ByteBuffer java.nio.ByteBuffer is the cornerstone of the nio new I/O package. It is also used for high performance conversions of byte[] to char[] and back. What ByteBuffer is Not The biggest problem in understanding ByteBuffer is presuming that it is cleverer than it really is. How It Works You would expect ByteBuffer to have a length() method, it does not. Operations To get started you can clear. Sample Code Creating Creating a ByteBuffer by wrapping an existing byte[]: Using a MappedByteBuffer to read a file: Sequentially Reading a File If your file is small enough to fit in your virtual address space all at once, then you could memory map it, using a FileChannel and MappedByteBuffer and leave the OS (Operating System) to figure out how to do the I/O to read it as needed, or possibly even preemptively read it. Alternatively, you could do your I/O in a more conventional way using FileChannel. read( ByteBuffer dst ), to read the next chunk of the file into a pre-allocated ByteBuffer. Learning More

TryStack: A Free Way To Try OpenStack With Your Apps Java Software Development Tutorials and Videos: Java, J2EE, Spring, Groovy, JavaFX, Eclipse, NetBeans, Hibernate