Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Aakash J.
Helping Students get A for an year
Tutor Satisfaction Guarantee
Java Programming
TutorMe
Question:

Why is Java called the ‘Platform Independent Programming Language’?

Aakash J.
Answer:

Platform independence means that execution of your program does not dependent on type of operating system(it could be any : Linux, windows, Mac ..etc). So compile code only once and run it on any System (In C/C++, we need to compile the code for every machine on which we run it). Java is both compiler(javac) and interpreter(jvm) based lauguage. Your java source code is first compiled into byte code using javac compiler. This byte code can be easily converted to equivalent machine code using JVM. JVM(Java Virtual Machine) is available in all operating systems we install. Hence, byte code generated by javac is universal and can be converted to machine code on any operating system, this is the reason why java is platform independent.

C Programming
TutorMe
Question:

What will be the output of this program? main(){ unsigned int i=1; for(;i>=0;i--){ printf("No.%u\n",i); }

Aakash J.
Answer:

The code fragment assigns the value of i as 1 and the for loop runs till i is less than 1, so the for loop runs 2 times and therefore prints 2 times. The output will be: No. 1 No. 0

Physics
TutorMe
Question:

An observer is standing on a platform. He observes the frequency of a whistling train to be 2.2kHz and 1.8kHz of the approaching and the receding train. Find the speed of the train.(given speed of sound=300m/s)

Aakash J.
Answer:

The apparent speed of approaching train. f=f1(v/v-vs) where vs is velocity of sound. 2200=f1(300/300-vs)---(1) The apparent speed of receding train. f=f1(300/300+vs) 1800=f1(300/300+vs)---(2) Dividing (1) by (2) 22/18= (300+vs)/(300-vs) vs=30.

Send a message explaining your
needs and Aakash will reply soon.
Contact Aakash
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.