Everything i understand , but when you use static method and put condition within static method, i am not getting these conditions.
@codinghost5082
2 жыл бұрын
that if statement i have taken to check if the array and string we are taking are null or not. because later if u use for loop on them to get data, then u will get error NullPointerException,
@041_saisaranta5
2 жыл бұрын
sir you're giving m=null to store only one object. what if there is two scooter , then you have to save two Vehicle objects in the m. Then why are you using this m=null??
@codinghost5082
2 жыл бұрын
From the object of array we need to find object with minimum price. So it itself mean we only need one object with whose price will be minimum. So we dont need more object. We only need one.
@アジェイ-o4h
2 жыл бұрын
Solution.java:18: error: non-static variable this cannot be referenced from a static context vl[i]=new Vehicle (num, nam, pri);
@codinghost5082
2 жыл бұрын
Maybe you have made Vehicle constructor as a method. Check the code from link in description.
@srilakshmidande6767
2 жыл бұрын
What if there are two objects with name as scooter?? How to Store them ??
@codinghost5082
2 жыл бұрын
they will have different number and price. So store them in separate objects And you will get input for only 4 objects.
@yuvalekhams6778
2 жыл бұрын
can you provide solution for method for finding average of age and another method to search by name
@codinghost5082
2 жыл бұрын
Yes. Will comment code in night.
@codinghost5082
2 жыл бұрын
// Make getters for getting getAge() and getName() //Below are only methods to calculate. public static int findAverageOfAge(Students[] s){ int total=0; if(s!=null) { for(int i=0;i
@codinghost5082
2 жыл бұрын
@@yuvalekhams6778 I already told u most topics. Please check previous exam videos from youtube. And try to complete the coding questions properly.
@yuvalekhams6778
2 жыл бұрын
@@codinghost5082 Thank you so much
@orBhaiKaisaHe
2 жыл бұрын
@@yuvalekhams6778 bro have you cleared PRA?
@saisrujana3244
2 жыл бұрын
sir what java version should we use in pra java8 or java7?
@codinghost5082
2 жыл бұрын
You dont neeed to choose any java version. PRA is same as IRA exam almost. Just write programs in give compiler.
@saisrujana3244
2 жыл бұрын
ok sir thank you
@advaitdhamnaskar8614
Жыл бұрын
In TCS PRA what is the marks distribution?
@codinghost5082
Жыл бұрын
I m not sure. But I think coding part is of 50 marks and mcqs are of 50 marks. Total 100 marks.
@gaminghubCR
2 жыл бұрын
can you provide the solution on the day of exam on any social site like whatsapp or telegram this will us.
@codinghost5082
2 жыл бұрын
sorry I cant , I also have work .
@gaminghubCR
2 жыл бұрын
Okk but I have one doubt in some questions you have used priority queue but in some questions you did not used can I know the answer because in video I am not able to understand why you are using that
@codinghost5082
2 жыл бұрын
@@gaminghubCR Plz watch that questions carefully. You need to return an object on the sorted order from some value.
@monaligore8606
2 жыл бұрын
Hello sir tomorrow is my 1st PRA. If my code will be ok but output isn't come according to the code or some error will occurs then also some test cases will pass or not for right coding steps??
@codinghost5082
2 жыл бұрын
You need to print exact same output. Even you change uppercase or lowercase or miss any symbol like comma or fullstop. You will get error and your cases will not pass. So be careful while printing output.
@monaligore8606
2 жыл бұрын
@@codinghost5082 ok thank you. But sir in every program in PRA have the same pattern or not like the one you are explaining in video? I guess Referring your videos of PRA is enough. But according to u it is enough or not??
@codinghost5082
2 жыл бұрын
@@monaligore8606 for java code m sure. It have same pattern.
@monaligore8606
2 жыл бұрын
@@codinghost5082 ok then I'll refer your videos only. Thank u so much for quick response n for videos as well .
Пікірлер: 33