Skip to content

Commit e8871b2

Browse files
committed
Codes
1 parent ed54ddb commit e8871b2

31 files changed

Lines changed: 553 additions & 0 deletions

HeapFul.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import java.util.ArrayList;
2+
3+
public class HeapFul {
4+
5+
public static void main(String[] args) throws InterruptedException {
6+
7+
// How Object is Eligable for G.C
8+
// 1. object become null
9+
// 2. assign other object reference in your object
10+
// TODO Auto-generated method stub
11+
ArrayList list = new ArrayList();
12+
Customer shyam = new Customer(1002,"Customer","3333",2222);
13+
Customer mike = new Customer(1003,"Customer2","4444",4444);
14+
mike = shyam;
15+
System.out.println("Program Going to DIE ....");
16+
while(true){
17+
Customer ram = new Customer(1001,"Ram","2222",1000);
18+
list.add(ram);
19+
Thread.sleep(50);
20+
//ram = null;
21+
}
22+
23+
}
24+
25+
}

MyApps/.classpath

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="lib" path="hamcrest-core-1.3 (1).jar"/>
6+
<classpathentry kind="lib" path="junit-4.12 (1).jar"/>
7+
<classpathentry kind="output" path="bin"/>
8+
</classpath>

MyApps/.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>MyApps</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.8
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11+
org.eclipse.jdt.core.compiler.source=1.8

MyApps/bin/AddLogic.class

902 Bytes
Binary file not shown.

MyApps/bin/AddTester.class

1.41 KB
Binary file not shown.

MyApps/bin/ArrayDemo.class

1.09 KB
Binary file not shown.

MyApps/bin/Customer.class

3 KB
Binary file not shown.

MyApps/bin/DebugDemo.class

707 Bytes
Binary file not shown.

MyApps/bin/Demo2.class

1.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)