![]() Related Questions Tell me o/p of the mentioned code fragment.String s1 = "shailesh";String s2="shailesh";System.out.println(s1.equals(s2));System.out.println(s1==s2); Answer is truetrueEvery time we make any string constant same memory referenced will be assigned if the string constant is same. That's why both obj. s1 and s2 refer to same memory. View Question | Asked by : Shailesh A) before it enters a compute-intense section of codeB) before it enters a memory-intense section of codeC) before objects are finalizedD) when it knows there will be some idle time A) Random Memory InterfaceB) Remote Method InvocationC) Random Method InvocationD) Ramote Memory Interface Latest Answer : B) Remote Method Invocation ... Find missing numbers in an unsorted sequence of 100 million positive integers with a memory of 64mb ram. We know that when execution of java starts, 1 st public static void main(String args[]) methodis execute. so i have ask you that ,when main method is executed, it s static method. so at the time of execution of main method, object is not their. after that code under main method is run which contain object of classes.so Q. when main method is executed,at that time object is not in memory so at that time can i say that JAVA IS NOT OBJECT-ORIENTED??? ACCORDING TO ME yes,after main methode,code run which will create object after main method, java is OBJECT ORIENTED. Read Answers (3) | Asked by : nikunj jhala Choice 1: Collect profiling and debugging statistics. Choice 2: Modify the number of bits a double variable uses. Choice 3 : Set the initial memory allocation pool size. Choice 4 :Modify the garbage Latest Answer : We can collect profiling and debugging statistics. we can set the initial memory allocation pool size. we can set the maximum memory allocation pool size. we can modify the garbage collector's behavior, like we can disable ... Read Answers (1) | Asked by : sesi I want to know why JVM maintains it...? Where does stack and heap are maintained in OS memory or JVM's ? View Question | Asked by : Chetan What would be the object size of class without a member ( i.e. no method and no variable) is created?Explanation : For sure, Object size will not zero as we print the object on console, hash code get printed, View Question | Asked by : Amit Chaudhary How can you ensure that the memory allocated by an object is freed? Latest Answer : Garbage collection in Java cannot be forced. JVM will decide when to free memory ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||