JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
Forwarded from Advanced JAVA
BALAJI SIR ( C#.NET ).pdf
9.3 MB
Forwarded from Advanced JAVA
CORE FAQS.pdf
1.5 MB
Forwarded from Advanced JAVA
BANGAR RAJU SIR ( SQL SEVER ).pdf
7.7 MB
Forwarded from Advanced JAVA
ANDROID EXAMPLES.pdf
7.5 MB
Forwarded from Advanced JAVA
( DATABASE MANAGEMENT ) MDBMS.pdf
10.1 MB
public class Program
{
public static void main(String[] args) { System.out.println(fun()); } static int fun(){ return 20; } }
Anonymous Quiz
71%
20
10%
10
3%
30
16%
Compile time error
public class Program
{
static int var=5; public static void main(String[] args) { System.out.print(var--+" "); if(var) main(args); } }
Anonymous Quiz
52%
5 4 3 2 1
16%
1 2 3 4 5
20%
Runtime Error
12%
Compile time error
public class Program
{
static int var=5; public static void main(String[] args) { System.out.println(var-- +); if(var!=0) main(args); } }
Anonymous Quiz
42%
5 4 3 2 1
8%
1 2 3 4 5
38%
Runtime Error
13%
Compile Time Error
public class TestComp {

public static void main(String args[]) { int x = 1; System.out.println("The value of x is " + (~x >> x) ); } }
Anonymous Quiz
20%
1
20%
2
55%
-1
5%
-2
The default value of a static integer variable of a class in Java is,
Anonymous Quiz
50%
0
13%
1
17%
Garbage Value
21%
Null
0%
-1
What will be printed as the output of the following program?
public class testincr
{ public static void main(String args[]) { int i = 0; i = i++ + i; System.out.println("I = " +i); } }
Anonymous Quiz
19%
0
48%
1
10%
2
10%
3
14%
Compile time error
To prevent any method from overriding, we declare the method as,
Anonymous Quiz
21%
Static
8%
Const
38%
Final
21%
Abstract
13%
None of these
The fields in an interface are implicitly specified as,
Anonymous Quiz
15%
static only
4%
Protected
15%
Private
58%
Both static and final
8%
None of the above
public class testmeth
{
static int i = 1; public static void main(String args[]) { System.out.println(i+” , “); m(i); System.out.println(i); } public void m(int i) { i += 2; } }
Anonymous Quiz
25%
1,3
25%
3,1
15%
1,1
15%
1,0
20%
None of the above