Tuesday, May 31, 2011

How to get rid of Thumb.db file?

Objective :

* How to get rid of Thumb.db file?
* How to stop Thumb.db file from being created automatically?

If you don't want Thumbs.db File to be created automatically?

Steps :

Go to:
1. My Computer
2. Tools Menu
3. Folder Option
4. View Tab
5. Check the Option: 'Dont Cache thumbnails'

And its done!

If still your computer generates Thumb.db files then your computer must be affected from virus / worms, etc.

Labels: , , , ,

Wednesday, May 25, 2011

Separators in Java

Following are the some characters which are generally used as the separators in Java.

Separator
Name
Use
.
Period
It is used to separate the package name from sub-package name & class name. It is also used to separate variable or method from its object or instance.
,
Comma
It is used to separate the consecutive parameters in the method definition. It is also used to separate the consecutive variables of same type while declaration.
;
Semicolon
It is used to terminate the statement in Java.
()
Parenthesis
This holds the list of parameters in method definition. Also used in control statements & type casting.
{}
Braces
This is used to define the block/scope of code, class, methods.
[]
Brackets
It is used in array declaration.
Separators in Java

Labels: , , ,

Tuesday, May 24, 2011

Operators in Java


In Java we are provided with number of different operators & these operators are further divided into arithmetic, bitwise, relational and logical groups.

Arithmetic Operators
The arithmetic operators are used to perform the arithmetic operations in algebra.

Operator
Operation
+
Addition
-
Subtraction
*
Multiplication
/
Division
%
Modulus
++
Increment
+=
Addition assignment
-=
Subtraction assignment
*=
Multiplication assignment
/=
Division assignment
%=
Modulus assignment
--
Decrement
Arithmetic Operators in Java


Bitwise Operators
The bitwise operators are used to perform the different operations depending upon the individual operators.

Operator
Operation
~
Bitwise Unary NOT
&
Bitwise AND
|
Bitwise OR
^
Bitwise Exclusive OR
>> 
Shift Right with Sign Fill
>>> 
Shift Right with Zero Fill
<< 
Shift Left
&=
Bitwise AND assignment
|=
Bitwise OR assignment
^=
Bitwise Exclusive OR assignment
>>=
Shift Right assignment
>>>=
Shift Right Zero Fill assignment
<<=
Shift Left assignment
Bitwise Operators in Java


Relational Operators
The relational operators are used relate or to determine the relationship between the two operands.

Operator
Operation
==
Equal to
!=
Not equal to
Greater than
Less than
>=
Greater than equal to
<=
Less than equal to
Relational Operators in Java

 
Boolean Logical Operators
The boolean logical operators are used combine the two boolean operands resulting in new boolean value.

Operator
Operation
&
Logical AND
|
Logical OR
^
Logical Exclusive OR
&&
Short-circuit AND
||
Short-circuit OR
!
Logical Unary NOT
&=
AND assignment
|=
OR assignment
^=
Exclusive OR assignment
==
Equal to
!=
Not equal to
?:
Ternary If-Then-Else
Boolean Logical Operators in Java


The ? Operator
This is the special ternary operator in Java which is used to replace certain types of if-then-else statements.

Syntax :-
expression1 ? expression2 : expression3
 
 

If expression1 results boolean value true then, expression2 is executed otherwise expression3 is executed.

Labels: , , ,

Saturday, May 21, 2011

Keywords in Java


In Java there are total 49 keywords are available. The keywords “const” & “goto” are reserved & not used.

Following are the keywords in Java:
abstract
assert
boolean
break
byte
case
catch
char
class
const
continue
default
do
double
else
extends
final
finally
float
for
go
if
implements
import
instanceof
int
interface
long
native
new
package
private
protected
public
return
short
static
strictfp
super
switch
synchronized
this
throw
throws
transient
try
void
volatile
while
------
Keywords in Java

Labels: , , ,