What is meant by wrapper classes?
Answers were Sorted based on User's Feedback
Answer / vishnu
Wrapper class is a wrapper around a primitive data type. It
represents primitive data types in their corresponding class
instances e.g. a boolean data type can be represented as a
Boolean class instance. All of the primitive wrapper classes
in Java are immutable i.e. once assigned a value to a
wrapper class instance cannot be changed further.
| Is This Answer Correct ? | 12 Yes | 0 No |
Explain the importance of join() method in thread class?
Write a factorial program using recursion in java?
Explain about OOPS concepts and fundamentals.
Why string is popular hashmap key in java?
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 the difference between static block and static method
why the primitive data type have classes?
How to perform linear search in java?
What is void keyword?
What are dot operator queries?
What is the Difference between Final Class && Abstract Class?
Can a constructor call another constructor?