The out object is an object encapsulated inside which class?
String.valueof()
Which type of loop will execute the body of the loop at least once, even when the condition controlling the loop is initially false?
Which of the following statements about Java objects is true?
class test{
public static void main (String[] args) {
int a = 5;
int b = 6;
int c;
c = ++ b * --a / b + b;
System.out.print(c);
}
}
What will be the output?
class A
{
public static void main(String args[])
{
int a = 3;
int b = 6;
System.out.print(a < b);
}
}
class test{
public static void main (String[] args) {
final int a=10,b=20;
for(int i=0;a<b;i++)
{
System.out.println("Hello");
}
System.out.println("World");
}
}
what should be the output of this code block?
public class abekus {
public static void main(String[] args) {
int arr[] = {
'a',
'b',
'c',
'd',
'e'
};
for (int i = 0; i < 5; i++) {
System.out.print(" " + (char) arr[i]);
}
}
}
import java.util.*;
class output
{
public static void main(String args[])
{
Stack obj = new Stack();
obj.push("A");
obj.push("B");
obj.push("C");
obj.push("D");
System.out.println(obj);
}
}
What will be the output of the program?
public class MyProgram
{
public static void main(String args[])
{
try
{
System.out.print("Hello world ");
}
finally
{
System.out.println("Finally executing ");
}
}
}