Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Java
Class 166 codes
Home
Java
Class
1 A changeable wrapper class
2 A Cloning Example
3 A collection of utilities to workaround limitations of Java clone framework
4 A companion class to modify immutable objects
5 A constructor for copying an object of the same
6 A named inner class is used to
7 Access inner class from outside
8 Accessing its enclosing instance from an inner class
9 Accessing Outer Class Variables
10 An example of a simple anonymous class
11 An inner class cannot be overriden like a method
12 Anonymous inner class
13 Array To String
14 Arrays are automatically cloneable
15 Blank final fields
16 Calling constructors with this
17 Can you call a static method of an abstract class
18 Checking to see if a reference can be cloned
19 Class Casting Demo
20 Class is declared to be cloneable
21 Cleanup and inheritance
22 Clone an object with clone method from parent
23 Clone demo
24 Clone objects
25 Clone Via Serialization
26 Cloning a composed object
27 Combining composition and inheritance
28 Compares two objects for equality, where either one or both objects may be null
29 Comparing Object Values Using Hash Codes
30 Compiler will generate a synthetic constructor since SyntheticConstructor() is private
31 Composition for code reuse
32 Composition with public objects
33 Constructor calls during inheritance
34 Constructor initialization with composition
35 Constructors and polymorphism dont produce what you might expect
36 Constructors can have arguments
37 Constructs pretty string representation of object value
38 Create a new instance of a class by calling a constructor with arguments
39 Create a Singleton Object
40 Create Object Demo
41 Creating a constructor for an anonymous inner class
42 Creating a Deep Copy
43 Creating inner classes
44 Creating instances of inner classes
45 Creating local copies with clone
46 Declaring Variables
47 Deep clone Object
48 Deep clone serializingde-serializng Clone
49 Deep Copy Test
50 Deep-copies the values from one object to the other
51 Demonstrate an Inner Child class
52 Demonstrate simple inner class
53 Demonstrate toString() without an override
54 Demonstrates Reference objects
55 Demonstrates the transient keyword
56 Demonstration of a simple constructor
57 Demonstration of both constructor and ordinary method overloading
58 Demonstration of cloning
59 Demonstration of overriding fields
60 Demotion of primitives and overloading
61 Downcasting and Run-Time Type Identification (RTTI)
62 Equals Method
63 Equals(Equal) Method
64 Equivalence
65 Equivalence ClassSet
66 Examination of the way the class loader works
67 Experiment with final args to functions
68 Explicit static initialization with the static clause
69 Extending an interface with inheritance
70 Get classpath using System class
71 Get the identity hash codes
72 Gets the toString of an Object returning an empty string () if null input
73 Gets the toString that would be produced by Object if a class did not override toString itself
74 Go through a few gyrations to add cloning to your own class
75 Holds a sequence of Objects
76 If the given objects are equal
77 Implements a pool of internalized objects
78 Inheritance syntax and properties
79 Inheritance, constructors and arguments
80 Inheriting an inner class
81 Initialization block Demo
82 Initialization order
83 It only looks like you can override a private or private final method
84 Java Final variable
85 Java Instance Initialization
86 Java static member variable example
87 Java static method
88 Just to show that there is no such thing as inner methods in Java
89 Lookup Classpath Files
90 Main method
91 Making an entire class final
92 Manipulate properties after clone operation
93 Method override demo
94 Nested Class Static
95 Nested classes can access all members of all levels of the classes they are nested within
96 Nesting a class within a scope
97 Null Safe To String
98 Object Deep copy
99 Objects that cannot be modified are immune to aliasing
100 Order of constructor calls
101 Overloaded constructor
102 Overloaded method
103 Overloading a base-class method name in a derived class does not hide the base-class versions
104 Overloading based on the order of the arguments
105 Override Shape
106 Passing objects to methods may not be what youre used to
107 Paying attention to exceptions in constructors
108 Polymorphism in Java
109 Promotion of primitives and overloading
110 Proper inheritance of an inner class
111 Putting test code in a nested class
112 Reflection based toString() utilities
113 Returning a reference to an inner class
114 Returns a copy of the object, or null if the object cannot be serialized
115 Returns a reference to a file with the specified name that is located somewhere on the classpath
116 Serializable and clone
117 Serializable Clone
118 Shallow Copy Test
119 Shared array
120 Show a class that has a method and a field with the same name
121 Show Constructors conflicting
122 Show that if your class has no constructors, your superclass constructors still get called
123 Show that you cant have static variables in a method
124 Show that you do inherit static fields
125 ShowToString -- demo program to show default toString methods
126 Simple demo of avoiding side-effects by using Object clone
127 Simple use of the this keyword
128 Specifying initial values in a class definition
129 Static field, constructor and exception
130 Static Init Demo
131 Static Initialization block
132 Subclass definition
133 Test the equality of two object arrays
134 Tests cloning to see if destination of references are also cloned
135 The clone operation works for only a few items in the standard Java library
136 The effect of final on fields
137 The full process of initialization
138 The protected keyword
139 This file is to show what happens if you try to access an inner class created in another class
140 This program demonstrates abstract classes
141 This program demonstrates anonymous inner classes
142 This program demonstrates cloning
143 This program demonstrates inheritance
144 This program demonstrates object construction
145 This program demonstrates parameter passing in Java
146 This program demonstrates static methods
147 This program demonstrates the equals method
148 This program demonstrates the use of inner classes
149 This program demonstrates the use of local inner classes
150 This program demonstrates the use of static inner classes
151 This program tests the Employee class
152 This shows off the uses of this
153 Tick Tock with an Anonymous Class
154 To show that certain things really must be initialized
155 To String Demo
156 ToString -- demo program to show a toString method
157 ToString(Object[] array)
158 Use a generic toString()
159 Uses serialization to perform deep copy cloning
160 Using final with method arguments
161 Using inner classes for callbacks
162 Using Static Variables
163 Utility for object cloning
164 Visibility
165 With concrete or abstract classes, inner classes are the only way to produce the effect
166 You can insert Cloneability at any level of inheritance