Hibernate Tutorial

(Brent) #1

  • Java Tutorial Table of Content

  • Audience

  • Prerequisites

  • Copyright & Disclaimer Notice

  • Java Overview

  • History of Java:

  • Tools you will need:

  • What is Next?

  • Java Environment Setup

  • Setting up the path for windows 2000/XP:

  • Setting up the path for windows 95/98/ME:

  • Setting up the path for Linux, UNIX, Solaris, FreeBSD:

  • Popular Java Editors:

  • What is Next?

  • Java Basic Syntax

  • First Java Program:

  • Basic Syntax:

  • Java Identifiers:

  • Java Modifiers:

  • Java Variables:

  • Java Arrays:.............................................................................................

  • Java Enums:

  • Example:

  • Java Keywords:

  • Comments in Java

  • Using Blank Lines:

  • Inheritance:

  • Interfaces:

  • What is Next?

  • Java Object & Classes

  • Objects in Java:

  • Classes in Java:

  • Constructors:

  • Singleton Classes

  • Implementing Singletons:

  • Example 1:...............................................................................................

  • Example 2:...............................................................................................

  • Creating an Object: TUTORIALS POINT

  • Accessing Instance Variables and Methods:

  • Example:

  • Source file declaration rules:

  • Java Package:

  • Import statements:

  • A Simple Case Study:

  • What is Next?

  • Java Basic Data Types

  • Primitive Data Types:

  • byte:

  • short:

  • int:

  • long:

  • float:

  • double:

  • boolean:

  • char:

  • Reference Data Types:

  • Java Literals:

  • What is Next?

  • Java Variable Types

  • Local variables:

  • Example:

  • Example:

  • Instance variables:

  • Example:

  • Class/static variables:

  • Example:

  • What is Next?

  • Java Modifier Types



    1. Java Access Modifiers



  • Default Access Modifier - No keyword:

  • Example:

  • Private Access Modifier - private:

  • Example:

  • Public Access Modifier - public:

  • Example:

  • Protected Access Modifier - protected:

  • Example: TUTORIALS POINT

  • Access Control and Inheritance:



    1. Non Access Modifiers



  • Access Control Modifiers:

  • Non Access Modifiers:

  • Access Control Modifiers:

  • Non Access Modifiers:

  • What is Next?

  • Java Basic Operators

  • The Arithmetic Operators:

  • The Relational Operators:

  • Example

  • The Bitwise Operators:

  • Example

  • The Logical Operators:

  • Example

  • The Assignment Operators:

  • Example:

  • Misc Operators

  • Conditional Operator (?:):

  • instanceof Operator:

  • Precedence of Java Operators:

  • What is Next?

  • Java Loop Control

  • The while Loop:

  • Syntax:

  • Example:

  • The do...while Loop:

  • Syntax:

  • Example:

  • The for Loop:

  • Syntax:

  • Example:

  • Enhanced for loop in Java:

  • Syntax:

  • Example:

  • The break Keyword:

  • Syntax:

  • Example:

  • The continue Keyword: TUTORIALS POINT

  • Syntax:

  • Example:

  • What is Next?

  • Java Decision Making

  • The if Statement:

  • Syntax:

  • Example:

  • The if...else Statement:

  • Syntax:

  • Example:

  • The if...else if...else Statement:

  • Syntax:

  • Example:

  • Nested if...else Statement:

  • Syntax:

  • Example:

  • The switch Statement:

  • Syntax:

  • Example:

  • What is Next?

  • Java Numbers

  • Example:

  • Number Methods:

  • xxxValue()................................................................................................

  • compareTo()

  • equals()

  • valueOf()

  • toString()

  • parseInt()

  • abs()

  • ceil()

  • floor()

  • rint()

  • round()

  • min()

  • max()

  • exp()

  • log()

  • pow() TUTORIALS POINT

  • sqrt()

  • sin()

  • cos()

  • tan()

  • asin()

  • acos()

  • atan()

  • atan2()

  • toDegrees()..............................................................................................

  • toRadians()

  • random()

  • What is Next?

  • Java Characters

  • Example:

  • Example:

  • Escape Sequences:

  • Example:

  • Character Methods:

  • isLetter()

  • isDigit()

  • isWhitespace()

  • isUpperCase()

  • isLowerCase()

  • toUpperCase()

  • toLowerCase()

  • toString()

  • What is Next?

  • Java Strings

  • Creating Strings:

  • String Length:

  • Concatenating Strings:

  • Creating Format Strings:

  • String Methods:

  • char charAt(int index)

  • int compareTo(Object o)

  • int compareTo(String anotherString)

  • int compareToIgnoreCase(String str)

  • String concat(String str)

  • boolean contentEquals(StringBuffer sb) TUTORIALS POINT

  • static String copyValueOf(char[] data)

  • boolean endsWith(String suffix)

  • boolean equals(Object anObject)

  • boolean equalsIgnoreCase(String anotherString)..................................

  • byte getBytes()

  • byte[] getBytes(String charsetName)

  • void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)

  • int hashCode()

  • int indexOf(int ch)

  • int indexOf(int ch, int fromIndex)

  • int indexOf(String str)

  • int indexOf(String str, int fromIndex)

  • String intern()

  • int lastIndexOf(int ch)

  • int lastIndexOf(int ch, int fromIndex)

  • int lastIndexOf(String str)

  • int lastIndexOf(String str, int fromIndex)

  • int length()..............................................................................................

  • boolean matches(String regex)..............................................................

  • boolean regionMatches(boolean ignoreCase, int toffset,

  • String other, int ooffset, int len)

  • boolean regionMatches(int toffset, String other, int ooffset, int len)

  • String replace(char oldChar, char newChar)

  • String replaceAll(String regex, String replacement)

  • String replaceFirst(String regex, String replacement)

  • String[] split(String regex)

  • String[] split(String regex, int limit)

  • boolean startsWith(String prefix)

  • boolean startsWith(String prefix, int toffset)

  • CharSequence subSequence(int beginIndex, int endIndex)

  • String substring(int beginIndex)

  • String substring(int beginIndex, int endIndex)

  • char[] toCharArray()

  • String toLowerCase()

  • String toLowerCase(Locale locale)

  • String toString()

  • String toUpperCase()

  • String toUpperCase(Locale locale)

  • String trim() TUTORIALS POINT

  • static String valueOf(primitive data type x)

  • Java Arrays

  • Declaring Array Variables:

  • Example:

  • Creating Arrays:

  • Example:

  • Processing Arrays:

  • Example:

  • The foreach Loops:

  • Example:

  • Passing Arrays to Methods:

  • Returning an Array from a Method:

  • The Arrays Class:

  • Java Date and Time

  • Getting Current Date & Time

  • Date Comparison:

  • Date Formatting using SimpleDateFormat:

  • Simple DateFormat format codes:

  • Date Formatting using printf:

  • Date and Time Conversion Characters:

  • Parsing Strings into Dates:

  • Sleeping for a While:

  • Measuring Elapsed Time:

  • GregorianCalendar Class:

  • Example:

  • Java Regular Expressions

  • Capturing Groups:

  • Example:

  • Regular Expression Syntax:

  • Methods of the Matcher Class:

  • Index Methods:

  • Study Methods:

  • Replacement Methods:

  • The start and end Methods:

  • The matches and lookingAt Methods:

  • The replaceFirst and replaceAll Methods:

  • The appendReplacement and appendTail Methods:

  • PatternSyntaxException Class Methods:

  • Java Methods TUTORIALS POINT

  • Creating Method:

  • Example:

  • Method Calling:

  • Example:

  • The void Keyword:

  • Example:

  • Passing Parameters by Value:

  • Example:

  • Method Overloading:

  • Using Command-Line Arguments:

  • Example:

  • The Constructors:

  • Example:

  • Example:

  • Variable Arguments(var-args):

  • Example:

  • The finalize( ) Method:

  • Java Streams, Files and I/O

  • Byte Streams

  • Character Streams

  • Standard Streams

  • Reading and Writing Files:

  • FileInputStream:

  • ByteArrayInputStream

  • Example:

  • DataInputStream

  • Example:

  • FileOutputStream:

  • ByteArrayOutputStream

  • Example:

  • DataOutputStream

  • Example:

  • Example:

  • File Navigation and I/O:

  • File Class

  • Example:

  • FileReader Class

  • Example:

  • FileWriter Class TUTORIALS POINT

  • Example:

  • Directories in Java:

  • Creating Directories:

  • Listing Directories:

  • Java Exceptions

  • Exception Hierarchy:

  • Exceptions Methods:

  • Catching Exceptions:

  • Example:

  • Multiple catch Blocks:

  • Example:

  • The throws/throw Keywords:

  • The finally Keyword

  • Example:

  • Declaring you own Exception:

  • Example:

  • Common Exceptions:

  • Java Inheritance

  • IS-A Relationship:

  • Example:

  • Example:

  • The instanceof Keyword:

  • HAS-A relationship:

  • Java Overriding

  • Example:

  • Rules for method overriding:..................................................................

  • Using the super keyword:

  • Java Polymorphism

  • Example:

  • Virtual Methods:

  • Java Abstraction

  • Abstract Class:

  • Extending Abstract Class:

  • Abstract Methods:

  • Java Encapsulation

  • Example:

  • Benefits of Encapsulation:

  • Java Interfaces

  • Declaring Interfaces: TUTORIALS POINT

  • Example:

  • Example:

  • Implementing Interfaces:

  • Extending Interfaces:

  • Extending Multiple Interfaces:................................................................

  • Tagging Interfaces:

  • Java Packages

  • Creating a package:

  • Example:

  • The import Keyword:

  • Example:

  • The Directory Structure of Packages:

  • Set CLASSPATH System Variable:

  • Java Data Structures

  • The Enumeration:

  • Example:

  • The BitSet

  • Example:

  • The Vector

  • Example:

  • The Stack

  • Example:

  • The Dictionary

  • Map Interface

  • Example:

  • The Hashtable

  • Example:

  • The Properties

  • Example:

  • Java Collections

  • The Collection Interfaces:

  • The Collection Classes:

  • The Collection Algorithms:

  • How to use an Iterator?

  • Using Java Iterator

  • The Methods Declared by Iterator:

  • The Methods Declared by ListIterator:

  • Example:

  • How to use a Comparator? TUTORIALS POINT

  • Using Java Comparator

  • The compare Method:

  • The equals Method:

  • Example:

  • Summary:

  • Java Generics

  • Generic Methods:

  • Example:

  • Bounded Type Parameters:

  • Example:

  • Generic Classes:

  • Example:

  • Java Serialization

  • Serializing an Object:

  • Deserializing an Object:

  • Java Networking...................................................................

  • Url Processing

  • URL Class Methods:

  • Example:

  • URLConnections Class Methods:

  • Example:

  • Socket Programming:

  • ServerSocket Class Methods:

  • Socket Class Methods:

  • InetAddress Class Methods:

  • Socket Client Example:

  • Socket Server Example:

  • Java Sending E-mail

  • Send a Simple E-mail:

  • Send an HTML E-mail:

  • Send Attachment in E-mail:

  • User Authentication Part:

  • Java Multithreading

  • Life Cycle of a Thread:

  • Thread Priorities:

  • Create Thread by Implementing Runnable Interface:

  • STEP 1:

  • STEP 2:

  • STEP TUTORIALS POINT

  • Example:

  • Create Thread by Extending Thread Class:

  • STEP

  • STEP

  • Example:

  • Thread Methods:

  • Example:

  • Major Java Multithreading Concepts:

  • What is Thread synchronization?

  • Multithreading example without Synchronization:

  • Multithreading example with Synchronization:

  • Handling threads inter communication

  • Example:

  • Handling threads deadlock

  • Example:

  • Deadlock Solution Example:

  • Major thread operatios

  • Example:

  • Java Applet Basics

  • Life Cycle of an Applet:

  • A "Hello, World" Applet:

  • The Applet CLASS:

  • Invoking an Applet:

  • Getting Applet Parameters:

  • Specifying Applet Parameters:

  • Application Conversion to Applets:

  • Event Handling:

  • Displaying Images:

  • Playing Audio:

  • Java Documentation

  • What is Javadoc?

  • The javadoc Tags:

  • Example:

  • Java Library Classes

Free download pdf