Hi am an mca graduate . i have done bsc maths in my degree .
every company asks me why you make shift from maths group to
computere field . What i need to answer?
1) Find the Merge point of two linked lists.
2) Swap two bits of integer.
3) Reverse individual words of the sentence.
4) Reverse string without using temp string.
In Inheritance if we are implementing Multi level inheritance
and all class having same name of variable and now i want to
access each class variable and how it is possible?
Hi Every One I Have Small Doubt Please answer
This????????????????????????????
I Want to use AbstractList class
methods(java.util.AbstractList)
My Program is
import java.util.*;
class DemoOne extends AbstractList
{
public static void main(String[] args)
{
AbstractList a=new DemoOne();//This One is Correct??
DemoOne a1=new DemoOne();//This One is Correct?? Both Are
Not Working
System.out.println("Hello World!"+a);
System.out.println("Hello World!"+a1);
}
}
Error IS:
DemoOne.java:2: DemoOne is not abstract and does not
override abstract method get(int) in java.util.AbstractList
class DemoOne extends AbstractList
AnyOne can Please Provide The
Solution????????????????????????? Plzzzzzzz
I declared main() method as private. But it still running
and displaying the output. Please Answer it .
Code Snippet as Below:
import java.io.*;
class over
{
private static void main(String[] args)
{
int high = Integer.MAX_VALUE;
int overflow = high + 1;
int low = Integer.MIN_VALUE;
int underflow = low - 1;
System.out.println(high + "\n" +overflow +"\n"+
low +"\n"+underflow);
//System.out.println(overflow);
//System.out.println(low);
//System.out.println(underflow);
}
}
What are the differences between Java 1.0 and Java 2.0?
241
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE
VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO
ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT
RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE
VARIABLE" HERE?
Write down program for following scenario. Use java coding
standard.
You have array list with some words in it..we will call it
as dictionary….and you have a arbitrary string containing
some chars in it.
You have to go through each word of dictionary and find out
if that word can be constructed with the help of chars from
arbitrary string given. If you find the word print it else
print none.
Write an algorithm program in java for the following question..
In a VLSI design techniques,they used rectangles to design circuits.
EVery rectangle is to be placed according to x,y coordinates.
Check whether or not two rectangles overlap each other.
Here overlapping of rectangles is acceptable, if
1) one rectangle intersect with other.
2) one rectangle fully covers other.
The time of algorithm should not exceed o(n logn).
350
4.1 Supply contracts (in the form of comments specifying
pre- and post conditions)
for the enqueue() method of the LinkedQueue class given in
the Appendix.
(2)
4.2 Let Thing be a class which is capable of cloning
objects, and consider the code
fragment:
Thing thing1 = new Thing(); //(1)
Thing thing2 = thing1; //(2)
Thing thing3 = (Thing) thing1.clone(); //(3)
Explain how the objects thing2 and thing3 differ from each
other after
execution of the statements.
(