menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
What is output? public class vehicle { public void drive(){ system.out.println("driving vehicle"); } }
asked
Jul 22, 2023
88.2k
views
3
votes
What is output? public class vehicle { public void drive(){ system.out.println("driving vehicle"); } }
Computers and Technology
high-school
Raheel Hasan
asked
by
Raheel Hasan
9.1k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
5
votes
The system will print “driving vehicle ”
Abel Mohler
answered
Jul 28, 2023
by
Abel Mohler
8.8k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Dec 12, 2024
12.4k
views
Which line(s) of code have a runtime or compile error: package cop3337.exam3; public class COP3337Exam3 public static void main(String[] args) int[] numbers = new int[10]; try try 2 3 for(int i=0; i< 10; i++) numbers [i] = 18 *i; 13 14 if(i%2== 1) throw new Exception("P1"); 15 16 17 if(i%2==0) throw new ArrayIndexOutOfBoundsException("P2"); 18 19 20 //end for catch(ArithmeticException e) System.out.print(e.getMessage() + " L1"); catch(ArrayIndexOutOfBoundsException e) System.out.print(e.getMessage()+" L2 "); catch(Exception e) System.out.println(e.getMessage()+" L3 "); finally throws new Exception("L4"); catch(Exception e) 33 34 35 System.out.println(e.getMessage()+" L5"); 36 37 System.out.print("\\"); //end main 38 39 //end class 12, 32 15 No error in code: 29
Nataliia
asked
Dec 12, 2024
by
Nataliia
7.8k
points
Computers and Technology
high-school
1
answer
5
votes
12.4k
views
asked
Jun 28, 2024
194k
views
What is the problem with following snippet class q12 { public void test () (i=10)) System. out. println (''OK'') ; System. out. println (''NOT OK'') }
Aurora
asked
Jun 28, 2024
by
Aurora
7.7k
points
Computers and Technology
college
1
answer
4
votes
194k
views
asked
Apr 22, 2024
116k
views
public class ChangeCase {public static void main(String args[]) {Scanner s = new Scanner(System.in); String sample; String result; System.out.println("Enter a string or done when you want to quit."); sample
Jens Borrisholt
asked
Apr 22, 2024
by
Jens Borrisholt
7.9k
points
Computers and Technology
high-school
1
answer
1
vote
116k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Explain why binary codes are used to represent characters, numbers and symbols :)
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org