Question: I have class as mentioned below:  

```
 public class Test {
     public Test1 a;
     public Test2 b;
 }

```

Now I have 2 threads. 

Thread 1 modifies "Test1" and thread 2 modifies "Test2"  

Can there be a possibility of data corruption i.e. while thread 1 was modifying "Test1" class, but inbetween thread 2 came in and started modifying "Test2" and thus the changes were lost or data was corrupted/incomplete update ?

Answer: 
Something like this

```css
div {
  position: relative;
  text-align:center;
}

img {
  border-radius: 100%;
  border:1px solid #000;
  height:150px;
  width:150px;
}

hr {
  position: absolute;
  width: 555px;
  top:50%;
  z-index:-1;
  border-color: #000;
  margin:0;
}
```

```html
<div>
  <img src="https://placeholdit.imgix.net/~text?txtsize=28&txt=300%C3%97300&w=300&h=300" alt="Image"/>
  <hr>
</div>
```
See [fiddle](https://jsfiddle.net/kgpfb0q5/)

HTML

```
<center>
<img src="https://imgs-tuts-dragoart-386112.c.cdn77.org/how-to-draw-batman-easy_1_000000011507_5.jpg" width="150px" height="150px" />
<hr>
</center>

```

CSS

```
center{position: relative;}

img {
border-radius:100%;
z-index: 1000;
position: relative;
}
hr {
position: absolute;
width: 555px;
top: 50%;
margin: 0px;
}

```