-
System.out.println()
Why do we use 'out' in System.out.println();?
-
Thread Disadvantages
What are the disadvantages of using thread?
-
Userdefined Unchecked Exceptions
Java has Userdefined Unchecked Exceptions or not? If answer is YES, How to create Userdefined Unchecked Exceptions?
-
-
Overriding Methods
Suppose a Super Class method throws an exception and this method is Overriden in the subclass with no exception. Now if you create a super class reference that has a subclass object. This throws a compile time error, Why?
-
static data member
what is the use of static data member?
-
Exception Handling
What is the output of the following program, When tested under JDK 5.0class ExceptionDemo{ public static void main(String[] args) { int a[] = new int[] {1,2,3,4,5}; try{ System.out.prinltln(a[6]); } catch(Exception e) { System.out.println("Catching Exception ..."); } catch(ArrayIndexOutofBoundsException ae) { System.out.println("Catching ArrayIndexOutOfBounds...
-
What will be the result and why
int i=10;i=i++;System.out.println(i);
-
Difference between Java and J2ee
Explain the difference between Java and J2EE in detail?
-
inheritance
what is inheritance? why we use it? plzz can anybody explain me with one example and where we use that concept?
-
Convert string object to primitive Integer Type
How can i convert a string object to a primitive Integer type???????Thanks
-
-
-
-
-
The term _____________ refers to a class's direct ancestor or to any of its ascendant classes.
Skill/Topic: InheritanceA) Sub ClassB) Super ClassC) Class hierarchy
-
What is the output of the following? // A simple example of recursion.class Factorial { // this is a recursive method int fact(int n) { int result; if(n==1) return 1; result = fact(n-1) * n; return result; }} class Recursion { public static void main(String args[]) { Factorial f = new Factorial(); System.out.println("Factorial of 3 is " + f.fact(3)); }}
A) Factorial of 3 is 3B) Factorial of 3 is 6C) Factorial of 3 is 9D) None of the above
-
Java allows objects to initialize themselves when they are created using _________
A) ArgumentsB) ClassesC) ConstructorsD) Parameters
-
When we create a class, we are creating a new data type
A) TrueB) False
-
When you read your e-mail, you are viewing _________ data
A) ActiveB) PassiveC) BothD) None of the above
-
What is the data type for the parameter of the sleep() method?
A) doubleB) intC) longD) float
-
-
-
-
-