-
What is the result of the following?public static void main(String[] args)
choice:a)compilation errorb)runtime errror Or what is the result?
-
-
-
-
-
-
-
-
Referencing of Instances
class A { // some code here} class B { // some code here}class Ex {public static void main(string args[]) {A a=new B();B b=new A();a.add();b.add();}Will this program run? Explain the referencing the object instances. What is the result;
-
Can we use final keyword before constructor?
Is it possible to define final keyword before constructor.if yes then describe?
-
Throw and throws
What is the difference between throw and throws
-
Difference between Java and J2ee
Explain the difference between Java and J2EE in detail?
-
Nullpointer Exception
What is Nullpointer Exception How it will be reduced
-
Printing numbers in spiral shape
I need an algorithm for some program. I'll take some number (say 'n'), then i should print the numbers in spiral shape starting from square(n). Can any one pls help me..Ex: if n=3, it should print like9 8 72 1 63 4 5Thanks in advance
-
-
Java Constructor
How to use a constructor in a Java program?
-
Garbage collections
What is marker sweeper algorithm in garbage collection?
-
Java Singleton Class
How to create a class that has only one object?
-
DataOutput
What is the basic functionality of DataOutput interface in java?
-
Userdefined Unchecked Exceptions
Java has Userdefined Unchecked Exceptions or not? If answer is YES, How to create Userdefined Unchecked Exceptions?
Java Interview Questions
Ans