I have some questions regarding java i hope i get the answers :)
why is java a strongly typed language?
why aren't destructors not used in java?
and what is the concept of unicode in char data type?
Some questions regarding java
Started by ahmed, Oct 14 2009 11:21 PM
3 replies to this topic
#1
Posted 14 October 2009 - 11:21 PM
|
|
|
#2
Posted 14 October 2009 - 11:40 PM
ahmed said:
why is java a strongly typed language?
ahmed said:
why aren't destructors not used in java?
ahmed said:
and what is the concept of unicode in char data type?
Wow I changed my sig!
#3
Posted 15 October 2009 - 05:57 AM
ahmed said:
I have some questions regarding java i hope i get the answers :)
why is java a strongly typed language?
why is java a strongly typed language?
ahmed said:
why aren't destructors not used in java?
ahmed said:
and what is the concept of unicode in char data type?
#4
Posted 15 October 2009 - 07:37 PM
1. why is java a strongly typed language?
If a language is not strongly typed, as javascript, time checking is delayed until runtime. But in strongly typed languages, type checking can be done at compile time, so less overhead at runtime.
It makes a good programming style to assign a value to its correct data type and easier to write a program and faster at runtime since type checking is performed at compile time only.
2. why aren't destructors not used in java?
there is no need for them because of garbage collection(GC). GC runs automatically when there are some unreferenced objects in memory. GC can be invoked by programmer explicitly but it is not a good idea to do so.
3. what is the concept of unicode in char data type?
Unicode is a standard data type and has more characters than ASCII. You can use characters of any language in your application if it supports unicode.
Since java supports unicode , it supports internationalization also. Use Google for more on unicode.
If a language is not strongly typed, as javascript, time checking is delayed until runtime. But in strongly typed languages, type checking can be done at compile time, so less overhead at runtime.
It makes a good programming style to assign a value to its correct data type and easier to write a program and faster at runtime since type checking is performed at compile time only.
2. why aren't destructors not used in java?
there is no need for them because of garbage collection(GC). GC runs automatically when there are some unreferenced objects in memory. GC can be invoked by programmer explicitly but it is not a good idea to do so.
3. what is the concept of unicode in char data type?
Unicode is a standard data type and has more characters than ASCII. You can use characters of any language in your application if it supports unicode.
Since java supports unicode , it supports internationalization also. Use Google for more on unicode.


Sign In
Create Account


Back to top









