\r is used to
Which of these keywords are used for generating an exception manually?
A ______ is a program in execution. Every _______ have their own memory space.
Which of the following methods is used to explicitly set the priority of a thread?
class test{
public static void main (String[] args) {
System.out.println(10/0.0);
}
}
try{
//code
}
System.out.println(“one line of code”);
catch(Exception e){
//code
}
The above snippet is?
class test{
public static void main (String[] args) {
int i=32768;
short s=(short)i;
byte b=(byte)s;
System.out.println(b+" "+s);
}
}
Purpose of the Java.lang package?
______ method makes the currently running thread to move into a runnable state from running state giving chance to remaining threads of equal priority which are in waiting state.
Which statement is not true in java language?