kinshu
BAN USER
Questions (2)
Comments (3)
Reputation 0
- 0of 0 votes
AnswersRe write the below program in such a way that it should print
- kinshu in United States
Hi
Good Bye
******NOTE: You cannot change the main method*******
Class Program{
Public static void main(String args[]){
Try{
System.out.println(“Hi”);
System.exit(0);
}
Finally{
System.out.println(“Good Bye”);| Report Duplicate | Flag | PURGE
SAS Research Software Engineer / Developer Java - 0of 0 votes
AnswersWriteTestA class on such a way that the below program’s output should be false.
- kinshu in United States
***NOTE: You cannot override equals method***
Class A{
TestA testObj = new TestA();
System.out.println(testObj.equals(testObj));
}| Report Duplicate | Flag | PURGE
SAS Research Software Engineer / Developer Java
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
Here also the condition is "we cannot overrride equals!!!"
- kinshu August 31, 2012