x=2.98f
What must be the data type of x
Which is a valid keyword in java?
Which Java package contains all the network-related classes and methods?
OuterclassName.StaticNestedClassName ref;
ref=new OuterclassName.StaticNestedClassName();
Is this the Syntax for instantiating Static nested class?
class test{
public static void main (String[] args) {
int a= 15;
int b= 30;
int c=a^b;
System.out.println(~(~c)^~(a&b));
}
}
How can we make a copy of a Java object?
How are objects of a class created when no constructor is defined in the class?
class test {
public static void main (String[] args) {
int a=7;
int b=15;
a+=(~b);
if(a>0 || (a^b)>10)
{
System.out.println(~a);
}
else
{
System.out.println(b);
}
}
}
What are the applet life cycle methods?
Predict the output of the following Java code:
import java.util.*;
import java.util.stream.IntStream;
class Abekus {
public static void main(String[] args) {
IntStream i = IntStream.range(2, 6);
long j = i.peek(System.out::print).count();
System.out.println(j);
}
}