Java 2014

Please enter your email:

1. Java is an language of type :

 
 
 
 

2. If we have a statement in a program like this a.b(c);

What does it mean

 
 
 
 

3. A java String is

 
 
 
 

4. In java floating point types are of :

 
 
 
 

5. What is the output of these statements final int STORE=100;STORE=200;

 
 
 
 

6. String created using string buffer class are of :

 
 
 
 

7. int i=10;

i=i++ + ++i;

System.out.println(i);

Then what is the final value of in output

 
 
 
 

8. One of the Choice is not the core Technologies of Active X

 
 
 
 

9. Web server is basically

 
 
 
 

10. int n=1;

while (n=10)

System.out.println(n++);

What will be the output of this program?

 
 
 
 

11. In AWT, the various controls are :

 
 
 
 

12. This is a valid method declaration :

 
 
 
 

13. Java Arithmetic operator include :

 
 
 
 

14. Java C is a Ed

 
 
 

15. The standard default value of an instance variable of type string is :

 
 
 
 

16. A script is a part of :

 
 
 
 

17. Boolean variable can have values

 
 
 
 

18. A String in Java is an object of class

 
 
 
 

19. Applet code is

 
 
 
 

20. Using Active X documents this gets added in internet browser :

 
 
 
 

21. Java is such a kind of language which is :

 
 
 
 

22. int a=1;

int b=0;

for (;b<8;++b)

a=a+a;

system.out.print(a);

What is the final value of a ?

 

 
 
 
 

23. Web Browser is a

 
 
 
 

24. these kind of arguments are used in definition of  method

 
 
 
 

25. This statement

&2=&3.to Lower case()

dose this

 
 
 
 

26. int i=1;

do

i+=2;

while(i<10);

which statement is correct about the above code .

 

 
 
 
 

27. A static method can access :

 
 
 
 

28. This give the length of string &1 :

 
 
 
 

29. JDK means

 
 
 
 

30. Can OLE work Without Internet connectivity ?

 
 
 
 

31. Which declaration is invalid

 
 
 
 

32. This is not type of integer in java ?

 
 
 
 

33. Active X is based on :

 
 
 
 

34. int c=3,if(c=>3)

system.out.println(“OK”);

What is the output of this program?

 
 
 
 

35. In java which statement is used to create simple Button control :

 
 
 
 

36. gender=1;

if(gender==1)

System.out.println(“man”);

else

System.out.println(“women”);

What will be the output?

 
 
 
 

37. Continue statement is used for :

 
 
 
 

38. String objects are :

 
 
 
 

39. This is the default language of ASP

 
 
 
 

40. HTTP client and HTTP server Interact using

 
 
 
 

41. What is the output of this program

public class check

{

public static void main(String []args)

int a =55;

int b=13;

int c=2;

System.out.println(a/b/c);

}

}

 

 

 
 
 
 

42. The package which is automatically imported is :

 
 
 
 

43. If

a=8

b=6

c=5

d=2

What will be the output of :

a*(b+c)/d

 
 
 
 

44. The Sequence of methods execution in applet life cycle is

 
 
 
 

45. int i=5;

if(i=10)

system.out.println(“OK”);

else

system.out.println(“Not Ok”);

What will be the output

 

 
 
 
 

46. How Many Levels of nesting is allowed in java where break or continue statements are not allowed :

 
 
 
 

47. if (a>b)

System.out.println(“India”);

System.out.println(“world”);

else

System.out.println(“universe”);

The output of this program will be ‘world’

when

 
 
 
 

48. Which statement does nothing?

 
 
 
 

49. Which main interface of Active X control :

 
 
 
 

50. Java Applet Can run in :

 
 
 
 

51. Through Active X server scripts we can provide dynamic content from :

 
 
 
 

52. The Term JVM means :

 
 
 
 

53. Which is valid java statement

 
 
 
 

54. We can create active server pages file using in :

 
 
 
 

55. What is the range of data type short in java ?

 
 
 
 

56. Virtual Machine code is converted to actual machine code by :

 
 
 
 

57. Which can be declared final ?

 
 
 
 

58. This is not a legal Identifier :

 
 
 
 

59. Applet uses this method to display out on screen :

 
 
 
 

60. What is the output of

System.out.print(++6);

 

 
 
 
 

61. Applet converts a web page from

 
 
 
 

62. int a=(int)3.99;

System.out.println(a);

output is :

 
 
 
 

63. Frame class is this kind of class with respect to window class

 
 
 
 

64. switch(i)

{

case 1 :

System.out.println(“1”);

case 2 : Sysetm.out.println(“2”);

break;

case 3 : Sysetm.out.println(“3”);

break;

default:

System.out.println(“nothing”);

break;

}

What is the output if i is 1?

 

 
 
 
 

65. We can append string &2 to string &1 using :

 
 
 
 

66. If we type cast a float variable into double there will be :

 
 
 
 

67. If a variable of type int is type cast in variable of type there will be :

 
 
 
 

68. In java the event handing is done by using the classes of package :

 
 
 
 

69. In Java Main Method

 
 
 
 

70. This file can support dynamic web content

 
 
 
 

71. What will be the output of the program?

class test

{

public static void main(String Args[])

{

int x=20;

string sup=(x<15)?”small”(x<22)?”tiny ” : “huge”;

System.out.println(sup);

}

}

 
 
 
 

72. An HTML document is always a collection of :

 
 
 
 

73. Frame Border and Menu bar can be drawn using this class :

 
 
 
 

74. Frame class inherits methods of :

 
 
 
 

75. Which is not Primitive data type in java .

 
 
 
 

76. What is the output of this statement

System.out.println(+4+2);

 
 
 
 

77. What will be the output of this program:

class test

{

public static void main(String args[])

test p=new test();

p.start();

}

void start()

{

boolean b1= false;

boolean b2=fix(b1);

System.out.println(b1+ “”+b2);

}

boolean fix (boolean b1)

{

b1=true;

return b1;

}

}

 

 
 
 
 

78. This Kind of file is required to run applet

 
 
 
 

79. class abc

{

int x;

void method1 ()

{

int y;

x=750;

y=x;

}

void method2()

{

int z;

x=150;

z=x+y;

}

}

Which statement is illegal here ?

 

 
 
 
 

80. The package is a collection of

 
 
 
 

81. Which of the following are legal lines of java code .

  1.   int w =(int )888.8;
  2.  byte x=(byte)100L;
  3. long y=(byte) 100;
  4. long z=(int)100.25
 
 
 
 

82. What is the Output ?

double a=11/4

System.out.println(a);

 

 
 
 
 

83. This file contains java byte code :

 
 
 
 

84. ActiveX technologies include Active X supporting :

 
 
 
 

85. The Tools in Which programs wants to build active X controls.

 
 
 
 

86. Which statement is correct?

 
 
 
 

87. Active X control was formerly known as :

 
 
 
 

88. In Java Inheritance are of these types.

 
 
 
 

89. The Active X Controls Run over the internet by creating a file with extension.

 
 
 
 

90. Which is not Java keyword

 
 
 
 

91. A Simple java application which does not use any graphics code is :

 
 
 
 

92. A variable of data type byte can take this range of value

 
 
 
 

93. Break statement is used for :

 
 
 
 

94. This is not a web server

 
 
 
 

95. Access the variables and methods outside the class this operator is used

 
 
 
 

96. if a=9

b=12

c=3

d=2

What will be the value of

x=a-b/(3*c)*(d-1)

 
 
 
 

97. This method is started each time the user of a browser revisite the HTML page on which an applet resides

 
 
 
 

98. Java supports this/these kind of inheritance directly without need of using instances:

 
 
 
 

99. This can be type of java variables

 
 
 
 

100. AWT Means

 

 
 
 
 

Question 1 of 100

Leave a Reply

Your email address will not be published. Required fields are marked *