Why is singleton not thread safe?
No Answer is Posted For this Question
Be the First to Post Answer
What do you understand by casting in java language?
what is actual real time using of oops concepts in projects(Interface,polymorphism.abstraction.........)
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); } }
How many arguments can be passed to main ()?
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.
Explain about complier design(phases)
0 Answers Aditi Placement Service,
Why does it take so much time to access an applet having swing components the first time?
How do you escape sequences in java?
What are the important features of Java 8 release?
What are locale settings?
How do u pass data from one jsp to another jsp?
how to print a numbers from 1 to 100 with out using control structures?