background preloader

Java References

Facebook Twitter

Frameworks, Libraries, APIs

Java Idioms. Object Oriented Design Principles. Who is Audience?

Object Oriented Design Principles

This article is intended for those who have at least a basic idea of Object oriented programming. They know the difference between classes and objects and can talk about the basic pillars of object oriented programming i.e., Encapsulation, Abstraction, Polymorphism and Inheritance. Introduction In the object oriented world we only see objects. Objects interact with each other. In the modern software world every software developer uses object oriented language of some kind, but the question is, does he really know what object oriented programming means? In this article we will go beyond the basic pillars of object oriented programming and talk about object oriented design. Object Oriented Design It’s a process of planning a software system where objects will interact with each other to solve specific problems.

How does anyone start? When anyone starts creating software architecture their intentions are good. Over time software starts to rot. Who is to Blame Example. Best Practice Software Engineering - The Project.

Design Patterns

Java programming guide - quick reference.pdf (objeto application/pdf) Java Tutorial. Catalog of refactoring. You have constructors on subclasses with mostly identical bodies.

catalog of refactoring

Create a superclass constructor; call this from the subclass methods. more… Two subclasses have the same field. Move the field to the superclass. more… You have methods with identical results on subclasses. Move them to the superclass. more… A field is used only by some subclasses. Move the field to those subclasses. more… Behavior on a superclass is relevant only for some of its subclasses. Move it to those subclasses. more… You have conditional code that is unnecessarily verbose and does not use the most readable Ruby construct.

Replace the conditional code with the more idiomatic Ruby construct. more… Remove Assignments to Parameters The code assigns to a parameter. Use a temporary variable instead. more… You have a variable that is acting as a control flag for a series of boolean expressions. Use a break or return instead. more… A class is doing too much simple delegation. Get the client to call the delegate directly. more… more… Remove it. Refactoring to Patterns Catalog. The Java Language Specification, Third Edition - TOC. The Really Big Index. A list of all content pages in the The Java™ Tutorials Trail: Getting Started The Java Technology Phenomenon About the Java TechnologyWhat Can Java Technology Do?

The Really Big Index

How Will Java Technology Change My Life? The "Hello World! " "Hello World! " A Closer Look at the "Hello World! " Questions and Exercises: Getting Started Common Problems (and Their Solutions) Trail: Learning the Java Language Object-Oriented Programming Concepts What Is an Object? Language Basics Classes and Objects Annotations Annotations BasicsDeclaring an Annotation TypePredefined Annotation TypesType Annotations and Pluggable Type SystemsRepeating AnnotationsQuestions and Exercises: Annotations Interfaces and Inheritance Numbers and Strings Generics (Updated) Why Use Generics? Packages Creating and Using Packages Creating a Package Naming a Package Using Package Members Managing Source and Class Files Summary of Creating and Using Packages Questions and Exercises: Creating and Using Packages Trail: Essential Classes Exceptions Basic I/O Printing.

Quick Reference Guide. What is Java?

Quick Reference Guide

Java is: Object Oriented Platform independent:SimpleSecureArchitectural- neutralPortableRobustMulti-threaded Interpreted High PerformanceDistributed Dynamic Java Environment Setup: Java SE is freely available from the link Download Java. So you download a version based on your operating system. You can refer to installation guide for a complete detail. Java Basic Syntax: Object - Objects have states and behaviors. First Java Program: Let us look at a simple code that would print the words Hello World. public class MyFirstJavaProgram{ /* This is my first java program. * This will print 'Hello World' as the output */ public static void main(String []args){ System.out.println("Hello World"); // prints Hello World }} About Java programs, it is very important to keep in mind the following points.

Java Identifiers: All Java components require names. In java there are several points to remember about identifiers.