Description: programming languages Online Quiz - 301 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
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);
If there is an exception in finalize method, will the object be garbage collected?
Is the following statement correct: char ch = 'd'; if(ch < 32.00){ }
Final variables declared without initialization can be initialized in static initializer ( static final var) or in constructor( final var). True/False?
Does File class have any method to read or write content in a file?
Is Array operations are faster than Vector.
Can we declare derived class first and then base class in java?
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.
You are planning to do an indexed search in a list of objects. Which of the two Java collections should you use?
What is the value of k after the following code fragment? int k = 0; int n = 12 while (k < n) { k = k + 1; }
What is the purpose of this bit of code void init() { ... } ?
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]?
After the following code fragment, what is the value in a? String s; int a; s = "Foolish boy."; a = s.indexOf("fool");
What will be the output ?
Which one is faster in java ?
Can inner class have static members?
Guess the output :
Guess the output ?
What will be the output ?
Java enabled portable server-side applications are