A package is a collection of
Anonymous Quiz
28%
Classes
12%
Interfaces
8%
Editing tools
52%
Classes and interfaces
0%
Editing tools and interfaces.
A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction
Anonymous Quiz
25%
Declare the method with the keyword public
25%
Declare the method with the keyword private
25%
Declare the method with the keyword protected
25%
Do not declare the method with any accessibility modifiers
0%
Declare the method with the keyword public and private
Basic Java language functions are stored in which of the following java package?
Anonymous Quiz
54%
java.lang
18%
7%
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
Which of the following has a method names flush( )?
Anonymous Quiz
22%
Input stream
15%
Output Stream
30%
Reader stream
22%
Input reader stream
11%
Input output stream
Top 5 Java Frameworks You Should Learn in 2020 - Talent Economy
https://learning.shine.com/talenteconomy/career-help/java-frameworks/
https://learning.shine.com/talenteconomy/career-help/java-frameworks/
ShineLearning
Top 5 Java Frameworks You Should Learn in 2020
Since Java is not so simple programming language, frameworks are useful here. Here are some of the most popular Java frameworks of 2020.
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
36%
java.io package
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?
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
What is the sequence of major events in the life of an applet?
Anonymous Quiz
23%
init, start, stop, destroy
38%
start, init , stop , destroy
31%
init, start , destroy, stop
4%
init, start, destroy
4%
destroy, start, init, stop
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.
(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
Which of the following events will cause a thread to die?
Anonymous Quiz
30%
The method sleep( ) is called
26%
The method wait( ) is called
17%
Execution of the start( ) method ends
22%
Execution of the run( ) method ends
4%
Execution of the run() method is called
Which of the following statements are true regarding the finalize( ) method?
Anonymous Quiz
24%
The finalize ( ) method must be declared with protected accessibility
19%
The compiler will fail to compile the code that explicitly tries to call the finalize( ) method
33%
the finalize ( ) method can only access other objects that are eligible for garbage collection
14%
The finalize ( ) method can be overloaded
10%
The finalize() method cant be overloaded
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() { }
public class MyClass {
long var;
public void MyClass(long param) { var = param; } //(1) public static void main(String[] args) { MyClass a,b; a = new MyClass(); //(2) b = new MyClass(5); //(3) } }
long var;
public void MyClass(long param) { var = param; } //(1) public static void main(String[] args) { MyClass a,b; a = new MyClass(); //(2) b = new MyClass(5); //(3) } }
Anonymous Quiz
0%
A compilation ERROR will occur at (1), since constructors cannot specify a return value
29%
A compilation error will occur at (2), since the class does not have a default constructor
57%
compilation error(3)since the class does not have a constructor which takes one argument of type int
7%
The program will compile correctly
7%
The program will compile and execute correctly.