Exception in thread main java.lang.error unresolved compilation problem in java solved

Exception in thread main java.lang.error unresolved compilation problem in java solved


Exception in thread main java.lang.error unresolved compilation problem in java solved

How to solve exception in thread main java.lang.error unresolved compilation problem in java is shown


Content

0.398 -> Hey hello everyone , in this video i am going to show you
2.452 -> how to solve the error exception in thread main.java.lang.error unresolved compilation problem
9.647 -> so this error usually occurs when you have
12.939 -> missed a semi colon or curly bracket
17.543 -> but the line number where you have missed will appear
19.657 -> but in my case I don't have anything like that
22.092 -> 4 curly bracket and a perfect semi colon over here , I just have a print statement
26.516 -> so basically I have everything perfect
29.649 -> so what happened was , I solved it by removing the public over here
34.001 -> so I have given public class , I just removed this public class and if I saved it now
38.55 -> and ran the same code over here
40.677 -> as you can see down I am getting "hello"
43.614 -> so if I just move it up, I am getting hello printed
47.193 -> now the same code , if I just add public
52.308 -> and save it and run
55.26 -> I am getting that error again think so
57.341 -> yes I am getting that error again, so basically if you don't have any error in your code
62.907 -> just try this way of removing public from your class
65.819 -> and I think you will be able to solve that error easily
69.53 -> so thats it for the video , I hope you would have solved the error and
72.027 -> mine is a programming channel , do check out my other videos I have done in python c++
76.175 -> unity also , blender subscribe and support me , thank you

Source: https://www.youtube.com/watch?v=Ti_zh8VbA4M