JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
Basic Java language functions are stored in which of the following java package?
Anonymous Quiz
54%
java.lang
18%
java.util
4%
java.awt
Which of the following is a member of the java.lang package?
Anonymous Quiz
14%
List
14%
Queue
36%
Math
25%
Stack
11%
Process
What is the fundamental unit of information of writer streams?
Anonymous Quiz
25%
Characters
33%
Bytes
29%
Files
8%
Records
4%
Information
File class is included in which package?
Anonymous Quiz
32%
java.lang package
4%
java.awt package
0%
java.net.package
28%
java.util.package
Given the code

String s1 = ” yes” ; String s2 = ” yes ” ; String s3 = new String ( s1); Which of the following would equate to true?
Anonymous Quiz
35%
s1 == s2
15%
s1 = s2
35%
s3 == s1
4%
s3=s1
12%
s1!=s2
Which of the following is true in regard to applet execution?
(a) Applets loaded from the same computer where they are executing have the same restrictions as applets loaded from the network.
(b) Applets loaded and executing locally have none of the restrictions faced by applets that get loaded from the network.
(c) Applets loaded and executing locally have some restrictions faced by applets that get loaded from the network.
(d) Applets cant react to user input and change dynamically
(e) Applets can be run independently.
What is the return type of the method getID() defined in AWTEvent class
Anonymous Quiz
35%
Int
26%
long
26%
Object
4%
Component
9%
float
What will be the result of the expression 13 & 25?
Anonymous Quiz
18%
38
23%
25
41%
9
14%
12
5%
21
Which one of these is a valid method declaration?
Anonymous Quiz
5%
void method1
73%
void method2()
14%
void method3(void)
5%
method4()
5%
methods(void)
Given a class named Book, which one of these is a valid constructor declaration for the class?
Anonymous Quiz
35%
Book(Book b) { }
24%
Book Book() { }
12%
private final Book() { }
29%
void Book() { }
0%
abstract Book() { }
Given the following class, which of these is valid way of referring to the class from outside of the package net.basemaster?
package net.basemaster;
public class Base { // . . . } Select the correct answer
Anonymous Quiz
18%
By simply referring to the class as Base
12%
By simply referring to the class as basemaster.Base
53%
By simply referring to the class as net.basemaster.Base
0%
By simply referring to the class as net.Base
18%
By importing with net.* and referring to the class as basemaster.Base.