Comment on Tutorial - Integer: byte, short, int, and long data types in Java By Abinaya



Comment Added by : Kris Heidenstrom

Comment Added at : 2011-05-28 04:15:05

Comment on Tutorial : Integer: byte, short, int, and long data types in Java By Abinaya
A useful article. It answered my question about when you should "just use int" even when the numeric range needed is so small that a short or byte would be enough. Answer: "just use int" except in arrays if you want to save memory". Thanks!

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. Hello,

I was able to rectify port/

View Tutorial          By: Harsh at 2011-10-09 16:54:06

2. Hats off man !!! Very Simple & Straightforward
View Tutorial          By: Nitesh at 2013-01-06 00:50:53

3. this tutorial is awesome.. solved my doubt in seco
View Tutorial          By: Natasha at 2015-07-29 09:03:42

4. A very good demonstration o Vector!!
View Tutorial          By: Pankaj Kumar Mishra at 2010-12-09 01:35:06

5. The name OAK was changed to java because ,once the
View Tutorial          By: Sowminarayanan at 2010-11-28 06:17:42

6. i want diff example one.....

plz
View Tutorial          By: Santhosh at 2010-07-30 01:35:22

7. please explain thread t=new thread(this,name). Wha
View Tutorial          By: Bhavin at 2012-09-28 12:26:55

8. very nice session
View Tutorial          By: Rajendra singh rathod at 2012-03-16 13:32:01

9. Shouldn't you call free() on the allocated memory
View Tutorial          By: Ritchie at 2012-05-09 14:14:49

10. how doeas peek work in a c++ program
View Tutorial          By: odwa at 2008-02-29 02:44:19