In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

how to get the max salary and name of employee from arraylist without using the Comperator or even Comparable interface?

2 Answers  


Suppose there is an array list [10,5,20,19,15,24].Print them in ascending & descending order in collection framework concept ???

2 Answers   Cognizant,


suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible

6 Answers   HP, Wipro,


Why do inner class cannot have static declaration except static nested class?

2 Answers   TCS, Wipro,


What is sorting algorithm in java?

0 Answers  






Explain 5 io best practices?

0 Answers  


Can a source file contain more than one class declaration?

0 Answers  


What are Interceptors?

1 Answers  


Can we override static methods?

18 Answers   Bally Technologies,


What is type inference in java8?

0 Answers  


Can we declare main () method as non static?

0 Answers  


How do you declare a string variable?

0 Answers  


Categories