Description: programming languages Online Quiz - 253 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Every class in java has constructors including abstract classes
Interfaces have constructors
If a constructor uses this, it must not be in the constructor's first line
Constructors use "this"(keyword) to refer to another constructor in the same class with a different parameter list
Constructors name is not same as their class name
constructors can have any of the access modifiers: public, protected, private.
constructors can be abstract, final, native, static, or synchronized.
Constructors have no return type, not even void.
In ASP.NET the < authorization > section contain which of the following elements
What’ is the sequence in which ASP.NET events are processed ?
Which method do you use to expllicitly to kill a user session?
What’s the .NET collection class that allows an element to be accessed using a unique key?
How to convert a string to integer?
Which browsers are supported by AJAX ?
The .NET framework which provides automatic memory management using a technique called
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"))); } }
Which of the following are true about the readPassword() method of the Console class? choose two
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 compiles correctly if "f" is an instance of the File class?
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));