Developer's Scratchpad
Thousands of miles begins with single step
6/26/10
Usages of Inner class example 5
class outer {
String s = "welcome";
inner i = new inner();
class inner {
inner() {
System.out.println(s);
}
}
}
public class inclas4 {
public inclas4() {
}
public static void main(String[] args) {
outer o = new outer();
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Popular Posts
Primefaces Datatable with header Check-box Selection
Hi folks, I got a chance to work with JSF, it was an interesting requirement. Its about a custom component which would be of more use to ...
Primefaces Dropdown with Pagination & Filter
Hi Folks, I would like to share my another POC task in JSF with you all. "Primefaces Dropdown with Pagination & Filter "...
Creating Temporary table in java
We shall create temp table in mysql using the sql script CREATE TEMPORARY TABLE testraghu(name VARCHAR(50) , phone VARCHAR(50)) Let us se...
Saving hashmap in mysql using jdbc
Hi all, i would like to share a simple example of storing haspmap in mysql db. In order to store object into your db, the field type must ...
No comments:
Post a Comment