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
Which of these is not a interface in the Collections Framework?
Anonymous Quiz
3%
Collection
86%
Group
9%
Set
3%
List
Which interface restricts duplicate elements?
Anonymous Quiz
54%
Set
17%
List
3%
Map
26%
All of these
Which of these collection class has the ability to grow dynamically?
Anonymous Quiz
8%
Array
8%
Arrays
77%
ArrayList
8%
None of these
The accuracy and efficiency of a HashMap can be guaranteed with:
Anonymous Quiz
23%
override equals method
39%
override hashCode method
6%
None of these
32%
All of these
A HashMap allows the existence of:
Anonymous Quiz
19%
null values
28%
one null key
17%
None of these
36%
All of these
Veracode uncovers the top security issues facing specific programming languages - SD Times
https://sdtimes.com/security/veracode-uncovers-the-top-security-issues-facing-specific-programming-languages/
https://sdtimes.com/security/veracode-uncovers-the-top-security-issues-facing-specific-programming-languages/
SD Times
Veracode uncovers the top security issues facing specific programming languages - SD Times
Veracode details the top security issues affecting the top programming languages, such as .NET, C++, Java, JavaScript, PHP and Python.
What implementation of Iterator can traverse a collection in both directions?
Anonymous Quiz
24%
Iterator
45%
ListIterator
14%
SetIterator
17%
MapIterator
The Comparable interface contains which called?
Anonymous Quiz
40%
toCompare
9%
compare
43%
compareTo
9%
compareWith
Which is faster and uses less memory?
Anonymous Quiz
22%
ListEnumeration
31%
Iterator
42%
Enumeration
6%
ListIterator
What Iterator can throw a ConcurrentModificationException?
Anonymous Quiz
25%
Fail-fast Iterators
18%
b.Fail-safe Iterators
54%
All of these
4%
None of these
What is the default number of Partitions/segments in Concurrent Hash Map?
Anonymous Quiz
20%
12
30%
32
17%
4
33%
16
Which is best suited to a multi-threaded environment?
Anonymous Quiz
12%
WeakHashMap
32%
Hashtable
29%
HashMap
26%
ConcurrentHashMap
Which does NOT implement the Collection interface?
Anonymous Quiz
8%
a.List
46%
b.Map
8%
c.Set
38%
None of these