John works as a Software Developer for VenTech Inc. He writes the following code usingJava.public class vClass extends Threadpublic static void main(String args[])vClass vc=new vClass();vc.run();public void start()for(int k=0;k<20;k++)System.out.println("The value of k = "+k);What will happen when he attempts to compile and execute the application?
A. The application will compile successfully and the values from 0 to 19 will be displayed as the output.
B. A compile-time error will occur indicating that no run() method is defined for the Thread class.
C. A runtime error will occur indicating that no run() method is defined for the Thread class.
D. The application will compile successfully but will not display anything as the output.
John works as a Software Developer for VenTech Inc. He writes the following code usingJava.public class vClass extends T
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
John works as a Software Developer for VenTech Inc. He writes the following code usingJava.public class vClass extends T
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!