tour de babel est désormais compatible avec l'extension FastNews.kiwi disponible pour votre navigateur. Avec cette extension, vérifiez s'il y a des nouveaux sujets sur ce forum en un clic depuis n'importe quelle page !Cliquez ici pour en savoir plus.
Q17. Finally block is always executed when an exception occurs and the only way to avoid execution of any statements in Finally block is by aborting the code forcibly by writing following line of code at the end of try block: Java System.exit(0); 1 System.exit(0); Q27. A. Ans: Ternary operator , also called conditional operator is used to decide which value to assign to a variable based on a Boolean value evaluation. In the below example, how many String Objects are created? Java String s1="I am Java Expert"; String s2="I am C Expert"; String s3="I am Java Expert"; 12345 String s1="I am Java Expert";String s2="I am C Expert";String s3="I am Java Expert"; Ans: In the above example, two objects of Java.Lang.String class are created. Q59. Can we declare a class as Abstract without having any abstract method? Ans: Yes we can create an abstract class by using abstract keyword before class name even if it doesnt have any abstract method. Q62.