+ 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); } }

4th Apr 2018, 5:41 AM
Vartika Pahuja
Vartika Pahuja - avatar
3 odpowiedzi
+ 1
can you please explain
5th Apr 2018, 4:34 AM
Vartika Pahuja
Vartika Pahuja - avatar