Posts Tagged ‘Java 2 Standard Edition’
If you want to set the path for Java, there are two main types for setting system path for Java which are as follows;
- Temporary Path
- Permanent Path
For the above two types, the video describes the complete step by step procedure for setting path for Java :
Or you can go through this tutorial :
f. But if the other message having length nearly equal to half a page then path is set.
3. Permanent Path :
- What are the escape sequences in Java?
- What are the escape characters in Java?
Generally we enter all the characters directly. The escape sequences are used for those characters which cannot be entered directly.
|\n||New Line (i.e. Line feed)|
|\ddd||Octal Characters (i.e. ddd)|
|\uxxxx||Hexadecimal Unicode Characters (i.e. xxxx)|
Escape Sequences in Java
Following are the some characters which are generally used as the separators in Java.
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.
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.
It is used to terminate the statement in Java.
This holds the list of parameters in method definition. Also used in control statements & type casting.
This is used to define the block/scope of code, class, methods.
It is used in array declaration.
Separators in Java
In Java we are provided with number of different operators & these operators are further divided into arithmetic, bitwise, relational and logical groups.
The arithmetic operators are used to perform the arithmetic operations in algebra.
Arithmetic Operators in Java
The bitwise operators are used to perform the different operations depending upon the individual operators.
|~||Bitwise Unary NOT|
|^||Bitwise Exclusive OR|
|>>||Shift Right with Sign Fill|
|>>>||Shift Right with Zero Fill|
|&=||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
The relational operators are used relate or to determine the relationship between the two operands.
|!=||Not equal to|
|>=||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.
|^||Logical Exclusive OR|
|!||Logical Unary NOT|
|^=||Exclusive OR assignment|
|!=||Not equal to|
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.
If expression1 results boolean value true then, expression2 is executed otherwise expression3 is executed.
In Java there are total 49 keywords are available.
The keywords “const” & “goto” are reserved & not used.
The “true”, “false” & “null” are values.
One cannot use the keywords for any other purpose.
Following are the keywords in Java:
Keywords in Java