What is use of set in java?
No Answer is Posted For this Question
Be the First to Post Answer
How do you achieve singleton?
What are the steps that are followed when two computers connect through tcp?
Why parsing is done?
if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...
What is difference between overloading and overriding?
tell me some common
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); } }
when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.
Why java uses the concept of the string literal?
What is anti pattern in programming?
What do you understand by java?
What function extracts specified characters from a string?