if(new Boolean("true") == new Boolean("true")){
System.out.println("True");
}else{
System.out.println("False");
}
Ans : False
Welcome Message
Hi, welcome to my website. This is a place where you can get all the questions, puzzles, algorithms asked in interviews and their solutions. Feel free to contact me if you have any queries / suggestions and please leave your valuable comments.. Thanks for visiting -Pragya.
Top Navigation Menu
Showing posts with label Nucleus. Show all posts
Showing posts with label Nucleus. Show all posts
January 9, 2010
Static Override (Asked in Nucleus Software written Test)
A static method can not override a non static method.
Also, a non static method can not override a static method.
We'll get compile time error in both cases.
Also, a non static method can not override a static method.
We'll get compile time error in both cases.
Labels:
java,
Nucleus,
Overriding,
Static
Subscribe to:
Posts (Atom)