programming languages Online Quiz - 301
Description: programming languages Online Quiz - 301 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Java enabled portable server-side applications are
What will be the output ?
Guess the output ?
Guess the output :
Can inner class have static members?
Which one is faster in java ?
What will be the output ?
After the following code fragment, what is the value in a? String s; int a; s = "Foolish boy."; a = s.indexOf("fool");
Given the following code fragment: int A[]; int i = 0; A = new int A[4]; while (i < 4) { A[i] = 10; i = i + 1; } What is the value of A[3]?
What is the purpose of this bit of code void init() { ... } ?
What is the value of k after the following code fragment? int k = 0; int n = 12 while (k < n) { k = k + 1; }
You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use?
If you have reference variable of parent class type and you assign a child class object to that variable and invoke static method. Which method will be invoked? Parent/Child.
Can we declare derived class first and then base class in java?
Is Array operations are faster than Vector.
Does File class have any method to read or write content in a file?
Final variables declared without initialization can be initialized in static initializer ( static final var) or in constructor( final var). True/False?
Is the following statement correct: char ch = 'd'; if(ch < 32.00){ }
If there is an exception in finalize method, will the object be garbage collected?
Which one of these statements are valid? Char \u0061r a =’a’; Char \u0062 = ’b’; Char c =’\u0063’Which one is not correct A. x = = Float.NaN B. Float.isNan(x); C. Myobject .equals(float.NaN);