What is the range of the short datatype?
Answers were Sorted based on User's Feedback
Answer / eswaran.s
short is a signed 16 bit type and range from -32768 to 32767.
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / pkr_reddy
short is a signed 16 bit type and range from -32768 to 32768.
| Is This Answer Correct ? | 9 Yes | 6 No |
How we can make copy of a java object?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
Where local and global variables are stored?
How do you use parseint in java?
Why string objects are immutable in java?
different between exception and error? explaim check and uncheck exception
How to implement an arraylist in java?
Why a dead thread occurs?
Can a singleton class be inherited?
Why string is a class?
how can we use the servlet as standalone apllication?should we need to extend any class?
What is object-oriented paradigm?