- Q What will happen when you attempt to compile and run the following code public class StrEq{ public static void main(String argv[]){ StrEq s = new StrEq(); } private StrEq(){ String s = "Marcus"; String s2 = new String("Marcus"); if(s == s2){ System.out.println("we have a match"); }else{ System.out.println("Not equal"); } } } 1) Compile time error caused by private constructor 2) Output of "we have a match" 3) Output of "Not equal" 4) Compile time error by attempting to compare strings using ==
- Q What is share suspense account?
- Q Should those who make the laws (i.e. politicians) and those who enforce the laws (i.e. judges) be kept separate?
- Q What are the advantages of jms?
- Q Which atmospheric Layer is used for the transmission of radio waves?
- Q What Roman Emperor was the first to convert to Christianity
- Q Who was a great ruler of Kalinga in ancient times?
- Q How has your job affected your lifestyle?
- Q Describe the abbreviation ooad as used in object oriented programming?
- Q A ship is away from the shore by 180 miles.A plane is travelling at 10 times speed of the ship.How long from the shore will they meet?
- Q I want to create a custom setup installer in c# window Application and install befor installation window installer ,net framwork and sql express?