3
Q:

Which containers use a FlowLayout as their default layout ? 

Answer:



Q:

Warning implicit declaration of function?

Answer

Function: A Function is a block of statement which perform some operation.


Declaring the function before using the function in program is known as implicit declaration of the function.


 


For Example::




  1. int bar(void); // function (forward) declaration 


  2. int main(void) {

  3. bar(); // bar was declared, the compiler has all the info 

  4. return foo(123); // foo not yet known; impl. decl. warning

  5. }


  6. // not previously declared function definition

  7. int foo(int a) {

  8. return a;

  9. }

  10.  

  11. // previously declared function definition

  12. int bar() {

  13. return 321;

  14. }

Report Error

View answer Workspace Report Error Discuss

Subject: Java - Technology
Job Role: Analyst , IT Trainer

1 120
Q:

Is it possible to nest functions in javascript?

Answer

Yes, it is possible to nest functions in javascript.

Report Error

View answer Workspace Report Error Discuss

Subject: Java - Technology
Job Role: IT Trainer

1 152
Q:

Which of the following attribute can hold the JavaScript version?

A) script B) version
C) language D) none of the above
 
Answer & Explanation Answer: C) language

Explanation:

Language attribute contains the javascript versions.

Report Error

View Answer Workspace Report Error Discuss

Filed Under: Java - Technology
Job Role: Analyst , IT Trainer , Software Architect

1 1006
Q:

Which of the following best describes JavaScript?

A) a scripting language precompiled in the browser. B) an object-oriented scripting language
C) a low-level programming language. D) a compiled scripting language.
 
Answer & Explanation Answer: B) an object-oriented scripting language

Explanation:
Report Error

View Answer Workspace Report Error Discuss

Filed Under: Java - Technology
Job Role: IT Trainer

0 524
Q:

Javascript is interpreted by

A) Server B) Object
C) Client D) None of the above
 
Answer & Explanation Answer: C) Client

Explanation:

JavaScript is an interpreted language, not a compiled language. A program such as C++ or Java needs to be compiled before it is run.

The source code is passed through a program called a compiler, which translates it into bytecode that the machine understands and can execute.

Report Error

View Answer Workspace Report Error Discuss

Filed Under: Java - Technology
Job Role: Analyst , IT Trainer

5 2480
Q:

Which is a reserved word in the java programming language?

A) Variable B) Identifier
C) Keyword D) Main
 
Answer & Explanation Answer: C) Keyword

Explanation:

Reserved words are words that cannot be used as object or variable names in a Java program because they're already used by the syntax of the Java programming language.

Java reserved words are keywords that are reserved by Java functions or other uses that cannot be used as identifiers (e.g., variable names, function names, class names).

If a reserved word was used as a variable you would get an error or unexpected result.

 

Examples : Int, Long, Abstract, Class, Break, Catch, Case, Public, Static, Void,...

 

 

Report Error

View Answer Workspace Report Error Discuss

0 212
Q:

Difference between Arraylist and Linked list?

Answer

ArrayList and LinkedList both implements List interface and maintains insertion order. Both are non synchronized classes.


 


But there are many differences between ArrayList and LinkedList classes that are given below.


 

ArrayList    V/s     LinkedList ::


 

1) ArrayList internally uses dynamic array to store the elements.


                   Whereas


LinkedList internally uses doubly linked list to store the elements.


 

2) Manipulation with ArrayList is slow because it internally uses array. If any element is removed from the array, all the bits are shifted in memory.


                   Whereas


Manipulation with LinkedList is faster than ArrayList because it uses doubly linked list so no bit shifting is required in memory.


 

3) ArrayList class can act as a list only because it implements List only.


                   Whereas


LinkedList class can act as a list and queue both because it implements List and Deque interfaces.


 

4) ArrayList is better for storing and accessing data.


                   Whereas


LinkedList is better for manipulating data.

Report Error

View answer Workspace Report Error Discuss

3 578
Q:

What is String Args in Java?

Answer

String Args (String []) is an array of parameters of type String.


In Java, 'args' contains the supplied command-line arguments as an array of String objects. In other words, if you run your program as 'java MyProgram Hello World' then 'args' will contain ["Hello", "World"]. When a java class is executed from the console, the main method is what is called.

Report Error

View answer Workspace Report Error Discuss

9 624