Which of the following does not belong: If a class inherits from some other class, it should
Anonymous Quiz
9%
Make use of the parent class’s capabilities
32%
Over-ride or add the minimum to accomplish the derived class’ purpose
27%
Over-ride all the methods of its parent class
23%
Make sure the result “IS-A-KIND-OF” its base class
9%
Make sure the result “contains” its base class
Object-oriented inheritance models the
Anonymous Quiz
38%
“is a kind of” relationship
27%
“has a” relationship
12%
“want to be” relationship
19%
inheritance does not describe any kind of relationship between classes
4%
“contains” of relationship
The wrapping up of data and functions into a single unit is called
Anonymous Quiz
78%
Encapsulation
4%
Abstraction
15%
Data Hiding
0%
Polymorphism
4%
Message passing.
Given a class named student, which of the following is a valid constructor declaration for the class?
Anonymous Quiz
42%
Student (student s) { }
15%
Student student ( ) { }
19%
Private final student ( ) { }
12%
Void student ( ) { }
12%
Static void student(){ }
What is garbage collection in the context of Java?
Anonymous Quiz
10%
The operating system periodically deletes all of the java files available on the system
19%
Any package imported in a program and not used is automatically deleted
43%
When all references to an object are gone, the memory used by the object is automatically reclaimed
24%
The JVM checks the output of any Java program and deletes anything that doesn’t make sense
5%
When all references to an object are gone the memory used by the object is not reclaimed
The concept of multiple inheritances is implemented in Java by
I. Extending two or more classes.
II. Extending one class and implementing one or more interfaces. III. Implementing two or more interfaces
I. Extending two or more classes.
II. Extending one class and implementing one or more interfaces. III. Implementing two or more interfaces
Anonymous Quiz
11%
Only (II)
26%
(I) and (II)
42%
(II) and (III)
16%
Only (I)
5%
Only (III)
In Java, declaring a class abstract is useful
Anonymous Quiz
30%
To prevent developers from further extending the class
17%
When it doesn’t make sense to have objects of that class
30%
When default implementations of some methods are not desirable
22%
To force developers to extend the class not to use its capabilities
0%
When it makes sense to have objects of that class
What is the error in the following class definitions?
Abstract class xy { abstract sum (int x, int y) { } }
Abstract class xy { abstract sum (int x, int y) { } }
Anonymous Quiz
25%
Class header is not defined properly
25%
Constructor is not defined
33%
Method is not defined properly
0%
Method is defined properly
17%
No error
👍1
Which of these field declarations are legal within the body of an interface?
Anonymous Quiz
29%
Private final static int answer = 42
25%
public static int answer=42
17%
final static answer =42
17%
int answer
13%
No error
👍1
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