Comment on Tutorial - Type Casting in Java By Saravanan



Comment Added by : kishoree koli

Comment Added at : 2013-03-14 03:00:31

Comment on Tutorial : Type Casting in Java By Saravanan
Class TypeCasting
{
public static void main(String k[])
{
float sum=0.0f;
int a=10;

sum=sum+(float)a;
System.out.print("sum="+sum);
System.out.println("a="+a);
}
}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. It will be better, if you expalin by examples codi
View Tutorial          By: Parwez at 2012-06-18 08:03:45

2. sir plz give ur sugissions for my golden future in
View Tutorial          By: sridevi at 2012-06-06 10:26:36

3. Thanks sir i am understand to jdbc but who will ru
View Tutorial          By: Ranjeet singh at 2012-05-04 07:40:29

4. hi! we tried using the 5 java files...we build the
View Tutorial          By: anne226 at 2009-02-10 23:58:46

5. Hello Sir,

Is there a way to use JS

View Tutorial          By: rohit at 2008-04-02 09:07:41

6. FILE:- lpton.pl......
.....................

View Tutorial          By: Prats at 2013-02-02 17:33:40

7. It is very Important Site
View Tutorial          By: Shridhar Koli at 2011-12-29 11:43:29

8. Good day. I managed to get the code working but I
View Tutorial          By: thabiso at 2011-06-03 09:08:24

9. it giving me error in following statment (using wi
View Tutorial          By: prathamesh at 2007-03-16 05:57:20

10. nice one
View Tutorial          By: priyaaaaaaaaaaaaaaa at 2011-06-21 08:04:39