What are the escape sequences in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is appletviewer?
What are the methods used to implement for the key object in the hash map?
Is Java a dying language?
Given: 10. interface A { void x(); } 11. class B implements A { public void x() { } public voidy() { } } 12. class C extends B { public void x() {} } And: 20. java.util.List list = new java.util.ArrayList(); 21. list.add(new B()); 22. list.add(new C()); 23. for (A a:list) { 24. a.x(); 25. a.y();; 26. } What is the result? 1 Compilation fails because of an error in line 25. 2 The code runs with no output. 3 An exception is thrown at runtime. 4 Compilation fails because of an error in line 20.
What happens when I use / and % with a negative numerator?
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 Exception handling in Java How do you handle run time errors please explain with an example
How do you create a method in java?
primitive data types in Java ?
What is the difference between abstract class and interface1? What is an interface?
describe method overloading
Explain the Propertie sof class?