-
-
How SCJP exams are Helpful???
I am new to java...if I passed out the SCJP exams then how it would be beneficial at time of job..interviews???
-
Use of abstract class and interface
What is the exact use of abstract class and interface?
-
Polymorphism
Explain polymorphism to your 7 year old nephew.
-
Python programming
How do i write a module to keep count of the amount of guesses it takes to guess the number correctly?
-
Select appropriate answers for the incomplete declaration listed below?
class A ______ B ______ C { } // line 4
a) The 1st blank should be extends and the 2nd blank should be implements.
b) The 1st blank should be implements and the 2nd blank should be extends.
c) B is a class and C is an interface
d) B and C can be either class or interface depending upon the placement of extends or implements in the 1st or 2nd blank. -
Which of the following is true about packages?
a) Classes in the same package can access each other.
b) The inherited class should be in the same package as the parent class.
c) Package name a.b implies, package b is inherits from package a.
d) Package access is next to private access in being restrictive. -
Given the two methods:
void f() throws IOException
Which of the following is/are correct overriding method?
a) void f() throws IOException
b) public void f()
c) void f() throws FileNotFoundException
d) void f() throws Exception -
Thread and Runnable
When we will use thread and runnable in java program ?
-
-
-
How is Java considered tamper free?
I read in the properties of java that it is secured as it is tamper free. I would like to know what is tamper free and how it applies to Java?
-
String Input Library
Write a Java program without using any library function in string
i/p: My name is Rama
o/p: Rama si eman yM
Single Thread and Multiple Thread
What is difference between Single Thread and Multiple Thread?
Explain Single Thread Model Vs. Multi thread model. Support your answer with practical example?Why do threads block on I/O
Threads block on i/o (that is enters the waiting state) so that other threads may executewhile the i/o Operation is performed.
What is an Iterator interface
The Iterator interface is used to step through the elements of a Collection.
What is the difference between yielding and sleeping
When a task invokes its yield() method, it returns to the ready state. When a task invokesits sleep() method, it returns to the waiting state.
What is a native method
A native method is a method that is implemented in a language other than Java.
What is the difference between the Boolean & operator and the && operator
If an expression involving the Boolean & operator is evaluated, both operands areevaluated. Then the & operator is applied to the operand. When an expression involvingthe && operator is evaluated, the first operand is evaluated. If the first operand returns avalue of true then the second operand is evaluated. The && operator is then applied tothe first and second operands. If the first operand evaluates...
What is the purpose of the Runtime class
The purpose of the Runtime class is to provide access to the Java runtime system.
Ans