Tuesday, October 4, 2016

Stream:- Stream is a intermediator among input, output and user. All streams
are represented by class in java.io package. Streams are classified into two types 1) Input Stream 2) Output Stream Input Stream: Data is received from input devices in sequences then it is called "input stream"
or "Source Stream" EX:- Keyboard Output Stream: Data is passed output devices then it is called "output stream" or "Destination stream". EX:- Monitor

Sunday, October 2, 2016


Member Operator:-

This operator is also called as dot operator and it will represents
the members of a package or class. Syntax:- packagename.classname Eg:- java.lang.System java.lang.String Every class have variables and members, we are using dot operator to represent
the variable of a class and method of a class. Syntax 1:- Variables of a class classname.variable name Eg:- System . out System . err Syntax 2:- Methods of a class classname.method name Eg:- Math . Sqrt()

Wednesday, September 28, 2016

New Operator:-

New operator is used for creating a object to the class. Syntax:- class name obj = new class name(); Eg:- Employee e = new Employee();

Cast Operator:-

It is used to convert the data from one data type to another data type. Eg:- double q = 26.546; int x = (int)a; Lets see a example program on cast operator class Cast { public Static void main(String args[]); { double a = 26.546; System.Out.println("the value of a=" +a); int x=(int)a; System.Out.println("the value of x=" +x); } }

Monday, September 26, 2016


Unary Operator

The Unary Operators are as follows.... => - => ++ => -- We will see a program in JAVA on Unary Operators class Unary { Public Static void main(Sring a[]) { int a=10; System.Out.println("the value of a="+a); System.Out.println("the value of -a="+(-a)); System.Out.println("the value of ++a="+(++a)); System.Out.println("the value of a="+a); System.Out.println("the value of a++="+(a++)); System.Out.println("the value of a="+a); System.Out.println("the value of --a="+(--a)); System.Out.println("the value of a-- ="+(a--)); } } Can anyone predict the output of the program???????? Lets see about the remaining operators in our next post. Have a tremendous Tuesday......

Saturday, September 24, 2016


Increment and Decrement Operator:-

Increment Operator(++) :- ++ is called increment operator and it is increases the
variable by '1'(one). Java is supported to two types of increment operators:- 1) pre increment operator 2) post increment operator Pre increment operator: The ++ is placed before the variable then it is called pre increment operator. Eg:- ++a, ++s Post increment operator: The ++ is placed after the variable then it is called pre increment operator. Eg:- a++, b++ Decrement Operator(++) :- -- is called decrement operator and it is decreases the
variable by '1'(one). Java is supported to two types of increment operators:- 1) pre increment operator 2) post increment operator Pre decrement operator: The -- is placed before the variable then it is called pre increment operator. Eg:- --a, --s Post decrement operator: The -- is placed after the variable then it is called pre increment operator. Eg:- a--, b--

Thursday, September 22, 2016


Boolean Operator:-

The following are the logical operators:- * & * | * ! Boolean AND Truth Table C1 C2 Output True True True False True False True False False False False False From the above table, we understand that the condition 1 and condition 2
are true then the output will be true, otherwise it will be false. Boolean OR Truth Table C1 C2 Output True True True False True True True False True False False False From the above table, we understand that the condition 1 and condition 2
are false then the output will be false, otherwise it will be true. Boolean NOT Truth Table C Output True False False True From the above table, we understand that the condition is true then the output is
false, if the condition is false then the output is true.

Sunday, September 18, 2016


Logical Operator:-

The following are the logical operators:- * && * || * ! Logical AND Truth Table C1 C2 Output True True True False True False True False False False False False From the above table, we understand that the condition 1 and condition 2
are true then the output will be true, otherwise it will be false. Logical OR Truth Table C1 C2 Output True True True False True True True False True False False False From the above table, we understand that the condition 1 and condition 2
are false then the output will be false, otherwise it will be true. Logical NOT Truth Table C Output True False False True From the above table, we understand that the condition is true then the output is
false, if the condition is false then the output is true.