CrackingKeygenning and Programmingmy java quetions need solution

04 Oct 2009, 13:30

Q.1]
Class x and class y are the sub classes of class A. Class A has a method defined as accessMe().
Class x is within the same package as Class A where as class y is in some other package.
The method accessMe() is accessible to class x but not to class y .
What is the access specifier defined for accessMe() method?

A.Private
B.Friendly
C.Protected
D.Protected friend

Q.2]
Which class can be used to read bytes of data from a source?

A.,java.io.Read
B.,java.io.InputStream
C.java.InputStream
D.,java.io.Input.Stream

Q.3]
Which keyword is used for implementing an interface?

A.Handles
B.implements
C.extends
D.import

Q.4]
Consider the following steps:

1.Ensure that the class implements every method that has been declared in the interface.
2.Save the file with a .java extension.
3.Import the interface.
4.Compile the applet or application created.
5.Declare the class, and use the implements keyword followed by the name of the interface.

Which is the correct sequence to implement an interface?

A.1>2>3>4>5
B.3>5>1>2>4
C.5>2>1>4>3
D.2>5>3>4>1

Q.5]
Consider the following statements.
Statement A: An interface can be used to simulate multiple inheritance.
Statement B: A class can implement several interfaces.
Statement C: All the variable of an interface are static, final and public.
Statement D: All the methods of an interface are abstract.

Which of the following option is correct about the above statements?

A.Statement A and Statement B are True AND Statement C and Statement D are False.
B.Statement A is True AND Statement B, Statement C and Statement D are False.
C.Statement C and Statement B are True AND Statement A and Statement D are False.
D.Statement A, Statement B, Statement C, and Statement D are True.

Q.6]
Consider the following statements:
Statement A: Try is the only keyword used to handle the exception.
Statement B: Catch block is declared inside the try block.
Which of the following option is correct about the above statements?

A.Statement A is True and Statement B is False.
B.Statement A is False and Statement B is True.
C.Both, Statements A and B, are True.
D.Both, Statements A and B, are False.

Q.7]
Which method of ObjectOutputStream class can be used to write the contents of an object to a file?

A.writeObject()
B.writeFile()
C.write()
D.writeContent()

Q.8]
Which of the following features of Java enforces you to override all the methods without inheriting the class?

A.Static Class
B.Interfaces
C.Abstract classes
D.Final Class


Q.9]
Which of the following control is used to select only one option at a time?
The control also allows the user to enter the data if none of the available options is found to be suitable.

A.Textbox
B.ComboBox
C.Listbox
D.Textarea

Q.10]
Consider the following statements.
Statement A:interfaces are used to implement the inheritance between non-related classes.
Statement B:an abstract class and an interfaces are same.
Which of the following option is correct about the above statements?

A.Statement A is True and Statement B is False.
B.Statement B is True and Statement A is False.
C.Both, Statement A and Statement B, are True.
D.Both, Statement A and Statement B, are False.

Q.11]
Which of the following combinations of access specifiers CANNOT be used with the variables of an interface?

A.public and private
B.final and protected
C.protected and private
D.static and final




Q.12]
Which of the following class is used to transfer the data from the server to a client?

A.PrintStream
B.BufferedInputStream
C.BufferedStream
D.BufferedOutput




Q.13]
Sam is writing a Java code where he needs to declare an integer array that can hold 10 elements. Which of the following options is the correct declaration for Sam's requirement?

A.int numbers[11];
B.int [10] numbers;
C.int numbers[9];
D.int [10];




Q.14]
Consider the following statements : Statement A:out is an object encapsulated inside the System class.
Statement B:System class is used to display the output on the screen.
Which of the following options is True?

A.Statement A is True and Statement B is False.
B.Both, Statement A and Statement B, are True.
C.Both, Statement A and Statement B, are False.
D.Statement A is False and Statement B is True.




Q.15]
Which of the following option can be used to invoke a method named displaydetails of a java program named employee.java?

A.Employeeobject.displaydetails();
B.Employee employeeobject.displaydetails();
C.Employeeobject=new employee().displaydetails();
D.Employee employeeobject=new Employee();
employeeobject.displaydetails();





Q.16]
William has written the following program in java.
public class student
{
public static void main(String args[])
{
int array[] = {0,0};
int num1 =100;
try
{
System.out.println(num1/array[1]);
}
catch(ArrayIndexOutOfBoundsException e)
{
System.out.println("Error... Out of bounds");
}
}
}
what will be __TEXT IS TOO BIG. IT WAS TRUNCATED TO 5000 SYMBOLS

Rating 0 Comments 2
GURU379
0
GURU379 04 Oct 2009, 13:31 #
please if sure.
juliuses
0
juliuses 22 Nov 2010, 09:24 #
This is nuts..,why would anyone bother to answer this questions anyway???
Reply

You have to login or register to post comments.

GURU379
GURU379
0 ♠ 19 ♣
Tweet:


Bookmark and Share