Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java mcq

int[] A = {0,2,4,1,3};
for(int i = 0; i < a.length; i++){
    a[i] = a[(a[i] + 3) % a.length];
}
Comment

MCQ java

  What is the output of following code?        int i = 10;    if(i++ == i) 	 System.out.println(i + " is good");    else 	 System.out.println(i + " is bad");     int j = 20;    if(++j == j) 	 System.out.println(j + " is good");    else 	 System.out.println(j + " is bad");    
//11 is bad
//21 is good
Comment

PREVIOUS NEXT
Code Example
Java :: java variable declaration 
Java :: java convert am pm to 24 hour 
Java :: how to change a character in a string in java with ascii 
Java :: java php object 
Java :: java Overridding example 
Java :: sort a list with custom comparator java 
Java :: System.out.printf("%"+(n)+"s ") 
Java :: spark write partitionby 
Java :: get array element java 
Java :: check if field exists in java 
Java :: hashmaps java 
Java :: print 1 to 10 using thread in java 
Java :: java node class 
Java :: -3 to string in java 
Java :: remove duplicates from string in java 
Java :: adjust font scale in android studio 
Java :: convert class to java command line 
Java :: long to int java 
Java :: index of an array procesing 
Java :: codepointat java 
Java :: java read file from command line argument 
Java :: vue composition watch 
Java :: maximum arrays size in java 
Java :: what is outer class in java 
Java :: add java 8 support to pom 
Java :: horizontal rule in android studio 
Java :: how to call super onbackpressed in fragment 
Java :: Stop gninnipS My sdroW! javascrip codewars 
Java :: Delete Specials Caractères from a String in java 
Java :: regex pattern for valid identifiers 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =