Correct Answer: S.trim()
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
Every class in java, except ________, extends an existing class.
If an exception occurs in a try-catch block, the code in the finally clause ________.
In java, ________ must be declared before they can be used.
Java requires a ________ call for every object that's created.
Java uses ________ to reference the current object.
Which is incorrect about the CallableStatement interface?
How would you use a bean in a JSP page?
Output of the given program? import java.io.*; class streams { public static void main(String[] args) { try { FileOutputStream fos = new FileOutputStream('serial'); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeFloat(3.5); oos.flush(); oos.close(); } catch(Exception e) { System.out.println('Serialization' + e); System.exit(0); } try { FileInputStream fis = new FileInputStream('serial'); ObjectInputStream ois = new ObjectInputStream(fis); ois.close(); System.out.println(ois.available()); } catch (Exception e) { System.out.print('deserialization'); System.exit(0); } } } }
When a server wants to make an object available for URL lookups, it must bind that object instance to a string representing the:
Which classes/set of classes can illustrate polymorphism in the given code? abstract class student { public : int marks; calc_grade(); } class topper:public student { public : calc_grade() { return 10; } }; class average:public student { public : calc_grade() { return 20; } }; class failed{ int marks;};