LEC: 4 | JAVA

  

LEC:4

String vs Char data type in JAVA





Source Code:

package lec_2; public class Lec_2 { /*Multi line comments */ public static void main(String[] args) { //int x=88; //float x=77.4f; //float x=88.999f; //88.9999999999999999 //double x=88.999999999999d; boolean y=false; long x= 824873857; System.out.println("The value of a is : " + x); System.out.println("Bolean is running " +y); string and char
//string -------->alphabets, numeric,special characters //char , single value store. //'runway with code'; //char a='h'; String a="runway with code 123 @#! ^ &"; System.out.println(a);
} }

Comments

Popular posts from this blog

RunwayWithCode

web development Lectures

C++ Lectures