J2EE Interview Questions

Sub Category
Questions
Answers
Last Updated
589
3649
Sep 8th, 2022
249
621
Jan 4th, 2017
52
194
Mar 6th, 2018
2120
3925
Jan 9th, 2024
79
274
Sep 8th, 2022
21
61
Feb 15th, 2012
76
171
Feb 21st, 2023
149
491
Dec 1st, 2022
17
47
Oct 2nd, 2011
398
1010
Jan 9th, 2024
38
250
Jan 23rd, 2018
22
47
Aug 30th, 2017
178
860
Apr 5th, 2018
8
24
Jun 21st, 2016
179
816
Dec 28th, 2017
268
571
Dec 1st, 2022

Showing Questions 361 - 364 of 364 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page:
  •  

    3-tier architecture in Java

    Explain about 3-tier architecture in Java

    ROOPESH JAMES

    • May 21st, 2012

    A three-tier architecture is any system which enforces a general separation between the following three parts: 1. Client Tier or user interface 2. Middle Tier or business logic 3. Data Storage Tie...

  •  

    Java single inhertiance and multiple inheritance

    1.what is meant by inheritance,single inhertiance,multiple inheritance?2.define abstract class & abstract method?3.how to developed and delopying a SERVELT,JSP program in the TOMCAT APACHE SERVER,WEBLOGIC SERVER?PLZ send the answer for the particular abo

    harps

    • Nov 20th, 2012

    Single Inheritance in Java means that a sub class have the capability of inheriting the properties of only one class whereas multiple inheritance is not supported by Java as it increases the complexit...

  •  

    Why pointer concept not use in java?

    vishal

    • Sep 21st, 2017

    Pointers are such kind of data types who holds the Memory address of another variable. Use of pointer may leads in security violation. Pointers works on memory addresses directly and we cannot apply s...

    sopan

    • Feb 27th, 2017

    When Pointer are used, it is then capable to change the memory data and get RAM memory is more exposed to pointers.
    This concept collapse the memory management in JVM.
    So pointers is not used. Also we don't need pointers as complete memory management is managed by JVM only.

  •  

    Can we declare class as protected?

    What is the scope for this class?

    Star Read Best Answer

    Editorial / Best Answer

    dipl. ing. Dan  

    • Member Since Mar-2006 | Mar 24th, 2006


    Some people might get confused by the many posts. The correct answer to the question "can we declare class as protected?" is YES, BUT only as an inner class. A 'normal' class cannot be protected or private.

    // 'Normal' class - only default or public allowed

    public class ProtectedOrNot {

      // Inner class - public, default, protected, private allowed

      protected class InnerClass {

      }

      public static void main(String[] args) {

      }

    }

    vishal

    • Sep 21st, 2017

    We cannot declare primary classes as protected for primary classes only "public","final","abstract" are allowed. But point to be noted you can declare inner classes as protected. ...

    Srinu

    • Jul 8th, 2017

    We cannot declare class as protected and private it gives compile time error.
    Illegal modifier for the class TestClass; only public, abstract & final are permitted

Showing Questions 361 - 364 of 364 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page: