You're given a Boolean 2D matrix, can you find the number of islands?
No Answer is Posted For this Question
Be the First to Post Answer
What is a programming object?
What are the 5 types of research methods?
What is exception handling in java?
Is integer passed by reference in java?
Explain pass by reference and pass by value?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
What is the difference between exception and error in java?
what is main purpose of interface?
2 Answers Accenture, HCL, NIIT,
What one should take care of, while serializing the object?
What is difference between equals and hashcode method?
Is there is any difference between a scrollbar and a scrollpane?
How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program?