menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
What is output? public class vehicle { public void drive(){ system.out.println("driving vehicle"); } }
Ask a Question
Questions
Unanswered
Tags
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 & Tech
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 & Tech
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 & Tech
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 & Tech
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.4m
questions
12.2m
answers
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
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
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org