programming languages Online Quiz - 253
Description: programming languages Online Quiz - 253 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
What is the result of compiling and running the following code? String s=new String("hello"); StringBuffer sb=new StringBuffer("hello"); System.out.println(s.equals(sb));
Which of the following compiles correctly if "f" is an instance of the File class?
What will happen when you attempt to compile and run the given code? 1. public class EqualsTest 2.{ 3. public static void main(String[] args) 4.{ 5. Boolean b = new Boolean(true); 6. String str = new String(""+b); 7. StringBuffer buff = new StringBuffer(str); 8. 9. System.out.println(b.equals(str) + ", " + 10. str.equals(buff) + ", " + 11. buff.equals(b)); 12. } 13. }
Which of the following are true about the readPassword() method of the Console class? choose two
What is the result of compiling and running the following program? import java.util.Arrays; class Split2 { public static void main(String[] args) { String str = "She sells sea shells"; System.out.println(Arrays.toString(str.split("\s"))); } }
The .NET framework which provides automatic memory management using a technique called
Which browsers are supported by AJAX ?
How to convert a string to integer?
What’s the .NET collection class that allows an element to be accessed using a unique key?
Which method do you use to expllicitly to kill a user session?
What’ is the sequence in which ASP.NET events are processed ?
In ASP.NET the < authorization > section contain which of the following elements
Constructors have no return type, not even void.
constructors can be abstract, final, native, static, or synchronized.
constructors can have any of the access modifiers: public, protected, private.
Constructors name is not same as their class name
Constructors use "this"(keyword) to refer to another constructor in the same class with a different parameter list
If a constructor uses this, it must not be in the constructor's first line
Interfaces have constructors
Every class in java has constructors including abstract classes