Identifiers can not start with?
Which of these is used to allocate memory to array variable in java
What is the output of the following Java program that uses a PriorityQueue?
Arrange the operators according to their precedence
a> ++
b> *
c> ()
d> >>
class jj
{
public static void main(String args[])
{
StringBuffer sb = new StringBuffer("Abekus");
sb.delete(1,2);
System.out.println(sb);
}
}
What is the output of the following Java code?
public
class
Abekus {
public
static
void
main(String[] args) {
if
(true)
break;
}
}
public class example {
int i[] = {0};
public static void main(String args[]) {
int i[] = {1};
change_i(i);
System.out.println(i[0]);
}
public static void change_i(int i[]) {
int j[] = {2};
i = j;
}
}
What will be the output of the following Java program?
What will be the output of the following Java code?
class NewThread extends Thread
{
Thread t;
NewThread()
{
t = new Thread(this, "New Thread");
t.start();
}
public void run()
{
System.out.println(t.isAlive());
}
}
class MultithreadedProgramming
{
public static void main(String[] args)
{
new NewThread();
}
}
import java.util.*;
class output
{
public static void main(String args[])
{
LinkedList obj = new LinkedList();
obj.add("A");
obj.add("B");
obj.add("C");
obj.addLast(new Integer(25));
obj.removeFirst();
obj.removeLast();
obj.pollFirst();
System.out.println(obj);
}
}