programming languages Online Quiz - 279
Description: programming languages Online Quiz - 279 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Does File class have any method to read or write content in a file?
If there is an exception in finalize method, will the object be garbage collected?
byte b; final int a = 10; final int x = a; b = x; System.out.println("The value of b is " + b);
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);
main method can be overridden.. True/False
Which one is not correct A. x = = Float.NaN B. Float.isNan(x); C. Myobject .equals(float.NaN);
Which is true about overloading?
What is the rule regarding overriding methods throwing exceptions?
println exhibits which type of polymorphism
void main() { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); }
f1(int c) { printf("%d", c); } void main() { int a=1; f1(a++); }
main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p\t%p\t%p",p,q,r); }