Go to Dashboard > Appearance > Editor
Edit header.php
Find the following line:
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
Make the change:
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="https://javaadmin.com/wp-content/uploads/2013/05/logo-1.png" style="float: right;" alt="Logo" /></a></h1>
Note: Don’t forget to put the right URL for the logo.