programming languages Online Quiz - 345
Description: programming languages Online Quiz - 345 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which of the following is not a reserved keywords?
What is the value of the expression (1 / 2 + 3 / 2 + 0.1)?
1.Set s = new TreeSet(); 2.s.add("JAVA"); 3.s.add(new Integer(5)); Line 3 will give ClassCast Exception because Two different types of object are getting added.
Which of the following operators can be used both as an integer bitwise operator and a boolean logical operator?
Which one of these is a valid method declaration?
Any problem in generic code is handled at Runtime.
Which one of the following class definitions is a valid definition of a class that cannot be extended?
Which of these combinations of switch expression types and case label value types are legal within a switch statement?
Which statements are true?
List l = new Arraylist(); if you use this line in your code what will we get?
Which statements are true?
public void addAnimal(List super Dog> animals) { animals.add(new Dog()); } it's NOT legal to add when we use Wildcard character >.(True/ False)
public void addAnimal(List super Dog> animals) { animals.add(new Dog()); } it's NOT legal to add when we use Wildcard character >.(True/ False)
List l = new Arraylist(); if you use this line in your code what will we get?
1.Set s = new HashSet(); 2.s.add("JAVA"); 3.s.add(new Integer(5)); Line 3 will give ClassCast Exception because Two different types of object are getting added.
1.Set s = new TreeSet(); 2.s.add("JAVA"); 3.s.add(new Integer(5)); Line 3 will give ClassCast Exception because Two different types of object are getting added.
1.Set s = new HashSet(); 2.s.add("JAVA"); 3.s.add(new Integer(5)); Line 3 will give ClassCast Exception because Two different types of object are getting added.
1.Set s = new TreeSet(); 2.s.add("JAVA"); 3.s.add(new Integer(5)); Line 3 will give ClassCast Exception because Two different types of object are getting added.
1.Set s = new TreeSet(); 2.s.add("JAVA"); 3.s.add(new Integer(5)); Line 3 will give ClassCast Exception because Two different types of object are getting added.
1.Set s = new TreeSet(); 2.s.add("JAVA"); 3.s.add(new Integer(5)); Line 3 will give ClassCast Exception because Two different types of object are getting added.