java2015

Please enter your email:

1. In Which year  was java developed

 
 
 
 

2. The old name  of java was..

 
 
 
 

3. Which of following features are not supported by java

 
 
 
 

4. Which is ful form of JDK?

 
 
 
 

5. If you Run the following program What lines would be include in its output

class test{

public static void main(String args[])

{

int i,j;

for (i=0,j=0;i+j=20;++i,j+=i–)

{

System.out.println(i=j);

}

}

 
 
 
 

6. What is the full form of JVM?

 

 
 
 
 

7. Find out the error in the following code-

class hello world{

public static void main(string str() )

{

System.out.println(“Hello World”);

}}

 
 
 
 

8. The Expected Signature of main method is public static void main(). What happens if you forget to put the static keyword.

 
 
 
 

9. When source code is successfully compiled then which of the following is generated in java.

 
 
 
 

10. Which of the following is the compulsory section of java program.

 
 
 
 

11. Which software is used to interpreys java intermediate code.?

 
 
 
 

12. Who developed java?

 
 
 
 

13. Which statement is correct.

 
 
 
 

14. In Which section of java code Instance varibles are declared

 
 
 
 

15. Which method executes only once of applet life cycle.

 
 
 
 

16. What is Meaning of JIT?

 
 
 
 

17. Which file is created after compilation of java source file MyTest.java

 
 
 
 

18. What would be the result of compile and run of the following code.

public class Test {

static int x;

public static void main (String args[])

{

system.out.println(“value is “+x);

}}

 
 
 
 

19. Which command will be used to compile Music.java file.

 
 
 
 

20. What is Wrong with the following if statement …

if(x++){

y=x*z;

x/=2;

else{

y=y*y;

++z;

}

 

 

 
 
 
 

21. What about pointers in java ?

 
 
 
 

22. Which statement is wrong about java ?

 
 
 
 

23. Applet always executed on….

 
 
 
 

24. What is life cycle of Applet program in method executions….

I start()

II paint()

III init()

IV destroy()

V stop()

 
 
 
 

25. What is wrong with te following code in java.

switch(i==10)

{

case 1: ++i; break;

case 5:–1; break;

case 10: i=i+2;

case 11: i=i-2;

default:

}

 

 
 
 
 

26. If you do not give a value to a int variable in java before using it then what will happen such as

int a;

system.out.println(a);

 
 
 
 

27. String contained by Which package.

 
 
 
 

28. What is string in java

 
 
 
 

29. How many bits are allocated to a char data type variable in java at Run time.

 
 
 
 

30. Which is the type of string in java from followings?

 

 
 
 
 

31. What is the category of string object.

 
 
 
 

32. What is the base class of all classes

 
 
 
 

33. Which of the following will declared and initialize an array with five member values.in

 
 
 
 

34. If an array element is accessed beyond the array size then which exception is show.

 
 
 
 

35. What is output of the following code

String S= “KBC”;

int M= Integer.parseInt(S);

 
 
 
 

36. Which of the following are valid java comments.

i \\ this is a comment

ii /*this is a commrnt*/

iii /** this is a comment*/

iv \*this is a comment *\

 
 
 
 

37. Which of the following are valid java identifiers?

i %id

ii $id

iii _id

iv #id

 
 
 
 

38. Which of the following is not primitive type:

 
 
 
 

39. What is the range of Short data type

 
 
 
 

40. What is the output of the following program

public class question

{

public static void main(String s[])

{

boolean []b=new boolean[2];

double d[]=new double[2];

system.out.println(b[0]);

system.out.println(d[1]);

}

}

 
 
 
 

41. What is the range of char data type

 
 
 
 

42. What is the output displayed by the following program

class test

{

String S1= “ab”;

String S2= “abcd”;

String S3=”cd”;

String S4= S1+S3;

S1=S4;

System.out.println(“S1″+((S1==S2)?”==:”!=”)+”S2″);

}}

 
 
 
 

43. What is wrong following program

class resturant

{

String s=”KMP”;

Public static void main(String []ab)

{

System.out.println(s);

}}

 
 
 
 

44. What is the output of following code

String p= new String (“welcome”);

String Q=new String (“welcome”);

if(p==Q)

System.out.println(“Thank you”);

else

system.out.println(“good morning”);

 
 
 
 

45. What is the wrong following statement

for (i=0;j=0,i<0;++i,j+=i)

{

k+=1*i+j*j;

}

 

 

 
 
 
 

46. What is wrong with the following code.

while(p>>2)

{

p*=z;

}

 
 
 
 

47. What is the output of this code

int x=3;

int y=10;

System.out.println(y%x);

 
 
 
 

48. How can you call garbage collection by force on an object.

 
 
 
 

49. What is the result of the following code.

int x=1;

String []names={“fred”,”jim”,”sheel”};

names[–x]+=” “;

for(int i=0; i<names.length;i++)

{

System.out.println(names[i]);

}

 
 
 
 

50. What is the output of the following code.

String S=”Hello”;

String S2=”Hello”;

If(S.equals(S2))

{

System.out.println(“True”);

}

else

{

System.out.println(“false”);

}

 
 
 
 

51. Which of the following is not keyword in java

 
 
 
 

52. Sharing of common information is achived by the concept of following.

 
 
 
 

53. Which word is resrved in java

 
 
 
 

54. Which class not be subclass in java

 
 
 
 

55. Can we Declared Abstract static method in java

 
 
 
 

56. The Meaning of inheritance is

 
 
 
 

57. Which type of inheritances are subported by interfaces specically isn compare to classes .

 
 
 
 

58. Which type of inheritances are suported by classes.

 
 
 
 

59. Which keyword is used to a constant in java.?

 
 
 
 

60. Which child class object is passed into parents class object , that refrenceing is called.?

 
 
 
 

61. When parent class object is passed into child class object that refrenceing is called?

 
 
 
 

62. How static function can be called as per following code

class hello

{

public static void  print()

{

}}

 
 
 
 

63. Which method of java is invoked for reclaim the inaccessible memory location in java.

 
 
 
 

64. Which type of method can not be overriden

 
 
 
 

65. How an object k can be destroyed from a program.

 
 
 
 

66. In interface we can

 
 
 
 

67. Whic is valid declaration with in an interface

 
 
 
 

68. What is true about abstract class

 
 
 
 

69. Which container use border layout

 
 
 
 

70. What  must be the name of java file containing this program

import my package.*;

public class special class code()

 
 
 
 

71. What is the value of obj[3] in the following code

int obj[];

int k=0;

obj=new int[5];

while(k<4)

{

obj[k]=10+k; k=k+1;

}

 

 
 
 
 

72. if string s=”Text”

What is the value returned

by s.length()

 
 
 
 

73. Which is not a keyword in java

 
 
 
 

74. Which declared an  abstract method in abstract class in java.

 
 
 
 

75. Consider the following code and find output

outer : for (int i=0;i<2;i++)

{

for(int j=0;j<3;j++){

if(i==j)

continue outer;

System.out.println(“i=”+i+”j=”+j);

}}

 
 
 
 

76. What is the full form of AWT

 
 
 
 

77. What is the Hot Java

 
 
 
 

78. HTTP protocol is the type of

 
 
 
 

79. The (0,0) coordinates of frame window is located which position of the frame area

 
 
 
 

80. What should use to position a button within an application  frame so that the size of the button is not affected by the frame size

 
 
 
 

81. Which statement are true about Active x

  1. Activex control were originally called OLE controls
  2. Activex Controls can be Linked with web server
  3. Activex Control are reusable Software components
  4. Active x controls are developed by sun micro system
 
 
 
 

82. How many Active X technologies

  1. ActiveX Scripting
  2. ActiveX Documents
  3. ActiveX Server Frame
  4. ActiveX Machine
 
 
 
 

83. ActiveX Control can operate over the Internet by creating a file of type, that file type is

 
 
 
 

84. Select tool in Which ActiveX controls are Developed

 
 
 
 

85. /ActiveX were designed  to…….. the dynamic  designs of a website

 
 
 
 

86. What is the full form of OLE

 
 
 
 

87. HTTP Resourses are located in net Work By

 
 
 
 

88. Http Client requests by establishing a ——— connection to a particular port on the server.

 

 
 
 
 

89. What are true about ASP

 
 
 
 

90. ASP is

 
 
 
 

91. COM is

 
 
 
 

92. Cookies are used for

 
 
 
 

93. Which protocol transfer a file from one system to another system

 
 
 
 

94. ASP is which type of scripting

 
 
 
 

95. IIS is

 
 
 
 

96. Which action not generates a server side event

 
 
 
 

97. When an ASP file is placed on an IIS and viewed Through browser,then resulting HTML page contains

 
 
 
 

98. Java script can be work as

 
 
 
 

99. Which protocol facilitates to access hyper text document

 
 
 
 

100. A protocol is referred to as

 
 
 
 

Question 1 of 100

Leave a Reply

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