31. How to get prints of shared object memory maps or heap memory maps for a given process?
32. Which of these is not a correct statement?
33. Which of these data types is used by operating system to manage the Recursion in Java?
34. Which of the following is a method having same name as that of its class?
35. Which method can be defined only once in a program?
36. Which operator is used by Java run time implementations to free the memory of an object when it is no longer needed?
37. What is the extension of java code files?
38. When Overloading does not occur?
39. What will be the output of the following Java program?
class area
{
int width;
int length;
int volume;
area()
{
width=5;
length=6;
}
void volume()
{
volume = width*length*height;
}
}
class cons_method
{
public static void main(String args[])
{
area obj = new area();
obj.volume();
System.out.println(obj.volume);
}
}
class area
{
int width;
int length;
int volume;
area()
{
width=5;
length=6;
}
void volume()
{
volume = width*length*height;
}
}
class cons_method
{
public static void main(String args[])
{
area obj = new area();
obj.volume();
System.out.println(obj.volume);
}
}
40. What happens to the thread when garbage collection kicks off?
Read More Section(Constructors and Methods)
Each Section contains maximum 100 MCQs question on Constructors and Methods. To get more questions visit other sections.