Sunday, January 31, 2016

DataType

package LearnJava;

public class DataType {

double d = 0.0d;
float f = 0.0f;
long l = 0;
int i = 0;
short s = 0;
byte b = 0;
char c = '\u0000';
boolean bo = false;

DataType obj;

// double>float>long>int>short>byte>char>boolean;

/**
* class name should start with uppercase letter and be a noun
* interface
* name should start with uppercase letter and be an adjective
* method name
* should start with lowercase letter and be a verb
* variable name should
* start with lowercase letter
* package name should be in lowercase letter
* constants name should be in uppercase letter
*/

public static void main(String[] args) {
// TODO Auto-generated method stub

}

}

1 comment:

  1. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    Core Java Training in Electronic city

    ReplyDelete