Advertisement

Programmer Coding

Author name: admin

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 »

Java Comments

Comment is basically used when we do not want to execute the statement. Type of Java comments There are mainly two type of java comment. Single Line comment. Multi Line comment. Single line comment  :- The single line comment Is used for comment only one line. Syntax:- // this is single line comment (‘//’) Example:-

Java Comments Read More »

Scroll to Top