• We Code
  • We Design
  • We Develope
  • We Write
  • We Share

menu

Tuesday, August 14, 2012

operator assignment in Java

0 comments
All five operators can be used in operator assignment .This helps to avoid repeating operators in two places of a statement

      //OperatorAssignmentTest.java

               public class OperatorAssignmentTest.java


                 
                           

                  {
                 public static void main(String args[] )throws Exception
                   {  
                             int i=10;
                             i=i+1;
                     System.out.println.("i initail  value is 10 ,i+1 is" +i);
                             int j=10;
                             j+=1;
                     System.out.println.("j initail  value is 10 ,j+1 is" +j);
                     }
                 }

Read more ►

Sunday, August 12, 2012

AIRTHMETIC OPERATORS in JAVA

0 comments
In java these are the following arithmetic operators



operator             description

.........................................................
+                         addition
-                          subtract
*                         multiplication
/                          division
%                       modulus/reminder
.............................................................


arithmetic operators in java takes two operand and perform arithmetic operation like addition subtraction .

//airthmeticoperatortest.java



public class ArithmeticOperatorTest

{
  public static void main ( String args[]) throws exception
{
int=10,j=20;
int k=30;
System.out.println("i+j ="+k);
int l=i-j;
system.out.println("i-j="+l);
int m=i*j;
System.out.println("i*j="+m);
}
}



Read more ►

Thursday, August 9, 2012

OPERATORS

0 comments
The next step of java learning course is operator . We will see operator now

Operator are some  reserved  character such as + , - , * , / ,% etc .


Operators operate on single operands or multiple operands to perform some operations.


operator which performs operation on a single operand is called as unary operator.


Operator which performs operation on two operands is called binary operator.



Operator which performs operation on three operands is called ternary operator.

operator are classified into 4 types

 1  airthmetic operator 
 2  biwise operator 
 3  relational operator 
 4  logical operator 

Read more ►

Understanding First Java program

2 comments
It is the time to move in programming now .After learning the feature of java the next step of java learning is to understand the art of program writing.Here we will go with the simple program and will see how to write a simple program.


================================================================
||       public class hello                                                                                                         ||
||        {                                                                                                                                   ||
||       public static void main{String args[] }throws Exception                                            ||
||       {                                                                                                                                    ||
||      System.out.println("hello this is my first java program");                                         ||
||       }                                                                                                                                    ||
||                                                                                                                                             ||
================================================================
System is in class java.lang package which comes with jdk by default hence we need not have to include  import statement

In System class "out" is a staticvariable for print stream class

in print writer class print() and println() methods are given that they can print any type data type valueit may be an byte short word int long float double char etc.

====================================================================

To compile the above program
javac hello.java

To run the above program
java hello
Read more ►

interpreted

0 comments
                               INTERPRETED


The Java is an interpreted language as well. With an interpreted language 
like Java, programs run directly from the source code. 

The interpreter program reads the source code and translates it on the fly 
into computations. Thus,the  Java is language  is interpreted language depends
 on an interpreter program.
The versatility of being platform independent makes Java to different and 
attractive  from other languages. The java program  source code to be written 
and distributed is platform independent. 
Another main advantage of Java language as an interpreted language is its error
 debugging quality. Due to this quality any error  in the program gets traced and 
shortout.
Read more ►

dynamic and secure

0 comments
                      Dynamic
While  the execution of  java program the user can get the  files dynamically from 
a local drive of  system or from a system many miles away from the user just by 
connecting with the Internet.
                        

                         Secure
Java language strictly does not use memory pointers explicitly. Java programs  run 
under an area called the sand box. Security manager determines the accessibility 
options of a class like reading and writing a file to the local  disk.   Java 
technology uses the public key encryption system to allow the java applications to
 transmit over the internet in the secure encrypted form. The bytecode Verifier is 
responsible for the check of classes after loading. 

Read more ►

Wednesday, August 8, 2012

robustness in java

0 comments
                                           ROBUST
Java has the very strong memory allocation and  the automatic garbage collection mechanism. It provides the very powerful exception handling and typechecking mechanism as compare to other programming languages like c and c++. Compiler checks the program for  the  error and interpreter checks the run time error and makes the computer system secure from damage. Due to these all of the above features the java language is robust.
Read more ►