JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
AppliedAICourse - Applied Machine Learning Course [30 GB]

https://drive.google.com/drive/mobile/folders/1g1RoiOX8Rwwq71OH59hwBl26JbX0mDd4

Share & Support the channel ✌️🏻
Telegram: @campusdrive
Default value of float variable in java?
Anonymous Quiz
44%
0.0f
11%
0
33%
0.0
11%
1
class output {
public static void main(String args[])
{ double a,b,c; a=3.0/0; b=0/4.0; c=0/0.0 ; System.out.println(a); System.out.println(b); System.out.println(c); } What will be the output?
Anonymous Quiz
18%
Infinity
32%
0.0
23%
NaN
27%
all of the mentioned
class A
{
A()
{
System.out .println("Code");
}
A(String name)
{
this();
System.out.println("CodeQuotient : " + name);
}
}
public class Main extends A
{
Main()
{
System.out.println("Quotient");
}
Main(String name)
{
this();
System.out.println("CodeQuotient : " + name);
}
public static void main(String[] args)
{
Main b = new Main("Girdhar");
}
}
What will be the output?