"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.
2 7821what is the use of clone method? why user cant overwrite in sub class without its proper defination.
TCS,
2 6426What is actual difference between statement,prepared statement and callable statement and when we have to use it? pls post a answer with code and clear explanation. thanks
2 14410Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
2232Write 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).
2776
Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.
What is a concrete classes? Is Java object class is concrete class?
What do you know about the garbate collector?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
How many types of design patterns are there?
What is difference between == equals () and compareto () method?
How to sort array in descending order in java?
What is t in generics in java?
What is the difference between a vector & an array list?
What is default exception handling in java?
Can a static class have a constructor java?
What is runtime polymorphism or dynamic method dispatch?
What was java originally called?
Can we make a constructor final?
What is space character in java?