+ 4
Output:
package com.abc; public class DatabaseWrapper{ static String url = "jdbc://derby://localhost:1527//mydb"; static DatabaseWrapper getDatabase () { System.out.println("Getting DB"); return null; } public static void main(String[] args) { System.out.println (getDatabase() .url); } }
3 Answers
+ 1
can you please explain