Can we have multiple public classes in a java source file?
Is vector thread safe in java?
33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac
int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b; System.out.println("The value is"+a+b+c;
What is nested top-level class?
What is the use of static class?
Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?
. Explain Java String Pool.
In how many ways we can create threads in java?
What is a loop java?
What is classpath?
What are the performance implications of interfaces over abstract classes?
Explain about doubly linked list
0 Answers Aditi Placement Service,