- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
8 Posted Topics
Hi All, I have a situation where i need to retrieve parentpath from childname in JFace Checkboxtreeviewer. By using below code, i can get both the path seperately. getCheckedElements() - child elements getExpandedTreePaths() - parent elements How i can map childelements with parent? here i get both seperately. When i … | |
Hello All, Can anyone provide me the sample program of JFace Treeviewer. As i google it but cant find the right example. Any links with Simple example. Kindly help me out; Thanks in advance. | |
Hi all, I understand the concept of Serialization but,want to know 1.when we use this in realtime? and 2.under what situations we can use this? I tried to google but cant find an satisfactory answer.Please help me out. Thanks in advance | |
Hi everyone, Consider below code, package thread; public class Noti5 extends Thread{ Calc c; Noti5(Calc calc){ c = calc; } public void run(){ synchronized(c){ try{ System.out.println("waiting for calculation.."); c.wait(); }catch(Exception e){} System.out.println("Total is.."+c.total); } } public static void main(String[] args) throws InterruptedException { Calc calculator = new Calc(); new Noti5(calculator).start();new … | |
Hi all, consider below code: public class Bertha { static String s = ""; public static void main(String[] args) { int x=4; Boolean y = true; short[] sa = {1,2,3}; doStuff(x,y); doStuff(x); doStuff(sa,sa); System.out.println(s); } static void doStuff(Object o){ s += "1"; } static void doStuff(Object... o){ s += "2"; … | |
Hi all, for the below code: class A{ } class B extends A{ } why we extends 'A' class to inherit the properties in 'B'? Here we can use, class B{ A a = new A();//to get properties of 'A' class } why should we go for inheritance by using … | |
Hi everyone, consider below code: interface i{ void test(); } class A implements i{ void test(){//code goes here} } class B implements i{ void test(){//code goes here} } here,we can implement method straightaway in class itself, without using interface like, class A{ void test(){//code goes here} } why we want … | |
Hi all, What is the difference in inheriting a class and instantiating a class, as both allows to inherit properties from the base class.I know there is a difference in both, but i want a clear idea on this. Kindly, can anyone help.Thanks in advance. |