What is casting ?
Answers were Sorted based on User's Feedback
casting is used to convert the value of one data type to
another.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
casting is a process of converting a bigger datatype to fit
inside a smaller datatype
| Is This Answer Correct ? | 0 Yes | 4 No |
I declared main() method as private. But it still running and displaying the output. Please Answer it . Code Snippet as Below: import java.io.*; class over { private static void main(String[] args) { int high = Integer.MAX_VALUE; int overflow = high + 1; int low = Integer.MIN_VALUE; int underflow = low - 1; System.out.println(high + "\n" +overflow +"\n"+ low +"\n"+underflow); //System.out.println(overflow); //System.out.println(low); //System.out.println(underflow); } }
What is difference between printf and scanf?
What are the advantages of assembly language?
What are Access Specifiers and Access Modifiers.
What is the difference in between cpp and java? Can u explain in detail?
How does remove work in java?
What is jit compiler in java?
Can we override constructor?
how can i take the inputs from users in java program?
What is the range of the short type?
What is tree in java?
what is generics in jdk1.5?