All exception types are subclasses of the built-in class
Anonymous Quiz
31%
Exception
23%
RuntimeException
6%
Error
40%
Throwable
When an overridden method is called from within a subclass, it will always refer to the version of that
method defined by the
method defined by the
Anonymous Quiz
33%
Super class
53%
Subclass
13%
Compiler will choose randomly
0%
Interpreter will choose randomly
Mark the incorrect statement from the following:
Anonymous Quiz
29%
Java is fully object oriented language with strong support for proper software engineering technique
6%
In java it is not easy to write C-like so called procedural programs
16%
In java language objects have to be manipulated
13%
In java language error processing is built into the language
35%
Java is not a language for internet programming.
In java, objects are passed as
Anonymous Quiz
28%
Copy of that object
28%
Method called call by value
17%
Memory address
3%
Default constructor.
25%
Constructor
Which of the following is not a component of Java Integrated Development Environment (IDE)?
Anonymous Quiz
14%
Net Beans
29%
Borland’s Jbuilder
25%
Symantec’s Visual Café
14%
Microsoft Visual Fox Pro
18%
Microsoft Visual J++.
Identify, from among the following, the incorrect variable name(s).
Anonymous Quiz
4%
_theButton
23%
$reallyBigNumber
54%
2ndName
12%
CurrentWeatherStateofplanet
8%
my2ndFont
Consider the following Java program :
class IfStatement{
public static void main(String args[])
{
int a=2, b=3;
if (a==3)
if (b==3)
System.out.println("===============");
else
System.out.println("#################");
System.out.println("&&&&&&&&&&&");
}
}
Which of the following will the output be?
(a) ===============
(b) #################
&&&&&&&&&
(c) &&&&&&&&&&&
(d) ===============
#################
&&&&&&&&&&
(e) ################
class IfStatement{
public static void main(String args[])
{
int a=2, b=3;
if (a==3)
if (b==3)
System.out.println("===============");
else
System.out.println("#################");
System.out.println("&&&&&&&&&&&");
}
}
Which of the following will the output be?
(a) ===============
(b) #################
&&&&&&&&&
(c) &&&&&&&&&&&
(d) ===============
#################
&&&&&&&&&&
(e) ################
In operating system which of the following statement best describes the dispatch latency element that is available in time sharing systems?
Anonymous Quiz
16%
Time taken to switch from one thread to another thread
26%
Time taken to swap the process
26%
Time taken to submit and complete the process
32%
Time taken to terminate the process and initiate another process
In operating system which of the following statements about preemptive scheduling is correct
1)Resources are allocated to a process for a limited period
2)Processes cannot be interrupted until they are terminated
3)Overhead are not available in a process
4) Low Priority processes can starve
1)Resources are allocated to a process for a limited period
2)Processes cannot be interrupted until they are terminated
3)Overhead are not available in a process
4) Low Priority processes can starve
which of the following is not valid input for switch case?
Anonymous Quiz
0%
Int
47%
Long
16%
Char
38%
String
What is the superclass of all the exceptions and errors in java
Anonymous Quiz
29%
Exception
11%
RuntimeException
57%
Throwable
4%
CompileTimeException
public class Program
{
public static void main(String[] args) {int x=0,y=0; for(int j=0;j<5;j++){ if((++x>2)||(++y>2)){ System.out.println("y = "+y); x++; } } System.out.println(x+" "+y); } }
{
public static void main(String[] args) {int x=0,y=0; for(int j=0;j<5;j++){ if((++x>2)||(++y>2)){ System.out.println("y = "+y); x++; } } System.out.println(x+" "+y); } }
Anonymous Quiz
26%
8,2
37%
8,3
21%
5,3
16%
8,5
public class Program
{
final static short shortCount=2;
public static int count=0;
public static void main(String[] args) {
for(int counter=0;counter<3;counter++){
switch(counter){
case shortCount: System.out.print ("0");
case shortCount-1: System.out.print ("1");
case shortCount-2: System.out.print ("2");
}
}
}
}
{
final static short shortCount=2;
public static int count=0;
public static void main(String[] args) {
for(int counter=0;counter<3;counter++){
switch(counter){
case shortCount: System.out.print ("0");
case shortCount-1: System.out.print ("1");
case shortCount-2: System.out.print ("2");
}
}
}
}
public class Program
{
public static void main(String[] args) {
int i;
char[] a=new char[]{97,99,101,103,105};
for(i=0;i<5;i=i+2){
System.out.print (a[++i]);
}
System.out.print (i);
}
}
{
public static void main(String[] args) {
int i;
char[] a=new char[]{97,99,101,103,105};
for(i=0;i<5;i=i+2){
System.out.print (a[++i]);
}
System.out.print (i);
}
}
4 Ways to Learn Object-Oriented Design – Tenmilesquare
https://tenmilesquare.com/4-ways-to-learn-object-oriented-design/
https://tenmilesquare.com/4-ways-to-learn-object-oriented-design/
Tenmilesquare
4 Ways to Learn Object-Oriented Design
Looking back over 2019 I realized I've had the privilege to work on a diverse set of software projects: Architecting and coding an Enterprise Transform and Load... #Java #Objectorienteddesign #OOD