The Java programming language is strongly-typed, which means that all variables must first be declared before they can be used.
This involves stating the variable’s type and name, as you’ve already seen:
int gear = 1;
August 16, 2006 by bhuvans
The Java programming language is strongly-typed, which means that all variables must first be declared before they can be used.
This involves stating the variable’s type and name, as you’ve already seen:
int gear = 1;
974231 Blog Verification
974231
thax please for your service,but am i correct to say that java is strongly typed because you cannot assign a floating point value as it is in c
Where did you read this crap…???
ibrahim:
>thax please for your service,but am i correct to say that >java is strongly typed because you cannot assign a >floating point value as it is in c
THATS WHY C is weakly typed language….
This has nothing to do with strong or weakly typed.
A programming language is weakly typed when it allows conversion between different types, like converting an int into a char.
A strongly typed language doesn’t allow conversion.
Bingo…..
now ur saying that java dun allow type casting….
you should go through basic books of java before saying aneething!!
He meant that it does not allow implicitly. you must do it explicitly.
@Anshita- Learn the basics of English before saying anything, to avoid looking like an idiot.
There is a difference between type casting and strongly typed. Type casting allows one to utilize the value of a variable and convert it to the new type. Strongly typed means a variable must be declared before it is used. would be like trying to take float x and then say x = “test”. This would not work in a strong typed language like Java.
Anshita – Are you from a circus or something?
python is a strongly typed language how???
java is strongly typed language.
It is. But I have confusion. After auto boxing , is strongly typed as it does the conversion internally.
Hi!. Thanks a bunch for the info. I’ve been digging around looking some info up for shool, but there is so much out there. Yahoo lead me here – good for you i guess! Keep up the great information. I will be coming back over here in a couple of days to see if there is updated posts.
Hiya – I found this oage by mistake. I was searching in Bing for PDF software that I had already bought when I found your site, I must say your site is really informative, I just love the theme, its amazing!. I don’t have the time this minute to totally read your site but I bookmarked it and also will sign up for your RSS feed. I will be back in a day or two. thanks for a cool site.
hi all, basically strongly typed means we have to declare a variable by specifying a specific type like int float etc. and secondly once variable is declared we can not change the data type of that variable at run time. (ssubhi_2003@yahoo.com)
Java primitive types are ‘strongly typed’ the java types derived from Object are not. In fact boxing and unboxing is very common for types derived from Object. You can create methods that accept Object types, and pass in anything you like. In humble opinion, Java can be as tightly typed as the developer wants it to be.
Java is a strongly typed language as it allows compile time and run time checks on types.
It’s a pity you don’t have a donate button! I’d without a doubt donate to this fantastic blog! I suppose for now i’ll settle for bookmarking
and adding your RSS feed to my Google account. I look
forward to new updates and will share this site with my Facebook
group. Chat soon!