Java URL getUserInfo() MethodThe getUserInfo() method of URL class returns the userInfo part of this URL in the form of the string. If the user information is not available, it returns null. SyntaxReturnsThe userInfo part of this URL, or null if one does not exist Since1.3 Example 1Test it NowOutput: user information is :null https://mail.google.com/mail/u/0/?tab=wm#inbox Example 2Test it NowOutput: The given url is : https://www.javatpoint.com/java-threadpoolexecutor User information of given url is : null Next TopicJava URL Class |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India