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.

Tuesday, September 13, 2016


Conditional Operator:-

If the condition is true then expression 1 will be executed otherwise
expression 2 will be executed. Syntax:- condition ? exp 1 : exp 2 Lets have a program on Relational Operator class Conditional { Public Static void main(String args[]) { int a=, b=35, max; System.Out.println("the value of a="+a); System.Out.println("the value of b="+b); max= a>b ? a : b; System.Out.println(" max of a,b=" +max); } }

Monday, September 5, 2016


Assignment Operators:-

The assignment operator is = We can assign the value right side of the expression to a left side of the variable is called "Assignment Operator"

Ex :- p = 23 a = 46

Ternary Operators:-

The ternary operator is double equal to(==) Left side of the expression is equivalent to right side of the expression, right expression is equal to left side of the expression. It is known as "ternary operator".

Ex :- s == 2 p == 10

Thursday, September 1, 2016


Relational Operator:-

The following are relational operators..... => < => > => <= => >= => == => != Lets have a program on Relational Operator class Relational { Public Static void main(String args[]) { int a=56, b=35; System.Out.println("the value of a="+a); System.Out.println("the value of b="+b); System.Out.println(a+ "<" +b+ "=" +(a < b)); System.Out.println(a+ ">" +b+ "=" +(a > b)); } }

Monday, August 29, 2016


Arithmetic Operator

The Arithmetic Operators are.... => + => - => * => / => % We will see a program in JAVA on Arithmetic Operators class Arith { Public Static void main(Sring a[]) { int a=10, b=5; System.Out.println("the value of a="+a); System.Out.println("the value of b="+b); System.Out.println("the value of a.b="+(a+b)); } } Lets see about the remaining operators in our next post. Have a tremendous Tuesday......

Sunday, August 21, 2016



Operators :-

The operator is a symbol which is used for specific task. Java supports the following types of operators. => Arithmetic Operators => Relational Operator => Assignment Operator => Conditional Operator => Logical Operator => Bitwise Operator => Boolean Operator => Unary Operator => New Operator => Member Operator => Cast Operator => Instance Operator => Increment and Decrement Operator Lets see briefly about the operators in the next post...... Have a happy day.

Tuesday, August 16, 2016

Wednesday, July 27, 2016


Object Oriented:

Java is an object oriented programming language, this means java programs use objects and classes, A) Standalone programs (Applications) B) Applets => Both programs are prepared with the " .class" extension. => Both require JVM to execute these Byte code. Applets:- ====== Applets are the programs written specially for the distribution over a network. These programs
contain information delivered to the world and involve user interaction. For example order entry
form, registration form mailing etc. Applications:- ========= Applications are system programs i.e; these programs run in the background and don't
involve user interaction. For example server administration, security manager etc.

Thursday, July 21, 2016

Java - Basic Points to Remember


  

Java is an "OBJECT ORIENTED PROGRAMMING LANGUAGE" developed by
"JAMES GASLING" at Sun Microsystems in the early 1990's.

Basic points of Java

* Java doesn't support the pointers. * Java doesn't hold the C data types like struct, union and enumeration. * Java doesn't have the C keywords goto, type def and size of. * Java doesn't have preprocessors like C and hence it doesn't use
#define, #include statements(or hrader files). * Java has added new operators such as instance unsigned rightshift(>>>)
and also have logical, conditional operators. * Java added break and continue statements. * Java has replaced the destructor function with finalize function. * Java doesn't support multiple inheritance.A new function is added called as interface. * Java doesn't support global variables.

Wednesday, July 20, 2016

Good Morining everyone....

Let's start our knowledge sharing from JAVA...

Friday, July 1, 2016

Saturday, June 25, 2016


Haiii Frndzzz..... Good Morning..... Have a happy sunday....

Friday, June 24, 2016


Good Morning everyone.......

The question for the day from your Salween Technologies is...

Answer the question in the comment box....

Monday, June 20, 2016