Search This Blog
Friday, September 24, 2010
Oracle Postpones Some Features in JDK 7
From the linked article: "Jigsaw is an effort to make Java more modular, while Project Lambda aims to bring closures to Java, and Project Coin is an effort to make small changes to Java's behavior and syntax."
Although none of these, with the exception of closures, really speak to me (and Java is the language I earn a living with...), my personal feeling is summed up in the first question that came to my mind: why postpone features so that JDK 7 can get out of the pipes fast (i.e. 2011) and still have them in JDK 8 which is planned to be released in 2012?
Maybe that one of the reasons is to not lose too much momentum, but I still don't understand the logic behind the seemingly pressing need to release JDK 7. I don't deny that a 2D and 3D graphics engine would be useful, or that JavaFX bridging "the gap between Java applications and the browser's DOM, where HTML 5 and JavaScript exist" isn't important. I'm just puzzled by the timeline. Less than 18 months between two official JDK releases seems kind of hasty, even in the light of previous release dates. Take a look at JDK 6 and you'll wonder how "small language changes" (see the Oracle webpage linked below) could be unwieldy enough to not be baked in the next release.
In my eyes, Java is just fine as it is since it has always served any purposes I've ever had in my professional projects. I've always felt the language was overhyped for a long time, now it's threatened by the likes of Ruby, Lisp or Smalltalk. I feel like the way Java is either glorified or decried isn't how a language should be treated. I guess you can't fight the tides of progress. But keeping the final product consistent with the feature set until release time looks preferable to removing features, including the drastic change and power Lambda will bring into Java. Especially when the latest release is three months short of being four years old.
The ironic thing is that the "modularization" and "developer productivity" sections still list projects Jigsaw and Coin amongst the key features on Oracle's own website.
Wednesday, September 1, 2010
History of Java
1991
The Green Project Begins
MS DOS is the dominant operating system
Cell phones weigh half a pound
"Biosphere 2" project begins
1992
"Oak" is the language
*7 Debuts
"Duke" is featured in the Interface
Johnny Carson signs off "The Tonight Show" on NBC
1993
The Green Project becomes FirstPerson
Mosaic v1.0 is released
"Cheers" ends an 11-year run
1994
WebRunner released — the first browser that supports moving objects and dynamic executable content
The Apple QuickTake 100, the first consumer digital camera, goes on sale for less than $1,000
"Friends" debuts on NBC
1995
Java technology released to a select group on the Web site wicked.neato.org
The San Jose Mercury News runs a front-page article about Java technology
Name changed from "Oak" to "Java"
Announced at Sun World -- Java technology is officially born
1996
The first JavaOne Developer Conference
JDKtm 1.0 software is released
Chess computer Deep Blue defeats Garry Kasparov for the first time
"Dolly" the first cloned sheep is born
1997
Over 220,000 downloads of JDK 1.1 software occur in just three weeks
JavaOne draws 8,000 attendees, becoming the world's largest developer conference
Java Card 2.0 platform is unveiled
43% of U.S. families own a computer
1998
JDK 1.1 release downloads top 2 million
Visa launches world's first smart card based on Java Card technology
The Java Community Process (JCP) program formalized
"Who Wants to Be a Millionaire?" premieres in the U.K
1999
Java 2 platform source code is released
JavaOne draws 20,000
J2EE beta software is released
"Star Wars Episode I: The Phantom Menace" released
2000
Over 400 Java User Groups are established worldwide
Java Developer Connection program tops 1.5 million members
Steve Jobs joins Scott McNealy on stage at JavaOne to announce a major commitment by Apple in support of Java technology
Heavy Metal band Metallica sues Napster for copyright violations
2001
First international JavaOne conference in Yokohama Japan
Over 1 million downloads of the Java Platform, Enterprise Edition (Java EE) SDK
Google Inc. PageRank search algorithm patent awarded
"The Lord of the Rings: The Fellowship of the Ring" is released
2002
J2EE SDK downloads reach 2 million
78% of executives view J2EE technology as the most effective platform for building and deploying Web services
The Euro is introduced
"The Osbournes" becomes a surprise hit on MTV
2003
Java technology runs in almost 550 million desktops
Almost 75% of professional developers use Java programming language as their primary development language
Commercial Voice-Over-Internet (VoiP) phone service begins
"The Da Vinci Code" is published
2004
Java 2 Platform, Standard Edition 5 (Project Tiger) is released
The Java technology-powered Mars Rover (Spirit) touches down on Mars
Sun Java Studio Creator is launched
2005
Java technology celebrates its 10th birthday
Approximately 4.5 million developers use Java technology
Over 2.5 billion Java technology-enabled devices are available
java.com bundles the Google Toolbar with the JRE download
2006
Rich Green announces at the JavaOne 2006 Conference that it's not a matter of when Sun will open source Java technology, but how. The NetBeans IDE 5.0 is released. Sun open-sourced Java EE components as the Glassfish Project to java.net. Java SE and ME initial components are released as open source. Pirates of the Caribbean: Dead Man's Chest is released.
Tuesday, August 31, 2010
Previous Year's Papers OF IPU
Follow the link below...
http://www.studentchacha.com/std_qp_form_btech.php?university_name=GURU%20GOVIND%20SINGH%20INDRAPRASTHA%20UNIVERSITY
Feel free to appreciate my work...
Lecture Plan of CSE 5th Sem
Follow the link below...
http://www.4shared.com/file/7C5GPOZe/lectureplan5thsem.html
For any other material:
feel free to request in Comments
Saturday, August 14, 2010
Operators and assignments in Java
1.1 Increment and Decrement operators ++ --
We have postfix and prefix notation. In post-fix notation value of the variable/expression is modified after the value is taken for the execution of statement. In prefix notation, value of the variable/expression is modified before the value is taken for the execution of statement.
x = 5; y = 0; y = x++; Result will be x = 6, y = 5
x = 5; y = 0; y = ++x; Result will be x = 6, y = 6
Implicit narrowing conversion is done, when applied to byte, short or char.
1.2 Unary minus and unary plus + -
+ has no effect than to stress positivity.
- negates an expression's value. (2's complement for integral expressions)
1.3 Negation !
Inverts the value of a boolean expression.
1.4 Complement ~
Inverts the bit pattern of an integral expression. (1's complement - 0s to 1s and 1s to 0s)
Cannot be applied to non-integral types.
1.5 Cast ()
Persuades compiler to allow certain assignments. Extensive checking is done at compile and runtime to ensure type-safety.
2. Arithmetic operators - *, /, %, +, -
· Can be applied to all numeric types.
· Can be applied to only the numeric types, except '+' - it can be applied to Strings as well.
· All arithmetic operations are done at least with 'int'. (If types are smaller, promotion happens. Result will be of a type at least as wide as the wide type of operands)
· Accuracy is lost silently when arithmetic overflow/error occurs. Result is a nonsense value.
· Integer division by zero throws an exception.
· % - reduce the magnitude of LHS by the magnitude of RHS. (continuous subtraction)
· % - sign of the result entirely determined by sign of LHS
· 5 % 0 throws an ArithmeticException.
· Floating point calculations can produce NaN (square root of a negative no) or Infinity ( division by zero). Float and Double wrapper classes have named constants for NaN and infinities.
· NaN's are non-ordinal for comparisons. x == Float.NaN won't work. Use Float.IsNaN(x) But equals method on wrapper objects(Double or Float) with NaN values compares Nan's correctly.
· Infinities are ordinal. X == Double.POSITIVE_INFINITY will give expected result.
· + also performs String concatenation (when any operand in an expression is a String). The language itself overloads this operator. toString method of non-String object operands are called to perform concatenation. In case of primitives, a wrapper object is created with the primitive value and toString method of that object is called. ("Vel" + 3 will work.)
· Be aware of associativity when multiple operands are involved.
System.out.println( 1 + 2 + "3" ); // Prints 33
System.out.println( "1" + 2 + 3 ); // Prints 123
3. Shift operators - <<, >>, >>>
· << performs a signed left shift. 0 bits are brought in from the right. Sign bit (MSB) is preserved. Value becomes old value * 2 ^ x where x is no of bits shifted.
· >> performs a signed right shift. Sign bit is brought in from the left. (0 if positive, 1 if negative. Value becomes old value / 2 ^ x where x is no of bits shifted. Also called arithmetic right shift.
· >>> performs an unsigned logical right shift. 0 bits are brought in from the left. This operator exists since Java doesn't provide an unsigned data type (except char). >>> changes the sign of a negative number to be positive. So don't use it with negative numbers, if you want to preserve the sign. Also don't use it with types smaller than int. (Since types smaller than int are promoted to an int before any shift operation and the result is cast down again, so the end result is unpredictable.)
· Shift operators can be applied to only integral types.
· -1 >> 1 is -1, not 0. This differs from simple division by 2. We can think of it as shift operation rounding down.
· 1 << 31 will become the minimum value that an int can represent. (Value becomes negative, after this operation, if you do a signed right shift sign bit is brought in from the left and the value remains negative.)
· Negative numbers are represented in two's complement notation. (Take one's complement and add 1 to get two's complement)
· Shift operators never shift more than the number of bits the type of result can have. ( i.e. int 32, long 64) RHS operand is reduced to RHS % x where x is no of bits in type of result.
int x;
x = x >> 33; // Here actually what happens is x >> 1
4. Comparison operators - all return boolean type.
4.1 Ordinal comparisons - <, <=, > , >=
· Only operate on numeric types. Test the relative value of the numeric operands.
· Arithmetic promotions apply. char can be compared to float.
4.2 Object type comparison - instanceof
· Tests the class of an object at runtime. Checking is done at compile and runtime same as the cast operator.
· Returns true if the object denoted by LHS reference can be cast to RHS type.
· LHS should be an object reference expression, variable or an array reference.
· RHS should be a class (abstract classes are fine), an interface or an array type, castable to LHS object reference. Compiler error if LHS & RHS are unrelated.
· Can't use java.lang.Class or its String name as RHS.
· Returns true if LHS is a class or subclass of RHS class
· Returns true if LHS implements RHS interface.
· Returns true if LHS is an array reference and of type RHS.
· x instanceof Component[] - legal.
· x instanceof [] - illegal. Can't test for 'any array of any type'
· Returns false if LHS is null, no exceptions are thrown.
· If x instanceof Y is not allowed by compiler, then Y y = (Y) x is not a valid cast expression. If x instanceof Y is allowed and returns false, the above cast is valid but throws a ClassCastException at runtime. If x instanceof Y returns true, the above cast is valid and runs fine.
4.3 Equality comparisons - ==, !=
· For primitives it's a straightforward value comparison. (promotions apply)
· For object references, this doesn't make much sense. Use equals method for meaningful comparisons. (Make sure that the class implements equals in a meaningful way, like for X.equals(Y) to be true, Y instance of X must be true as well)
· For String literals, == will return true, this is because of compiler optimization.
5. Bit-wise operators - &, ^, |
· Operate on numeric and boolean operands.
· & - AND operator, both bits must be 1 to produce 1.
· | - OR operator, any one bit can be 1 to produce 1.
· ^ - XOR operator, any one bit can be 1, but not both, to produce 1.
· In case of booleans true is 1, false is 0.
· Can't cast any other type to boolean.
6. Short-circuit logical operators - &&, ||
· Operate only on boolean types.
· RHS might not be evaluated (hence the name short-circuit), if the result can be determined only by looking at LHS.
· false && X is always false.
· true || X is always true.
· RHS is evaluated only if the result is not certain from the LHS.
· That's why there's no logical XOR operator. Both bits need to be known to calculate the result.
· Short-circuiting doesn't change the result of the operation. But side effects might be changed. (i.e. some statements in RHS might not be executed, if short-circuit happens. Be careful)
7. Ternary operator
· Format a = x ? b : c ;
· x should be a boolean expression.
· Based on x, either b or c is evaluated. Both are never evaluated.
· b will be assigned to a if x is true, else c is assigned to a.
· b and c should be assignment compatible to a.
· b and c are made identical during the operation according to promotions.
8. Assignment operators.
· Simple assignment =.
· op= calculate and assign operators extended assignment operators.
· *=, /=, %=, +=, -=
· x += y means x = x + y. But x is evaluated only once. Be aware.
· Assignment of reference variables copies the reference value, not the object body.
· Assignment has value, value of LHS after assignment. So a = b = c = 0 is legal. c = 0 is executed first, and the value of the assignment (0) assigned to b, then the value of that assignment (again 0) is assigned to a.
· Extended assignment operators do an implicit cast. (Useful when applied to byte, short or char)
byte b = 10;
b = b + 10; // Won't compile, explicit cast required since the expression evaluates to an int
b += 10; // OK, += does an implicit cast from int to byte
9. General
· In Java, No overflow or underflow of integers happens. i.e. The values wrap around. Adding 1 to the maximum int value results in the minimum value.
· Always keep in mind that operands are evaluated from left to right, and the operations are executed in the order of precedence and associativity.
· Unary Postfix operators and all binary operators (except assignment operators) have left to right assoiciativity.
· All unary operators (except postfix operators), assignment operators, ternary operator, object creation and cast operators have right to left assoiciativity.
· Inspect the following code.
public class Precedence {
final public static void main(String args[]) {
int i = 0;
i = i++;
i = i++;
i = i++;
System.out.println(i); // prints 0, since = operator has the lowest precedence.
int array[] = new int[5];
int index = 0;
array[index] = index = 3; // 1st element gets assigned to 3, not the 4th element
for (int c = 0; c < array.length; c++)
System.out.println(array[c]);
System.out.println("index is " + index); // prints 3
}
}
Type of Operators
Operators
Associativity
Postfix operators
[] . (parameters) ++ --
Left to Right
Prefix Unary operators
++ -- + - ~ !
Right to Left
Object creation and cast
new (type)
Right to Left
Multiplication/Division/Modulus
* / %
Left to Right
Addition/Subtraction
+ -
Left to Right
Shift
>> >>> <<
Left to Right
Relational
< <= > >= instanceof
Left to Right
Equality
== !=
Left to Right
Bit-wise/Boolean AND
&
Left to Right
Bit-wise/Boolean XOR
^
Left to Right
Bit-wise/Boolean OR
|
Left to Right
Logical AND (Short-circuit or Conditional)
&&
Left to Right
Logical OR (Short-circuit or Conditional)
||
Left to Right
Ternary
? :
Right to Left
Assignment
= += -= *= /= %= <<= >>= >>>= &= ^= |=
Right to Left
Friday, August 13, 2010
Serial Number Windows XP Pro SP1,SP2,SP 3 Genuine Original
Actually posting about the serial number on my Genuine XP on my blog posts can be money without capital, since the longer blogspot google comes months if the bloggers said hehehe, so exhausted all of my blog, and recently added another that deleted my blog: (, luckily a week after didelete can still be seen through Cachenya blog, so there's still no copas sempet data data that are important to my own but hehehe, including genuine ini.serial XP serial number that has been the first reinstall I used every computer, even with the installation CD that already asphalt aka plasu original but, due to burning do not know how many times already in just this hehehe.SN XPnya instalan which I will share in all that you need, after I had already posted about How to download MP3 songs on 4shared.
Okay dah straight out, I try to share SN XP that can be used for all types of XP, Professional or other
1. V2C47 - MK7JD - 3R89F - D2KXW - VPK3J
2. H689T - BFM2F - R6GF8 - 9WPYM - B6378
3. WCBG6 - 48 773 - B4BYX - 73KJP - KM3K3
Now with three keys on windows xp you can like Original, which I normally use XP serial serial pertama.Untuk besides the above please try the following series:
BKQW7 - 3JYTB - D26TX - DHPDM - 3MTKG
XP PRO SP 2: QW4HD - DQCRG - HM64M - 6GJRK-8K83T
XP 64-Bit: M4676 - 2VW7F - 6BCVH - 9QPBF - QBRBM
And if you use other OS than XP, for example vista, not hurt to try this series if you do not have the serial.
368Y7 - 49YMQ - VRCTY - 3V3RH - WRMG7
72PFD - BCBK8 - R7X4H - 6F2XJ - VVMP9
Windows Vista Business: J9QVT-JJMB9-RVJ38-M8KT6-DMT9M
Windows Vista Home Basic: KJTCW-YQGRK-XPQMR-YTQG8-DKVG6
Windows Vista Home Basic N: YQWWH-2YD6Y-V3K2X-H4H8V-WJ8WT
Windows Vista Home Premium: PYYBC-K9XT9-V92KD-6CT89-4VB82
Windows Vista Ultimate:
PVVFY-2F78Q-8T7M8-HDQB2-BR3YT
6F2D7-2PCG6-YQQTB-FWK9V-932CC
R8G6T-YBCXF-R29PG-9VFY3-FR9JB
YFKBB-PQJJV-G996G-VWGXY-2V3X8
368Y7-49YMQ-VRCTY-3V3RH-WRMG7
2QBP3-289MF-9364X-37XGX-24W6P
Windows Vista Ultimate RTM Build 6.0.6000.16384:
- GLAD2-SEEUH-AVEAS-ENSEO-FHUMR
- YFKBB-PQJJV-G996G-VWGXY-2V3X8
Windows Vista Enterprise: CYD8T-QHBMC-6RCMK-4GHRD-CRRB7
Black XP edition: W9VCJ-74DXW-JDDBV-PW777-WXD2T
Windows 7 (Seven) 32-Bit: 4HJRK-X6Q28-HWRFY-WDYHJ-K8HDH
Windows 7 64-Bit: JYDV8-H8VXG-74RPT-6BJPB-X42V4
Saturday, August 7, 2010
Java Fundamentals
1. Source file's elements (in order)
- Package declaration
- Import statements
- Class definitions
2. Importing packages doesn't recursively import sub-packages.
3. Sub-packages are really different packages, happen to live within an enclosing package. Classes in sub-packages cannot access classes in enclosing package with default access.
4. Comments can appear anywhere. Can't be nested. No matter what type of comments.
5. At most one public class definition per file. This class name should match the file name. If there are more than one public class definitions, compiler will accept the class with the file's name and give an error at the line where the other class is defined.
6. It's not required having a public class definition in a file. Strange, but true. J In this case, the file's name should be different from the names of classes and interfaces (not public obviously).
7. Even an empty file is a valid source file.
8. An identifier must begin with a letter, dollar sign ($) or underscore (_). Subsequent characters may be letters, $, _ or digits.
9. An identifier cannot have a name of a Java keyword. Embedded keywords are OK. true, false and null are literals (not keywords), but they can't be used as identifiers as well.
10. const and goto are reserved words, but not used.
11. Unicode characters can appear anywhere in the source code. The following code is valid.
ch\u0061r a = 'a';
char \u0062 = 'b';
char c = '\u0063';
12. Java has 8 primitive data types.
Data Type | Size (bits) | Initial Value | Min Value | Max Value |
boolean | 1 | false | false | true |
byte | 8 | 0 | -128 (-27) | 127 (27 - 1) |
short | 16 | 0 | -215 | 215 - 1 |
char | 16 | '\u0000' | '\u0000' (0) | '\uFFFF' (216 - 1) |
int | 32 | 0 | -231 | 231 - 1 |
long | 64 | 0L | -263 | 263 - 1 |
float | 32 | 0.0F | 1.4E-45 | 3.4028235E38 |
double | 64 | 0.0 | 4.9E-324 | 1.7976931348623157E308 |
13. All numeric data types are signed. char is the only unsigned integral type.
14. Object reference variables are initialized to null.
15. Octal literals begin with zero. Hex literals begin with 0X or 0x.
16. Char literals are single quoted characters or unicode values (begin with \u).
17. A number is by default an int literal, a decimal number is by default a double literal.
18. 1E-5d is a valid double literal, E2d is not (since it starts with a letter, compiler thinks that it's an identifier)
19. Two types of variables.
a. Member variables
- Accessible anywhere in the class.
- Automatically initialized before invoking any constructor.
- Static variables are initialized at class load time.
- Can have the same name as the class.
Must be initialized explicitly. (Or, compiler will catch it.) Object references can be initialized to null to make the compiler happy. The following code won't compile. Specify else part or initialize the local variable explicitly.
public String testMethod ( int a) {
String tmp;
if ( a > 0 ) tmp = "Positive";
return tmp;
}
· Can have the same name as a member variable, resolution is based on scope.
20. Arrays are Java objects. If you create an array of 5 Strings, there will be 6 objects created.
21. Arrays should be
- Declared. (int[] a; String b[]; Object []c; Size should not be specified now)
- Allocated (constructed). ( a = new int[10]; c = new String[arraysize] )
- Initialized. for (int i = 0; i <>
22. The above three can be done in one step.
int a[] = { 1, 2, 3 }; (or )
int a[] = new int[] { 1, 2, 3 }; But never specify the size with the new statement.
23. Java arrays are static arrays. Size has to be specified at compile time. Array.length returns array's size. (Use Vectors for dynamic purposes).
24. Array size is never specified with the reference variable, it is always maintained with the array object. It is maintained in array.length, which is a final instance variable.
25. Anonymous arrays can be created and used like this: new int[] {1,2,3} or new int[10]
26. Arrays with zero elements can be created. args array to the main method will be a zero element array if no command parameters are specified. In this case args.length is 0.
27. Comma after the last initializer in array declaration is ignored.
int[] i = new int[2] { 5, 10}; // Wrong
int i[5] = { 1, 2, 3, 4, 5}; // Wrong
int[] i[] = {{}, new int[] {} }; // Correct
int i[][] = { {1,2}, new int[2] }; // Correct
int i[] = { 1, 2, 3, 4, } ; // Correct
28. Array indexes start with 0. Index is an int data type.
29. Square brackets can come after datatype or before/after variable name. White spaces are fine. Compiler just ignores them.
30. Arrays declared even as member variables also need to be allocated memory explicitly.
static int a[];
static int b[] = {1,2,3};
public static void main(String s[]) {
System.out.println(a[0]); // Throws a null pointer exception
System.out.println(b[0]); // This code runs fine
System.out.println(a); // Prints 'null'
System.out.println(b); // Prints a string which is returned by toString
}
31. Once declared and allocated (even for local arrays inside methods), array elements are automatically initialized to the default values.
32. If only declared (not constructed), member array variables default to null, but local array variables will not default to null.
33. Java doesn't support multidimensional arrays formally, but it supports arrays of arrays. From the specification - "The number of bracket pairs indicates the depth of array nesting." So this can perform as a multidimensional array. (no limit to levels of array nesting)
34. In order to be run by JVM, a class should have a main method with the following signature.
public static void main(String args[])
static public void main(String[] s)
35. args array's name is not important. args[0] is the first argument. args.length gives no. of arguments.
36. main method can be overloaded.
37. main method can be final.
38. A class with a different main signature or w/o main method will compile. But throws a runtime error.
39. A class without a main method can be run by JVM, if its ancestor class has a main method. (main is just a method and is inherited)
40. Primitives are passed by value.
41. Objects (references) are passed by reference. The object reference itself is passed by value. So, it can't be changed. But, the object can be changed via the reference.
42. Garbage collection is a mechanism for reclaiming memory from objects that are no longer in use, and making the memory available for new objects.
43. An object being no longer in use means that it can't be referenced by any 'active' part of the program.
44. Garbage collection runs in a low priority thread. It may kick in when memory is too low. No guarantee.
45. It's not possible to force garbage collection. Invoking System.gc may start garbage collection process.
46. The automatic garbage collection scheme guarantees that a reference to an object is always valid while the object is in use, i.e. the object will not be deleted leaving the reference "dangling".
47. There are no guarantees that the objects no longer in use will be garbage collected and their finalizers executed at all. gc might not even be run if the program execution does not warrant it. Thus any memory allocated during program execution might remain allocated after program termination, unless reclaimed by the OS or by other means.
48. There are also no guarantees on the order in which the objects will be garbage collected or on the order in which the finalizers are called. Therefore, the program should not make any decisions based on these assumptions.
49. An object is only eligible for garbage collection, if the only references to the object are from other objects that are also eligible for garbage collection. That is, an object can become eligible for garbage collection even if there are references pointing to the object, as long as the objects with the references are also eligible for garbage collection.
50. Circular references do not prevent objects from being garbage collected.
51. We can set the reference variables to null, hinting the gc to garbage collect the objects referred by the variables. Even if we do that, the object may not be gc-ed if it's attached to a listener. (Typical in case of AWT components) Remember to remove the listener first.
52. All objects have a finalize method. It is inherited from the Object class.
53. finalize method is used to release system resources other than memory. (such as file handles and network connections) The order in which finalize methods are called may not reflect the order in which objects are created. Don't rely on it. This is the signature of the finalize method.
protected void finalize() throws Throwable { }
In the descendents this method can be protected or public. Descendents can restrict the exception list that can be thrown by this method.
54. finalize is called only once for an object. If any exception is thrown in finalize, the object is still eligible for garbage collection (at the discretion of gc)
55. gc keeps track of unreachable objects and garbage-collects them, but an unreachable object can become reachable again by letting know other objects of its existence from its finalize method (when called by gc). This 'resurrection' can be done only once, since finalize is called only one for an object.
56. finalize can be called explicitly, but it does not garbage collect the object.
57. finalize can be overloaded, but only the method with original finalize signature will be called by gc.
58. finalize is not implicitly chained. A finalize method in sub-class should call finalize in super class explicitly as its last action for proper functioning. But compiler doesn't enforce this check.
59. System.runFinalization can be used to run the finalizers (which have not been executed before) for the objects eligible for garbage collection.
Sunday, August 1, 2010
Please Read Them Carefully and Forward to all of Your Friends - Health is Wealth
Don't put your mobile closer to your ears until the
recipient answers, Because directly after dialing, the mobile phone would use it's maximum signaling power,
which is: 2watts = 33dbi. Please Be Careful. Please use left ear while using cell (mobile), because if you use the right one it may affect brain directly. This is a true fact from Apollo medical team.
2) APPY FIZZ
Do not drink APPY FIZZ . It contains cancer causing agent.
3) Mentos
Don't eat Mentos before or after drinking Coke or
Pepsi coz the person will die immediately as the mixture
becomes cyanide. Please fwd to whom u care.
4) Kurkure
Don't eat kurkure because it contains high amount of
plastic if U don't Believe burn kurkure n u can see
plastic melting. Please forward to all!!!!!!!!! !! News
report from Times of India
5) Avoid these tablets as they are very dangerous
* D cold
* Vicks action- 500
* Actified
* Coldarin
* Co some
* Nice
* Nimulid
* Cetrizet-D
They contain Phenyl- Propanol -Amide PPA.Which Causes strokes, and these tablets are banned in U.S.
6) Cotton Ear Buds
Cotton Ear Buds... (Must read it) Please do not show sympathy to people selling buds on roadside or at Signals..... Just wanted to warn you people not to buy those packs of ear buds you get at the roadside. It's made from cotton that has already been used in hospitals. They take all the dirty, blood and pus filled cotton, wash it, bleach it and use it to make ear buds. So, unless you want
to become the first person in the world to get Herpes Zoster Oticus (a viral infection of the inner, middle, and external ear) of the ear and that too from a cotton bud, DON'T BUY THEM! Please forward to all this may be helpful for someone..... .......
Thursday, July 29, 2010
Hacking Youtube to find good quality videos
I am gonna show you a small trick that will do all the wonders, and now you can always get good quality youtube videos.
Step1: Click to video that you want to see, the link will display on Address bar.
Example: http://www.youtube.com/watch?v=Ne1l6VNkuLM
Step2: Add &fmt=6 to the end of that string.
That address like:
http://www.youtube.com/watch?v=Ne1l6VNkuLM&fmt=6
Optional Step: To get more quality youtube video
.Add &fmt=18 to the end of that string, you’ll have the best quality video with direct download link !
Example:
http://www.youtube.com/watch?v=Ne1l6VNkuLM&fmt=18
Note: Appending &fmt=6 to the URL delivers a 448×336 resolution version of the video and appending &fmt=18 delivers a even better 480×360 resolution version.
Its that simple, now you have learned a secret of hacking Youtube for Good quality videos. Post your comments if you like the post.
Friday, July 16, 2010
Here's how.
- search the web for something like "Virus Construction Tool" or "Internet Worm Generator". Download it.
- run the program (click on its icon).
- fill in the form. Choose interesting names.
- check the boxes to indicate how you want this virus / worm to spread (e-mail, irc, ...)
- choose your options for 'payload'
click "Done". - click "create virus" or "generate"
- Save the file
- run it to see if it works.
Saturday, July 10, 2010
An Interesting thing
windows XP is having a hidden "Star Wars Movie" inside it???
You should be connected to the NET for using this.
Go to Starts-->Programs-->Run
Type
telnet towel.blinkenlights.nl
And hit enter......... Enjoy the magic!!!!
Sunday, July 4, 2010
The Java Market
The Java Market
According to Oracle, Java is the most popular and ubiquitous runtime available, with the following statistics as of January 2010:
- 9 million Java developers
- 840 million Java desktop installations
- 100+ different hardware platforms supported million Java desktop installations
- 2 million additional downloads per day
- Used by all of the Fortune 100 companies
- 5.5 billion Java cards
- 2.6 billion Java-enabled cell phones
- 250 partner cell phone carriers
- 100,000+ Java ME applications
- 40 million TVs and Blu-ray players
Java continues to be the most widely used single programming language today, edged out only by all scripting languages grouped together. But since Java the platform supports running applications written in various scripting languages, these numbers can be said to overlap. For instance, the Java virtual machine (JVM) will execute applications written in Java, Rexx, Ruby, JavaScript, Python, PHP Groovy, Clojure, and Scala. In many cases, Sun's HotSpot JVM will run these applications better than their natively compiled counterparts because the just-in-time (JIT) compiler will re-optimize the compiled code over time according to execution characteristics.
The bottom line is that Java has remained the language and/or platform of choice for enterprise and web application development for many years, and it continues to grow. With Java freely available for development use, and its use as the language of choice in many college computer-science curriculums, Java will likely remain at the top for many years to come.
Tuesday, June 29, 2010
10 BEST DESIGNED WEBSITES IN THE WORLD
- Apple.com
- Mozilla.com
- Iconbuffet.com
- WhyWeWhisper.com
- Circografico.com.ar
- Enhancedlabs.com
- Protolize.org
- Bearskinrug.co.uk
- Corkd.com
- Sumagency.com
#1 Apple.com
Apple is the best example of striking the balance of simplicity (white space, strong type) with rich imagery sensitively-applied.
It’s also a big, varied, constantly-new site with loads of content, which always feels easy & enjoyable to navigate.
For solving the numerous demands on the UI so elegantly, this is, in my opinion, the best-designed web site in the world today.
#2 Mozilla.com
Clear, open, fresh, simple. When you arrive at this site, you’re under no doubt what the site does, or where to start looking for what you want. The design is positive and happy. A winner.
#3 Iconbuffet.com
The site sells icons, so it lets the icons rule, showing its wares from the first page.
The colours and typography are solid & strong, projecting a trustworthy brand while not getting in the way of the proposition.
#4 WhyWeWhisper.com
“Why We Whisper – restoring our right to say it’s wrong” is a book about freedom of speech in the USA, written by Senator Jim DeMint and J. David Woodward.
The page design is a great example of pixel-saving in action, with very little complexity going into the page background (chrome), leaving room for large, clear type. I love the flourished rules between the quotes.
If I have one criticism, the page doesn’t tell you up-front what it’s about.. relying on prior knowledge or even reading, which may be a lot to ask.
Another very worthy simple & impacting book site is “Gangs of America.com”, book by Ted Nace.
#5 Circografico.com.ar/
The guy’s an illustrator, so his site has to:
- Show his work
- Be interesting and characterful
It does both these things really well!
The graphic design is designed around Alex’s work, with intelligent typography and just enough pixels used to give the site background its tattered, rich vibe.
I love the way his portfolio page uses gradients to suggest the work in a print context.
#6 EnhancedLabs.com
Another icon maker, doing bigger, richer icons, so the the site showcases them bigger & richer.
Bold, flattish colour creates a strong first impression and still lets the product stand out.
#7 Protolize.org
Tony Yoo’s collection of recommended web resources is a great example of strong graphic elements balancing to make a site that’s bold and easy to use.
Big text, simple nav, high usability, all wrapped in strong colour and finished off with nice graphical touches.
#8 Bearskinrug.co.uk
Another illustrator’s site (Kevin Cornell). What can I say about this that I didn’t say about Alex Dukal’s site?
It embodies the essence of Kevin’s style, and – if you look – does an excellent job of filling the space with content, needing almost no page furniture at all.
Count how many things on the page are both navigation and content. Everything has had the touch of the illustrator’s brush, so the site is just saturated with his talent.
#9 Corkd.com
Dan Cederholm’s personal wine review project provides a neat, cleanly-designed interface, featuring an intelligent colour scheme and fantastic simple logo.
Easy to use and fun to browse. This site strikes the balance just right.
#10 Sumagency.com
Oh so 2.0, but I just love it. You know what gets me every time? Acres of balanced white space, easy-read text and cute content graphics combining to tell a simple story. First-rate.
Monday, June 21, 2010
List of Companies using java
Technology Automotive Banking & Finance Consulting | Aviation Engineering & Aerospace Health Care & Medical Science Government Academia Retail Others Entertainment |
Friday, June 18, 2010
java Video Tutorial
View the tutorial serially lecture numberwise for the best result.
Click here for the tutorial...