Programmer Coding

Author name: admin

Expressions

Expressions are necessary designing blocks of any Java program, usually produced to produce a newvalue, although sometimes an expression simply reattach a value to a variable. Expressions are built using values, variables, operators and way(method) calls. Types of Expressions While an expression often produces a result, it doesn’t all way(method) . There are three types […]

Expressions Read More »

Operators in java

Operator in java is a mark that is used to apply missions. For example: +, -, *, / etc. There are a lot of types of operators in java which are given below: 1. Unary Operator, 2. Arithmetic Operator, 3. shift Operator, 4. Relational Operator, 5. Bitwise Operator, 6. Natural or logical Operator, 7. Ternary

Operators in java Read More »

variables:-

Variable is manly use for memory location. Java have three type of variable Example of variables:- public class airthmatic_operater { public static void main(String[] args) { int a,b; a=20; b=10; System.out.println(a+b); } }   output:- 30       Variable in java Variable is manly use for memory location. Java have three type of variable

variables:- Read More »

data Types

there are mainly two type:- Primitive data type. Non primitive data types Data Type Default value Default size boolean False 1 bit char ‘\u0000’ 2 byte byte 0 1 byte short 0 2 byte int 0 4 byte long 0L 8 byte float 0.0f 4 byte double 0.0d 8 byte  

data Types Read More »

Scroll to Top