Close
Login to Your Account
Faadooengineers
Results 1 to 4 of 4

Thread: Core java questions

Popular topic for study

Software Standards

The primary goal of standardized graphics software is portability. When packages are designed with 4andard graphics functions, software can he moved easily from one hardware system to another and used in different implementations and applications. Without standards, programs designation for one hardware system often cannot be transferred to another system without extensive rewriting of the programs. click here for free notes. Read this topic
  1. #1
    Passionate FaaDoO Engineer Manoj's Avatar
    Join Date
    Jan 2011
    Posts
    350
    Blog Entries
    12

    Gender: : Male

    Branch: : Electronics Engineering

    City : Delhi

    Doc 32 Core java questions

    CORE JAVA QUESTIONS


    Q1.What will be the result of compiling and running the given program?
    public class Q1 {
    public static void main(String[] args) {
    boolean t1 = true, t2 = false, t3 = t1;
    boolean t = false;
    t &&= (t1 || ( t2 && t3)); //line no. 5
    System.out.println("boolean t = "+t);
    }
    }
    1. Compile time error at the line no. 5 as illegal start of expression as well as this is not a statement
    2. Program compiles correctly and print "boolean t = false" when executed.
    3. Compile time error at the line no. 7.
    4. Program compiles correctly and print "boolean t = true" when executed.


    Attached Files for Direct Download
      File Name:
      File Size:
      80.0 KB
      Total Downloads:
      696
    * Click on the 'file icon' or 'file name' to start downloading
    FaaDoO Moderator!

  2. #2
    Passionate FaaDoO Engineer Manoj's Avatar
    Join Date
    Jan 2011
    Posts
    350
    Blog Entries
    12

    Gender: : Male

    Branch: : Electronics Engineering

    City : Delhi

    fulljava Questions

    fulljava Questions

    1.The Java interpreter is used for the execution of the source code.
    True
    False
    Ans: a.
    2) On successful compilation a file with the class extension is created.
    a) True
    b) False
    Ans: a.
    3) The Java source code can be created in a Notepad editor.
    a) True
    b) False
    Ans: a.
    ...............

    Attached Files for Direct Download
      File Name:
      File Size:
      392.5 KB
      Total Downloads:
      115
    * Click on the 'file icon' or 'file name' to start downloading
    FaaDoO Moderator!

  3. #3
    Passionate FaaDoO Engineer Manoj's Avatar
    Join Date
    Jan 2011
    Posts
    350
    Blog Entries
    12

    Gender: : Male

    Branch: : Electronics Engineering

    City : Delhi

    Java interview questions

    Java interview questions

    Question What is the difference between an Applet and an Application? (Applets)

    Answer
    The differences between an applet and an application are as follows:

    1. Applets can be embedded in HTML pages and downloaded over the Internet whereas
    Applications have no special support in HTML for embedding or downloading.
    2. Applets can only be executed inside a java compatible container, such as a browser or appletviewer whereas Applications are executed at command line by java.exe or jview.exe.
    3. Applets execute under strict security limitations that disallow certain operations
    (sandbox model security) whereas Applications have no inherent security restrictions.
    4. Applets don't have the main() method as in applications. Instead they operate on an entirely different mechanism where they are initialized by init(),started by start(),stopped by stop() or destroyed by destroy().

    Attached Files for Direct Download
      File Name:
      File Size:
      388.5 KB
      Total Downloads:
      113
    * Click on the 'file icon' or 'file name' to start downloading
    FaaDoO Moderator!

  4. #4
    Passionate FaaDoO Engineer Manoj's Avatar
    Join Date
    Jan 2011
    Posts
    350
    Blog Entries
    12

    Gender: : Male

    Branch: : Electronics Engineering

    City : Delhi

    Doc 32 Re: Java interview questions

    Java Interview Questions




    Question Can an Interface be final? (CoreJava)
    Answer No
    Question Can an Interface have an inner class? (CoreJava)
    Answer Yes public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("in interfia"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }
    Attached Files for Direct Download
      File Name:
      File Size:
      308.0 KB
      Total Downloads:
      105
    * Click on the 'file icon' or 'file name' to start downloading
    FaaDoO Moderator!

Tags for this Thread